How do I add a Bing maps at the event portal to show the event geolocation?
I have read several documentation but could not find a step by step guide
Do I have to create a webpage with map in the portal or a canvas app in D365 event within the building entity?
I am not familiar yet with creating a power apps custom app
https://powerapps.microsoft.com/en-us/blog/image-control-static-maps-api/
Section: For rendering the Map, use the following formula in the Image property of the imgMapControl :
I cannot find where to put the bing credentials URL in the image property.
Can someone direct me with the right steps?
Hello, Mariette
I have some reference for bing map api. i hope that you will help.
https://www.microsoft.com/en-us/maps/choose-your-bing-maps-api
Thx clofly,
You are very helpful, I only was missing out the step where i had to put the bing key in the image.
Thank you for your complete steps and explaination
Hi Mariette,
You need to register for Bing Map Key to use the URL:
Our keys are saved in Bing Maps center:
Then set the image property to following formula:
"https://dev.virtualearth.net/REST/V1/Imagery/Map/Road/" & EncodeUrl(txtLocation.Text) & "?mapSize=" & txtImageWidth & "," & txtImageHeight & "&key="&txtBingMapsKey.Text
As the tutorial said, the key is saved in one of text input of ConfigurationScreen.
To add Bing map to the event portal, we don't need to add canvas app to the Building entity. Instead, currently customization on Angular event website is still the only option.
But it is easy to achieve, you can refer to my sample:
1. Open event.component.html, insert following HTML code before end tag of ng-container element.
2. Create a private variable called location to corresponding event.component.ts file.
3. Insert following code to getEventAndSessionData function:
if (this.event.building) { this.location = encodeURI(this.event.building.addressLine1 ", " this.event.building.city); }
Result
Regards,
Clofly
André Arnaud de Cal...
291,971
Super User 2025 Season 1
Martin Dráb
230,846
Most Valuable Professional
nmaenpaa
101,156