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

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
Highlighted
Solution Supplier
Solution Supplier

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
Highlighted
Solution Supplier
Solution Supplier

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

Highlighted
Advocate II
Advocate II

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
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (611)