cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MarcBailey
Level 8

Multiple Map Pins onto a Google Map

I need help with code to add Multiple Map Pins onto a Google Map.

 

OnSelect will launch the Google Map outside of the PowerApps.

 

I am currently using the following code to launch Google Maps with the address of the selected item(Account) in BrowseGallery1 with the DataSource of AcctMain:

 

Launch("http://www.google.com/maps/search/?api=1&query="&Address1&City&State&PostalCode)

 

Now I need to launch Google Maps with the addresses of all items(Accounts) in BrowseGallery1 with the DataSource of AcctMain.

 

Any help would be greatly appreciated.  Thanks, Marc...

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
luuminhvuong93
Level: Powered On

Re: Multiple Map Pins onto a Google Map

@TerrenceP @MarcBailey @Ekelund @ericonline

Hi all. I found a way to map multiple points (Still a static map though).

I have a collection of GPS , using Concat function to put them together after the html link.....

 

code map multiple point.PNG

 

map pin multiple powerapps.PNGExample App

14 REPLIES 14
Community Support Team
Community Support Team

Re: Multiple Map Pins onto a Google Map

Hi @MarcBailey,

 

You might need to write some scripts for the Google Map to display multiple Markers.

 

Based on what I know, there is no proper way to manage it within PowerApps.

In addition, to have Google Map showing within image control, follow the guide below:

Displaying a Map using an image Control in PowerApps and Bing Maps or Google Maps API

 

For Multiple markers, check:

Google Maps APIs for Multiple Locations

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
MarcBailey
Level 8

Re: Multiple Map Pins onto a Google Map

Hi Michael,

 

Thanks for the insight - will continue to research.  My intent is to Launch Google Maps outside of PowerApps and hopefully pass the addresses into the https script.  I will let you know if I come up with something.

 

Thanks, Marc...

Super User
Super User

Re: Multiple Map Pins onto a Google Map

Hi @MarcBailey

 

Any results you can share on this topic? I'm interested in using this solution as well. 


Thanks

Ekelund
Level: Powered On

Re: Multiple Map Pins onto a Google Map

Did you find a solution? I am very interested in hearing about how this has been solved. I need excatly the same

TerrenceP
Level: Powered On

Re: Multiple Map Pins onto a Google Map

Hi @MarcBailey, did you manage to find solution to this? I am attempting to do the same. Thanks

Highlighted
luuminhvuong93
Level: Powered On

Re: Multiple Map Pins onto a Google Map

@TerrenceP @MarcBailey @Ekelund @ericonline

Hi all. I found a way to map multiple points (Still a static map though).

I have a collection of GPS , using Concat function to put them together after the html link.....

 

code map multiple point.PNG

 

map pin multiple powerapps.PNGExample App

Super User
Super User

Re: Multiple Map Pins onto a Google Map

Nice work @luuminhvuong93!!!

Ekelund
Level: Powered On

Re: Multiple Map Pins onto a Google Map

Very nice. this got me a step further

BrianJ
Level: Powered On

Re: Multiple Map Pins onto a Google Map

@luuminhvuong93 I am not having any luck with this.  I am trying to display all the markers via a list box.

"https://maps.googleapis.com/maps/api/staticmap?" & "&size=600x600&" & "formatpng&markers=color:red%7C" & Concat(
    Filter(
        Inventory,
        Address = ListBox1_1.Selected.Result
    ),
    Location.Latitude & "," & Location.Longitude,
    "%7C"
) & "&key=" & txtGoogleMapsKey

Whit this code all I get is the one marker at my current location.

 

Any idea what is going on?  

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, August 21st at 8am PDT

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

SixthImage

Power Summit Australia 2019

August 20-23rd 2019

Users Online
Currently online: 211 members 3,545 guests
Please welcome our newest community members: