]> git.openstreetmap.org Git - rails.git/commitdiff
Remove hard coded assumption that layer zero is mapnik
authorTom Hughes <tom@compton.nu>
Thu, 22 Nov 2012 09:48:03 +0000 (09:48 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 22 Nov 2012 12:35:49 +0000 (12:35 +0000)
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);
     }