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

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
Level 10

Re: Site Inspector sample

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
Level 10

Re: Site Inspector sample

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

djoeg01
Level: Powered On

Re: Site Inspector sample

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
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,203)