X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/1f4e41f6725ea373aa13bbb067595e2c4fc326d8..33b7903c799c4f945e1b0e708587b70360cb0e74:/app/assets/javascripts/index/export.js?ds=sidebyside diff --git a/app/assets/javascripts/index/export.js b/app/assets/javascripts/index/export.js index 2baab4d4b..417dfabd3 100644 --- a/app/assets/javascripts/index/export.js +++ b/app/assets/javascripts/index/export.js @@ -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 = ""; @@ -203,7 +203,7 @@ function initializeExport(map) { var zoom = map.getBoundsZoom(bounds); - var layers = getMapLayers(map); + var layers = map.getLayersCode(); var text = I18n.t('export.start_rjs.view_larger_map'); var escaped = [];