none
AJAX V8 RequireJS RRS feed

  • Question

  • On a follow up to some similar questions to V8 we have also been using V7 with RequireJS for a while. I had the async loading setup using:

     define('mmaps', ['async!https://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0&s=1!OnScriptLoad'], function () {
            var mapReadyDfd = $.Deferred(),
                mapReadyTest = function () {
                        if (window.Microsoft && window.Microsoft.Maps && window.Microsoft.Maps.Location) {
                            mapReadyDfd.resolve(window.Microsoft.Maps);
                        }
                        else {
                            setTimeout(mapReadyTest, 100);
                        }
                };
            mapReadyTest();
            return window.Microsoft;
        });

    If I try replacing "https://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0&s=1" with "http://www.bing.com/api/maps/mapcontrol" I get load time out errors. 

    Thanks,

    Scott

    Monday, May 16, 2016 4:39 PM

Answers