none
Adding a bing map inside Microsoft Dynamics CRM RRS feed

  • Question

  •  

    Hi,

    http://msdyncrm.blogspot.com/2010/10/microsoft-dynamics-crm-2011-bing-maps.html

    So far, I have been following this article on how to intergrate Bing Maps with Dynamics CRM 2011.

    I am having issues with a few things with getting it to work however. A few to mention are where can i obtain these javascript files

    ClientGlobalContext.js.aspx

    RESTJQueryMap.js.aspx

     

    I seem to need these things to get things running. The map.setcredentials also requires a key which i have obtained from signing up to bingmap services.

     

    I'm not quite sure of the format this should be in however.

     

    Can anyone give me a clear cut view of how this all works, from the js files that are needed and the key situation

     

    Thanks

     

     

    -

    • Moved by Ricky_Brundritt Friday, March 9, 2012 5:08 PM (From:Bing Maps: Map Control and Web services Development)
    Thursday, February 10, 2011 12:06 PM

Answers

All replies

  • <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>
     <head>
      <title></title>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    
      <script type="text/javascript" src="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0"></script>
    
      <script type="text/javascript">
      function GetMap()
      { 
    
       var map = new Microsoft.Maps.Map(document.getElementById("mapDiv"), 
           {credentials: "Your Bing Maps Key",
           center: new Microsoft.Maps.Location(45.5, -122.5),
           mapTypeId: Microsoft.Maps.MapTypeId.road,
            zoom: 7});
      }
      </script>
     </head>
     <body onload="GetMap();">
      <div id='mapDiv' style="position:relative; width:400px; height:400px;"></div>  
     </body>
    </html>
    
    I've tried even loading a simlpler map but i get a js error on the Microsoft class undefined 
    Thursday, February 10, 2011 12:29 PM
    • Proposed as answer by Wharf FC Wednesday, April 6, 2011 10:46 AM
    • Marked as answer by Ricky_Brundritt Wednesday, April 6, 2011 10:48 AM
    Wednesday, April 6, 2011 10:46 AM