From: Tom Hughes Date: Thu, 22 Nov 2012 09:48:03 +0000 (+0000) Subject: Remove hard coded assumption that layer zero is mapnik X-Git-Tag: live~5804^2~5 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/7ac7db35b83a3b861e6305f3a36dd9787c85ca72 Remove hard coded assumption that layer zero is mapnik --- 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); }