none
IE10: Javascript error when loading spatial data services (Web Control v8) RRS feed

  • Question

  • When trying to load Microsoft.Maps.SpatialDataService in Internet Explorer 10 (Win7), a JavaScript error pops up:

    SCRIPT5007: Unable to get property 'prototype' of undefined or null reference mapcontrol, line 11 character 7075

    This also happens on the SDK example pages like http://www.bing.com/api/maps/sdk/mapcontrol/isdk#sdsLoadMultipleBoundaries+JS

    When using IE11 on Win7, setting the browser engine to IE9 also produces this error.

    Simple demo HTML:

    <html xmlns="http://www.w3.org/1999/xhtml">
      <head>
        <title>maptest</title>
        <meta charset="utf-8"/>
      </head>
      <body>
        <div id="map" style="width: 600px; height: 300px"></div>
        <script type="text/javascript">
          function bingMapsLoaded()
          {
              var map = new Microsoft.Maps.Map('#map', {});
              Microsoft.Maps.loadModule('Microsoft.Maps.SpatialDataService');
          }
        </script>
        <script type="text/javascript" src="//www.bing.com/api/maps/mapcontrol?callback=bingMapsLoaded"></script>
      </body>
    </html>


    • Edited by cw.mo Monday, October 17, 2016 9:55 AM
    Monday, October 17, 2016 9:48 AM

Answers

  • As JNEVO mentioned, Bing Maps V8 does not officially support IE10. There are a number of reasons for this. The first is market share. The market share of IE10 is very low and is shrinking fast. The market share based on web traffic is around 0.5% and based on unique computers is around 1.48%. The second is Bing Maps V8 is heavily built on top of HTML5 technology. This makes is capable of rendering much larger data sets and also able to produce much better data visualizations. IE10 has fairly poor support for HTML5 and is very slow.

    That said, it looks like all modules currently are throwing an error in IE10 which makes me think that this may have something to do with the loading of the modules and that their is only a single point of failure that needs to be fixed which may make this a simple thing to fix. I'll pass this on to the team to see if they can look into this.

    IE8 and IE9 don't support HTML5 and are not supported. Their market share have also been falling fast over the past year. Combining the market shares of unique computers on IE 8, 9, and 10, which is likely an overestimate, the value is still in the single digits.


    [Blog] [twitter] [LinkedIn]

    • Proposed as answer by Ricky_Brundritt Monday, October 17, 2016 7:00 PM
    • Marked as answer by cw.mo Tuesday, October 18, 2016 6:53 AM
    Monday, October 17, 2016 6:59 PM
  • Hi,

    According to the supported browsers page, you can't use IE10 or less.

    https://msdn.microsoft.com/en-us/library/mt712867.aspx


    • Edited by JNEVO Monday, October 17, 2016 10:01 AM
    • Proposed as answer by Ricky_Brundritt Monday, October 17, 2016 7:00 PM
    • Marked as answer by Ricky_Brundritt Friday, December 30, 2016 10:23 AM
    Monday, October 17, 2016 10:01 AM

All replies

  • Hi,

    According to the supported browsers page, you can't use IE10 or less.

    https://msdn.microsoft.com/en-us/library/mt712867.aspx


    • Edited by JNEVO Monday, October 17, 2016 10:01 AM
    • Proposed as answer by Ricky_Brundritt Monday, October 17, 2016 7:00 PM
    • Marked as answer by Ricky_Brundritt Friday, December 30, 2016 10:23 AM
    Monday, October 17, 2016 10:01 AM
  • As JNEVO mentioned, Bing Maps V8 does not officially support IE10. There are a number of reasons for this. The first is market share. The market share of IE10 is very low and is shrinking fast. The market share based on web traffic is around 0.5% and based on unique computers is around 1.48%. The second is Bing Maps V8 is heavily built on top of HTML5 technology. This makes is capable of rendering much larger data sets and also able to produce much better data visualizations. IE10 has fairly poor support for HTML5 and is very slow.

    That said, it looks like all modules currently are throwing an error in IE10 which makes me think that this may have something to do with the loading of the modules and that their is only a single point of failure that needs to be fixed which may make this a simple thing to fix. I'll pass this on to the team to see if they can look into this.

    IE8 and IE9 don't support HTML5 and are not supported. Their market share have also been falling fast over the past year. Combining the market shares of unique computers on IE 8, 9, and 10, which is likely an overestimate, the value is still in the single digits.


    [Blog] [twitter] [LinkedIn]

    • Proposed as answer by Ricky_Brundritt Monday, October 17, 2016 7:00 PM
    • Marked as answer by cw.mo Tuesday, October 18, 2016 6:53 AM
    Monday, October 17, 2016 6:59 PM