X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/5b42c683f5e5b401a935182a9ea2e30f1a03c22e..a5f3abcbe90250e37a0850fbdf5dedbf36f19819:/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 61a333007..31a981ec9 100644 --- a/app/assets/javascripts/index/export.js +++ b/app/assets/javascripts/index/export.js @@ -38,7 +38,7 @@ $(document).ready(function () { openSidebar(); - if (map.hasLayer(layers[0].layer)) { + if (getMapBaseLayer().keyid == "mapnik") { $("#format_mapnik").prop("checked", true); }