]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/export.js
Add clearer close action, refactor base layer code
[rails.git] / app / assets / javascripts / index / export.js
index 2baab4d4b10f82a5025104ee49992f6f6c67cd68..1f624f125f60c5a61471c6d59a8fe2b03a453a30 100644 (file)
@@ -38,7 +38,7 @@ function initializeExport(map) {
 
     openSidebar();
 
-    if (getMapBaseLayerId(map) == "mapnik") {
+    if (map.getMapBaseLayerId() == "mapnik") {
       $("#format_mapnik").prop("checked", true);
     }
 
@@ -186,7 +186,7 @@ function initializeExport(map) {
 
     function htmlUrlChanged() {
       var bounds = getBounds();
-      var layerName = getMapBaseLayerId(map);
+      var layerName = map.getMapBaseLayerId();
 
       var url = "http://" + OSM.SERVER_URL + "/export/embed.html?bbox=" + bounds.toBBoxString() + "&layer=" + layerName;
       var markerUrl = "";