Skip to main content

Notifications

Microsoft Dynamics CRM forum
Unanswered

Trying to embed a Bing Map in Portal

Posted on by

I'm new to Portals, and trying to embed a Bing map in my Portal. I tried following this process with no luck:

https://readyxrm.blog/2020/09/18/portals-map/

I did, however, manage to create a simple HTML page which loads the Bing map:

<!DOCTYPE html>
<html>
  <head>
    <title>loadmapasyncHTML</title>
    <style type="text/css">
      body {
        margin: 0;
        padding: 0;
        overflow: hidden;
        font-family: "Segoe UI", Helvetica, Arial, Sans-Serif;
      }
    </style>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script
      type="text/javascript"
    ></script>
    <script type="text/javascript">
      var map;
      function loadMapScenario() {
        map = new Microsoft.Maps.Map(document.getElementById("myMap"), {});
      }
    </script>
  </head>
  <body onload="loadMapScenario();">
    <div id="printoutPanel"></div>

    <div id="myMap" style="width: 600px; height: 600px"></div>
  </body>
</html>

I am struggling to figure out how to use this code in my Portal app. This HTML code has a head and body section, both with required components. In the HTML code for the web page in my Portal where I want to put it, there is only <div> sections. 

How can I incorporate this into my Portal?

Categories:

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,524 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,493 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans