]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/routing_engines/mapquest.js
Add CORS for engines that support it
[rails.git] / app / assets / javascripts / routing_engines / mapquest.js
index f31a84458e43ef0c280d6f1dd105345061eab92f..598614c2977c1be80a0561f5658c5ec9eb2e1aa0 100644 (file)
@@ -48,7 +48,7 @@ MapQuestEngine.prototype.createConfig = function() {
                        //url+="&locale=" + I18n.currentLocale(); //Doesn't actually work. MapQuest requires full locale e.g. "de_DE", but I18n only provides language, e.g. "de"
                        url+="&manMaps=false";
                        url+="&shapeFormat=raw&generalize=0";
-                       this.requestJSONP(url+"&callback=");
+                       this.requestCORS(url);
                },
                gotRoute: function(router,data) {
                        // *** what if no route?