Hi there,
I'm trying to use this formula to show two points on a static Bing Map:
I would like the text for wp.0 to be the text in a textbox on the screen and wp.1 to be the Title in a gallery on the screen.
When I type this into the formula bar, the map returned is blank:
Also, the blank image is a 350 x 350 pixels, 600 x 1200 pixels, which is the size of another map in the app I built, using this method.
Help:
Hi @Kat_YESPrep ,
Do you want to use bing maps and drawing some points in the map?
Bing Maps supports multiple imagerySets. Lets add a dropdown to see the effect of changing these imagerySets.
Insert > Controls > Dropdown to add a dropdown. Rename the control to drpBingImagerySets. Set the Items property to the following:
["Road","Aerial", "AerialWithLabels", "AerialWithLabelsOnDemand", "CanvasDark", "CanvasLight", "CanvasGray"]
Change the formula in the Image property of the imgMapControl to include the imagerySet option :
"https://dev.virtualearth.net/REST/V1/Imagery/Map/" & drpBingImagerySets.Selected.Value & "/" & EncodeUrl(txtLocation.Text) & "?mapSize=" & txtImageWidth & "," & txtImageHeight & "&key="&txtBingMapsKey.Text
Here are docs about it for your reference:
https://powerapps.microsoft.com/en-us/blog/image-control-static-maps-api/
https://www.sharepointsiren.com/2019/03/plotting-multiple-map-points-in-powerapps/
Best regards,
Hi there,
I'm fine with the default view. When a user clicks an item in the Gallery, I would like to use the Get Route function of the Bing Maps API to show the route between the address in the Text bar and the address in the gallery item.
When I post the URL into a browser, it shows just fine, but when I put the formula in the formula bar and click, a blank map is returned.
Stay up tp date on the latest blogs and activities in the community News & Announcements.
Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
User | Count |
---|---|
206 | |
187 | |
82 | |
51 | |
37 |
User | Count |
---|---|
288 | |
244 | |
121 | |
75 | |
55 |