Remove hard coded assumption that layer zero is mapnik

This commit is contained in:
Tom Hughes 2012-11-22 09:48:03 +00:00
parent 8aa6d575ff
commit 7ac7db35b8

View file

@ -38,7 +38,7 @@ $(document).ready(function () {
openSidebar();
if (map.hasLayer(layers[0].layer)) {
if (getMapBaseLayer().keyid == "mapnik") {
$("#format_mapnik").prop("checked", true);
}