Layers work

This commit is contained in:
John Firebaugh 2013-06-11 13:48:12 -07:00
parent d0ed118ee2
commit ef73cc1f57
6 changed files with 138 additions and 89 deletions

View file

@ -38,7 +38,7 @@ $(document).ready(function () {
openSidebar();
if (getMapBaseLayer().keyid == "mapnik") {
if (getMapBaseLayerId() == "mapnik") {
$("#format_mapnik").prop("checked", true);
}
@ -186,7 +186,7 @@ $(document).ready(function () {
function htmlUrlChanged() {
var bounds = getBounds();
var layerName = getMapBaseLayer().keyid;
var layerName = getMapBaseLayerId();
var url = "http://" + OSM.SERVER_URL + "/export/embed.html?bbox=" + bounds.toBBoxString() + "&layer=" + layerName;
var markerUrl = "";