Skip to main content

Notifications

Community site session details

Community site session details

Session Id : +b9RyE8pG3uWlZWRjm/W7e
Power Apps - Building Power Apps
Answered

How to open the google map based on Latitude and Longitude info on the display form

Like (0) ShareShare
ReportReport
Posted on 15 Mar 2023 13:48:04 by

I have a display form which has a several field data which is displaying and a button on the screen, want to open the google map based on the value of the text displayed as below :

 

Launch("http://maps.google.com/?q="&EncodeUrl("Value(DataCardValue16.Text)) , Value(DataCardValue18.Text))"))

 

It open the map but does not collect the value DataCardValue16.Text for latitude and Value(DataCardValue18.Text) for longitude.

 

Pls. guide

 

 

  • Verified answer
    LaurensM Profile Picture
    12,510 Super User 2025 Season 1 on 15 Mar 2023 at 16:18:29
    Re: How to open the google map based on Latitude and Longitude info on the display form

    Hi @MIA27,

     

    If the lat and long are correctly entered by the user, you can actually just add them as text (no EncodeURL or value needed).

    In your case it would look as follows:

    Launch($"https://maps.google.com/?q={DataCardValue16.Text},{DataCardValue18.Text}");

     

    If this solves your question, would you be so kind as to accept it as a solution.

    Thanks!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard
Loading started