Restore attribution on main map

This commit is contained in:
John Firebaugh 2013-06-10 13:55:27 -07:00
parent 483854f411
commit d1ee7de08b
2 changed files with 8 additions and 6 deletions

View file

@ -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 () {

View file

@ -17,7 +17,9 @@ 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")