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

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (70,910)