X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/64eec2a5d0ea39f61de5fe7f6265ea1718dbfe59..fe6e837cfe77e1414998c0216defe7912e34bf75:/app/assets/javascripts/map.js.erb
diff --git a/app/assets/javascripts/map.js.erb b/app/assets/javascripts/map.js.erb
index 96959b4e1..b8e53d5e0 100644
--- a/app/assets/javascripts/map.js.erb
+++ b/app/assets/javascripts/map.js.erb
@@ -46,28 +46,28 @@ var map;
var layers = [
{
- class: L.OSM.Mapnik,
+ klass: L.OSM.Mapnik,
attribution: "",
keyid: "mapnik",
layerCode: "M",
name: I18n.t("javascripts.map.base.standard")
},
{
- class: L.OSM.CycleMap,
+ klass: L.OSM.CycleMap,
attribution: "Tiles courtesy of Andy Allan",
keyid: "cyclemap",
layerCode: "C",
name: I18n.t("javascripts.map.base.cycle_map")
},
{
- class: L.OSM.TransportMap,
+ klass: L.OSM.TransportMap,
attribution: "Tiles courtesy of Andy Allan",
keyid: "transportmap",
layerCode: "T",
name: I18n.t("javascripts.map.base.transport_map")
},
{
- class: L.OSM.MapQuestOpen,
+ klass: L.OSM.MapQuestOpen,
attribution: "Tiles courtesy of MapQuest ",
keyid: "mapquest",
layerCode: "Q",
@@ -89,7 +89,7 @@ function createMap(divName, options) {
}
for (var i = 0; i < layers.length; i++) {
- layers[i].layer = new (layers[i].class)(layers[i]);
+ layers[i].layer = new (layers[i].klass)(layers[i]);
if (i == 0) {
layers[i].layer.addTo(map);
}