BUG: Safari fails with MapTypeId.mercator RRS feed

  • Question

  • If you attempt to load a MapTypeId.mercator map in Safari it will fatally error with the following CORS error and stop processing:
    Cross-origin image load denied by Cross-Origin Resource Sharing policy.

    It looks like perhaps the culprit could be the blank PNG images created by the MapCoreBundle script. I do not see this error in any other browser, just Safari.

    var map = new Microsoft.Maps.Map(document.getElementById('myMap'), {
        credentials: 'Your Bing Maps Key',
        center: new Microsoft.Maps.Location(25, -90),
        zoom: 5,
        mapTypeId: Microsoft.Maps.MapTypeId.mercator

    Thursday, November 10, 2016 4:44 PM


All replies

  • Which version of safari? mobile, Mac, PC?

    [Blog] [twitter] [LinkedIn]

    Thursday, November 10, 2016 8:45 PM
  • Sorry, I guess that would have been helpful to include.

    It happens on both Mac and iPhone:

    iPhone: iOS/Safari 10.1.1, User Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 10_1_1 like Mac OS X) AppleWebKit/602.2.14 (KHTML, like Gecko) Version/10.0 Mobile/14B100 Safari/602.1

    Mac: OSX/Safari 10.11.6, User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/602.1.50 (KHTML, like Gecko) Version/10.0 Safari/602.1.50

    Friday, November 11, 2016 3:59 PM
  • Thanks, I'll log a bug with the dev team so they can investigate.

    [Blog] [twitter] [LinkedIn]

    Friday, November 11, 2016 5:48 PM
  • I believe this has been resolved in one of the recent releases.

    [Blog] [twitter] [LinkedIn]

    Thursday, August 24, 2017 7:02 PM