Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Bing maps event location building

(1) ShareShare
ReportReport
Posted on by 534

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?

 

  • Inogic Profile Picture
    462 on at
    Bing maps event location building
    Hey,

    I hope you have your answer.

    If you are still struggling with the Bing Maps API or Key, try switching to a certified geo-mapping solution on AppSource that comes with a Bing Maps key and integrates seamlessly within Dynamics 365, Power Apps, and Dataverse. It can be added to Canvas Apps as well and also comes with an option of Azure Maps integration.
    Thanks,
    Sam
  • Suggested answer
    AppJetty Profile Picture
    1,019 on at
    RE: Bing maps event location building

    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

    dynamics map integration

  • Jetj25 Profile Picture
    534 on at
    RE: Bing maps event location building

    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

  • Verified answer
    cloflyMao Profile Picture
    25,208 on at
    RE: Bing maps event location building

    Hi Mariette,

    You need to register for Bing Map Key to use the URL:

    https://docs.microsoft.com/en-us/bingmaps/getting-started/bing-maps-dev-center-help/getting-a-bing-maps-key

    Our keys are saved in Bing Maps center:

    1641.x1.JPG

    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

    pastedimage1609223367459v1.png

    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.

    pastedimage1609226442877v5.png

    2. Create a private variable called location to corresponding event.component.ts file.

    pastedimage1609225842297v3.png

    3. Insert following code to getEventAndSessionData function:

    if (this.event.building) {
        this.location = encodeURI(this.event.building.addressLine1   ", "   this.event.building.city);
    }

    pastedimage1609225918554v4.png

    Result

    pastedimage1609226495245v6.png

    Regards,

    Clofly

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,095 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,866 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans