web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

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?

 

I have the same question (0)
  • Verified answer
    cloflyMao Profile Picture
    25,210 on at

    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

  • Jetj25 Profile Picture
    534 on at

    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

  • Suggested answer
    AppJetty Profile Picture
    1,019 on at

    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

  • Inogic Profile Picture
    682 on at
    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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 170 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 61

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 52 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans