cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Akbulut1
Level: Powered On

show CRM records in maps

Hi,

 

I created an APP by using dynamics crm data.I can see "Work Order" in BrowseGallery1 in Screen2.I have latitude and longitude of per work order.I want to show all work orders in BrowseGallery1 on one map.How can I achieve this?

 

Best Regards,

Akbulut

1 REPLY 1
Community Support Team
Community Support Team

Re: show CRM records in maps

Hi @Akbulut1,

Do you want to display your work orders within a map based on the specific latitude and longitude?

If you want to display your work orders within a map based on the specific latitude and longitude, I think the Image control and the Bing Maps or Google Maps API could achieve your needs.

More details about displaying a map using Image control within PowerApps, please check the following blog:

https://powerapps.microsoft.com/en-us/blog/image-control-static-maps-api/

On your side, you could consider take a try to add a Image control within your Gallery, then set the Image property of the Image control to following:

Bing Maps API:

"https://dev.virtualearth.net/REST/V1/Imagery/Map/"&drpBingImagerySets.Selected.Value&"/" & EncodeUrl(ThisItem.Latitude & ","& ThisItem.Longitude) & "/15?mapSize=" & txtImageWidth & "," & txtImageHeight & "&pp=" & txtLocation.Text & ";21;I+am+here&key="&txtBingMapsKey.Text

Google Maps API:

"https://maps.googleapis.com/maps/api/staticmap?center=" & EncodeUrl(ThisItem.Latitude & ","& ThisItem.Longitude) & "&zoom=15&size=" & txtImageWidth & "x" & txtImageHeight & "&maptype=" & drpGoogleMaptypes.Selected.Value & "&markers=color:blue%7Clabel:M%7C"& EncodeUrl(txtLocation.Text)& "&key="&txtGoogleMapsKey.Text

Best regards,

Kris

 

 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (5,081)