Use the keyid to identify the layer to using when exporting to an

embeddable map. Fixes #3221.
This commit is contained in:
Tom Hughes 2010-09-08 17:13:54 +01:00
parent 6669253f9c
commit d8006be822
2 changed files with 2 additions and 2 deletions

View file

@ -227,7 +227,7 @@ page << <<EOJ
function htmlUrlChanged() {
var bounds = new OpenLayers.Bounds($("minlon").value, $("minlat").value, $("maxlon").value, $("maxlat").value);
var layerName = map.baseLayer.name.toLowerCase();
var layerName = map.baseLayer.keyid;
var url = "http://#{SERVER_URL}/export/embed.html?bbox=" + bounds.toBBOX() + "&layer=" + layerName;
var markerUrl = "";