cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Bing map zoom

Someone having an working (Bing) link for getting zoom to work on the map.

 

Followed this quide but can`t get zoom to work.

 

https://powerapps.microsoft.com/en-us/blog/image-control-static-maps-api/

 

Having troble getting this link to work

 

"https://dev.virtualearth.net/REST/V1/Imagery/Map/"&drpBingImagerySets.Selected.Value&"/" & EncodeUrl(txtLocation.Text) & "/"& slZoom.Value &"?mapSize=" & txtImageWidth & "," & txtImageHeight & "&pp=" & txtLocation.Text & ";21;I+am+here&key="&txtBingMapsKey.Text

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: Bing map zoom

Hi @Leinad

 

Supposing that txtLocation contains your location in a coma separated format like this:

 

51.51128434,-0.1191578

 

You can use this formula:

 

 

"http://dev.virtualearth.net/REST/v1/Imagery/Map/Road/" &
txtLocation.Text  & 
"/13?mapSize=500,500&key=<YourKey>"

 

As stated in the article you mention, you can set the default property of txtLocation to the following formula in order to retrieve the location on a 'location aware' device.

 

Location.Latitude & "," & Location.Longitude

 

View solution in original post

3 REPLIES 3
Highlighted
Super User
Super User

Re: Bing map zoom

Hi @Leinad

 

Here's a link that works for me. The part that's highlighted controls the zoom level. I believe that this can be a number up to 21.

 

http://dev.virtualearth.net/REST/v1/Imagery/Map/Road/51.51128434,-0.11915781/13?mapSize=500,500&key=<YourKey>

Hope that's of some help.

Highlighted
Frequent Visitor

Re: Bing map zoom

Hej Timl

Yes that like is working, but is has the GPS coordinate it the link, what I want to use txtLocation so it can be different coordinate depending on txtLocation value, which is working fine as long I don't add any zoom value.
Highlighted
Super User
Super User

Re: Bing map zoom

Hi @Leinad

 

Supposing that txtLocation contains your location in a coma separated format like this:

 

51.51128434,-0.1191578

 

You can use this formula:

 

 

"http://dev.virtualearth.net/REST/v1/Imagery/Map/Road/" &
txtLocation.Text  & 
"/13?mapSize=500,500&key=<YourKey>"

 

As stated in the article you mention, you can set the default property of txtLocation to the following formula in order to retrieve the location on a 'location aware' device.

 

Location.Latitude & "," & Location.Longitude

 

View solution in original post

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

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

Top Solution Authors
Top Kudoed Authors
Users online (8,228)