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();
|
||||
|
||||
map = L.map("map", {
|
||||
attributionControl: false,
|
||||
zoomControl: false,
|
||||
layerControl: false
|
||||
});
|
||||
|
||||
layers = mapLayers();
|
||||
map.attributionControl.setPrefix('');
|
||||
|
||||
layers = mapLayers();
|
||||
layers[0].layer.addTo(map);
|
||||
|
||||
$("#map").on("resized", function () {
|
||||
|
|
|
@ -17,27 +17,29 @@ var objectLoader;
|
|||
|
||||
function mapLayers() {
|
||||
return [{
|
||||
layer: new L.OSM.Mapnik(),
|
||||
layer: new L.OSM.Mapnik({
|
||||
attribution: ''
|
||||
}),
|
||||
keyid: "mapnik",
|
||||
layerCode: "M",
|
||||
name: I18n.t("javascripts.map.base.standard")
|
||||
}, {
|
||||
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",
|
||||
layerCode: "C",
|
||||
name: I18n.t("javascripts.map.base.cycle_map")
|
||||
}, {
|
||||
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",
|
||||
layerCode: "T",
|
||||
name: I18n.t("javascripts.map.base.transport_map")
|
||||
}, {
|
||||
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",
|
||||
layerCode: "Q",
|
||||
|
|
Loading…
Add table
Reference in a new issue