]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/export.js
Remove use of jQuery toggle() function
[rails.git] / app / assets / javascripts / index / export.js
index 61a333007f06ac1d2949361f12ba3621e65bf5e6..31a981ec9a15b34ff87d183e9b3f91b58b6ce676 100644 (file)
@@ -38,7 +38,7 @@ $(document).ready(function () {
 
     openSidebar();
 
-    if (map.hasLayer(layers[0].layer)) {
+    if (getMapBaseLayer().keyid == "mapnik") {
       $("#format_mapnik").prop("checked", true);
     }