cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
djoeg01
Advocate V
Advocate V

Site Inspector sample

Hello, I'm using the Site Inspector sample, I'm have trouble seeing the Map when selecting the GPS option. I've looked through a few posts but don't see if I need to enable or change some code to get it to display. I'm using an Ipad and location services are on.

1 ACCEPTED SOLUTION

Accepted Solutions
K-A-R-L
Solution Specialist
Solution Specialist

Hi @djoeg01 ,

have you managed to get the API for the Map? You need to Get the Bing Maps API Key by visiting this URL OR the Google Static Maps API Key by visiting this URL. Note down the Key for you to use on your Image Control.

Also add a Text Input for you to Search Location name it: SearchLocation


On the Image Property of your Image Control add this:
For Bing

"https://dev.virtualearth.net/REST/V1/Imagery/Map/Road/" & EncodeUrl(SearchLocation.Text) & "?mapSize=" & 800 & "," & 600 & "&key="&"APIkey"

For Google

"https://maps.googleapis.com/maps/api/staticmap?center=" & EncodeUrl(SearchLocation.Text) & "&size=" & 800 & "x" & 600& "&key="&APIKey

----------------------------------------------------------------------------
Thanks,
K-A-R-L


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

2 REPLIES 2
K-A-R-L
Solution Specialist
Solution Specialist

Hi @djoeg01 ,

have you managed to get the API for the Map? You need to Get the Bing Maps API Key by visiting this URL OR the Google Static Maps API Key by visiting this URL. Note down the Key for you to use on your Image Control.

Also add a Text Input for you to Search Location name it: SearchLocation


On the Image Property of your Image Control add this:
For Bing

"https://dev.virtualearth.net/REST/V1/Imagery/Map/Road/" & EncodeUrl(SearchLocation.Text) & "?mapSize=" & 800 & "," & 600 & "&key="&"APIkey"

For Google

"https://maps.googleapis.com/maps/api/staticmap?center=" & EncodeUrl(SearchLocation.Text) & "&size=" & 800 & "x" & 600& "&key="&APIKey

----------------------------------------------------------------------------
Thanks,
K-A-R-L


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

That did the Trick - thank you.


@K-A-R-L wrote:

Hi @djoeg01 ,

have you managed to get the API for the Map? You need to Get the Bing Maps API Key by visiting this URL OR the Google Static Maps API Key by visiting this URL. Note down the Key for you to use on your Image Control.

Also add a Text Input for you to Search Location name it: SearchLocation


On the Image Property of your Image Control add this:
For Bing

"https://dev.virtualearth.net/REST/V1/Imagery/Map/Road/" & EncodeUrl(SearchLocation.Text) & "?mapSize=" & 800 & "," & 600 & "&key="&"APIkey"

For Google

"https://maps.googleapis.com/maps/api/staticmap?center=" & EncodeUrl(SearchLocation.Text) & "&size=" & 800 & "x" & 600& "&key="&APIKey

----------------------------------------------------------------------------
Thanks,
K-A-R-L


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If you thought this post was helpful, please give it a Thumbs Up.


 

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,120)