Skip to main content

Notifications

Community site session details

Community site session details

Session Id : oGG6boUt3f/QHEkvj3rvuj
Power Apps - Building Power Apps
Answered

Bing map zoom

Like (0) ShareShare
ReportReport
Posted on 18 Apr 2018 08:54:41 by 41

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

 

 

 

 

Categories:
  • Verified answer
    timl Profile Picture
    34,951 Super User 2025 Season 1 on 19 Apr 2018 at 22:06:32
    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

     

  • Leinad Profile Picture
    41 on 19 Apr 2018 at 04:52:19
    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.
  • timl Profile Picture
    34,951 Super User 2025 Season 1 on 18 Apr 2018 at 09:47:40
    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,668 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard
Loading started
Loading complete