cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Kervin
Resolver I
Resolver I

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
mobaky
Power Apps
Power Apps

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 🙂 

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.

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

 

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,681)