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

Bing Maps

Hello
I have a problem integrating a 'binkMaps' card into a PowerApps screen.
I found this link where we explain the procedure, but in the image field that must receive the card I have an error:
"https://dev.virtualearth.net/REST/V1/Imagery/Map/Road/" & EncodeUrl (txtLocation.Text) & "? mapSize =" & txtImageWidth & "," & txtImageHeight & "& key =" & txtBingMapsKey. text

 

My searchg place  ex: 182 Av. des Champs-Élysées, 75008 Paris

 

The error 

Where is my mistake?

Thank you

4 REPLIES 4
Power Apps Staff mobaky
Power Apps Staff

Re: Bing Maps

Hey @Kervin,

 

I am not sure if this would solve your issue but I've noticed that you have some extra spaces in your URL try using this updated version:

"https://dev.virtualearth.net/REST/V1/Imagery/Map/Road/" & EncodeUrl(txtLocation.Text) & "?mapSize=" & txtImageWidth & "," & txtImageHeight & "&key="&txtBingMapsKey.Text

 Hope this helps 🙂 

Highlighted
jlister
Level 8

Re: Bing Maps

Thanks @mobaky. It is handy to know not to add spaces between the variable and '=' operator. I was able to get working example on my end.

Kervin
Level: Powered On

Re: Bing Maps

Screen.JPG
You can see above what I am trying to achieve.
In the Image object I wrote this:


"https://dev.virtualearth.net/REST/V1/Imagery/Map/Road/" & EncodeUrl(Gallery1.Selected.Adresse_x0020_Prof) &"? Mapsize="&Largeur.Text&" "&Hauteur.Text& "&key="&"txtBingMapsKey.texte"

 

Adresse I'm looking for

The Key of my map created on Bing

 

You can check on the picture that there is no mistake on the formula, the map key is ok, but no result !!!!

I'm hopeless

 

Power Apps Staff mobaky
Power Apps Staff

Re: Bing Maps

Hey @Kervin,

 

One thing you can do to see if the link is correct is to use your formula into a TextBox Control, then copy the link into your browser and see if you can see the map. This will help us understand why it's not working.

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

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 (Last 30 Days)
Users online (4,667)