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

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
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
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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (7,446)