rails_i18n["site.layers.base.cycle_map"] = '<%= escape_javascript(t('site.layers.base.cycle_map')) %>';
rails_i18n["site.layers.base.noname"] = '<%= escape_javascript(t('site.layers.base.noname')) %>';
rails_i18n["site.layers.overlays.maplint"] = '<%= escape_javascript(t('site.layers.overlays.maplint')) %>';
- rails_i18n["site.layers.overlays.markers"] = '<%= escape_javascript(t('site.layers.overlays.markers')) %>';
- rails_i18n["site.layers.overlays.objects"] = '<%= escape_javascript(t('site.layers.overlays.objects')) %>';
- rails_i18n["site.layers.overlays.box_layer"] = '<%= escape_javascript(t('site.layers.overlays.box_layer')) %>';
</script>
<%= javascript_include_tag 'prototype' %>
<%= javascript_include_tag 'site' %>
var numZoomLevels = Math.max(mapnik.numZoomLevels, osmarender.numZoomLevels);
- markers = new OpenLayers.Layer.Markers(rails_i18n["site.layers.overlays.markers"], {
+ markers = new OpenLayers.Layer.Markers("Markers", {
displayInLayerSwitcher: false,
numZoomLevels: numZoomLevels,
maxExtent: new OpenLayers.Bounds(-20037508,-20037508,20037508,20037508),
}
function addObjectToMap(url, zoom, callback) {
- var layer = new OpenLayers.Layer.GML(rails_i18n["site.layers.overlays.objects"], url, {
+ var layer = new OpenLayers.Layer.GML("Objects", url, {
format: OpenLayers.Format.OSM,
style: {
strokeColor: "blue",
}
function addBoxToMap(boxbounds) {
- if(!vectors) {
+ if (!vectors) {
// Be aware that IE requires Vector layers be initialised on page load, and not under deferred script conditions
- vectors = new OpenLayers.Layer.Vector(rails_i18n["site.layers.overlays.box_layer"], {
+ vectors = new OpenLayers.Layer.Vector("Boxes", {
displayInLayerSwitcher: false
});
map.addLayer(vectors);