Restore attribution on main map
This commit is contained in:
parent
483854f411
commit
d1ee7de08b
2 changed files with 8 additions and 6 deletions
|
@ -12,13 +12,13 @@ $(document).ready(function () {
|
||||||
var params = OSM.mapParams();
|
var params = OSM.mapParams();
|
||||||
|
|
||||||
map = L.map("map", {
|
map = L.map("map", {
|
||||||
attributionControl: false,
|
|
||||||
zoomControl: false,
|
zoomControl: false,
|
||||||
layerControl: false
|
layerControl: false
|
||||||
});
|
});
|
||||||
|
|
||||||
layers = mapLayers();
|
map.attributionControl.setPrefix('');
|
||||||
|
|
||||||
|
layers = mapLayers();
|
||||||
layers[0].layer.addTo(map);
|
layers[0].layer.addTo(map);
|
||||||
|
|
||||||
$("#map").on("resized", function () {
|
$("#map").on("resized", function () {
|
||||||
|
|
|
@ -17,27 +17,29 @@ var objectLoader;
|
||||||
|
|
||||||
function mapLayers() {
|
function mapLayers() {
|
||||||
return [{
|
return [{
|
||||||
layer: new L.OSM.Mapnik(),
|
layer: new L.OSM.Mapnik({
|
||||||
|
attribution: ''
|
||||||
|
}),
|
||||||
keyid: "mapnik",
|
keyid: "mapnik",
|
||||||
layerCode: "M",
|
layerCode: "M",
|
||||||
name: I18n.t("javascripts.map.base.standard")
|
name: I18n.t("javascripts.map.base.standard")
|
||||||
}, {
|
}, {
|
||||||
layer: new L.OSM.CycleMap( {
|
layer: new L.OSM.CycleMap( {
|
||||||
attribution: "Tiles courtesy of <a href='http://www.opencyclemap.org/' target='_blank'>Andy Allan</a>",
|
attribution: "Tiles courtesy of <a href='http://www.opencyclemap.org/' target='_blank'>Andy Allan</a>",
|
||||||
}),
|
}),
|
||||||
keyid: "cyclemap",
|
keyid: "cyclemap",
|
||||||
layerCode: "C",
|
layerCode: "C",
|
||||||
name: I18n.t("javascripts.map.base.cycle_map")
|
name: I18n.t("javascripts.map.base.cycle_map")
|
||||||
}, {
|
}, {
|
||||||
layer: new L.OSM.TransportMap({
|
layer: new L.OSM.TransportMap({
|
||||||
attribution: "Tiles courtesy of <a href='http://www.opencyclemap.org/' target='_blank'>Andy Allan</a>",
|
attribution: "Tiles courtesy of <a href='http://www.opencyclemap.org/' target='_blank'>Andy Allan</a>",
|
||||||
}),
|
}),
|
||||||
keyid: "transportmap",
|
keyid: "transportmap",
|
||||||
layerCode: "T",
|
layerCode: "T",
|
||||||
name: I18n.t("javascripts.map.base.transport_map")
|
name: I18n.t("javascripts.map.base.transport_map")
|
||||||
}, {
|
}, {
|
||||||
layer: new L.OSM.MapQuestOpen({
|
layer: new L.OSM.MapQuestOpen({
|
||||||
attribution: "Tiles courtesy of <a href='http://www.mapquest.com/' target='_blank'>MapQuest</a> <img src='http://developer.mapquest.com/content/osm/mq_logo.png'>",
|
attribution: "Tiles courtesy of <a href='http://www.mapquest.com/' target='_blank'>MapQuest</a> <img src='http://developer.mapquest.com/content/osm/mq_logo.png'>",
|
||||||
}),
|
}),
|
||||||
keyid: "mapquest",
|
keyid: "mapquest",
|
||||||
layerCode: "Q",
|
layerCode: "Q",
|
||||||
|
|
Loading…
Add table
Reference in a new issue