web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Search Button for Loca...
Power Apps
Answered

Search Button for Location on Map from Data Source

(0) ShareShare
ReportReport
Posted on by 11

Hi All,

 

I am in need of help please:

 

I have linked my map to my Data source, pins showing as expected on the map. I have created a gallery which also displays the locations. I was hoping there was a way to be able to set the button within the gallery that would take the user straight to the pins location on the map. 

 

The idea be my team can search for the location, click the button that corresponds to that location and the map zooms in to the location they desire.

 

Thanks in advance!

Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @mrhyde ,

     

    Please try this:

    vxiaochenmsft_3-1685932806379.png

    Set(varLongitude,Value(TextInput1.Text));Set(varLatitude,Value(TextInput1_1.Text));Set(var,false);Set(var,true)

    vxiaochenmsft_4-1685932822960.png

    vxiaochenmsft_5-1685932844088.png

    vxiaochenmsft_6-1685932853133.png

     

    Best Regards,

    Wearsky

  • mrhyde Profile Picture
    11 on at

    Hi Wearsky,

     

    That was awesome, works really well. 

     

    Now how would i go from here to get the Lat and Long information taken from the data table that i've linked PowerApps to?

     

    Essentially in an excel table I have 'Location 1' with a column for Lat and Long, if the team were to enter just 'Location 1' in the text box and hit the button, how does the command fill the varlongitude and varlatitude with the information from that table? 

     

    This information is already being used by the map to display the dropped pins, so power apps already recognises 'latitude' and 'longitude' from the table.

     

    Cheers,

    Lee

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 534

#2
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard