key instead of trying to use the layer name, which can be translated
which will stop it working. Closes #2876.
}
function updateMapKey() {
- var layer = map.baseLayer.name.toLowerCase().replace(/\s+/g, "_");
+ var layer = map.baseLayer.keyid;
var zoom = map.getZoom();
<%= remote_function :update => "sidebar_content",
});
var mapnik = new OpenLayers.Layer.OSM.Mapnik(i18n("javascripts.map.base.mapnik"), {
+ keyid; "mapnik",
displayOutsideMaxExtent: true,
wrapDateLine: true
});
map.addLayer(mapnik);
var osmarender = new OpenLayers.Layer.OSM.Osmarender(i18n("javascripts.map.base.osmarender"), {
+ keyid: "osmarender",
displayOutsideMaxExtent: true,
wrapDateLine: true
});
map.addLayer(osmarender);
var cyclemap = new OpenLayers.Layer.OSM.CycleMap(i18n("javascripts.map.base.cycle_map"), {
+ keyid: "cyclemap",
displayOutsideMaxExtent: true,
wrapDateLine: true
});