var params = OSM.mapParams();
map = L.map("map", {
- attributionControl: false,
zoomControl: false,
layerControl: false
});
- layers = mapLayers();
-
- for (var i = 0; i < layers.length; i++) {
- layers[i].layer = new (layers[i].klass)(layers[i]);
- }
+ map.attributionControl.setPrefix('');
+ layers = mapLayers();
layers[0].layer.addTo(map);
$("#map").on("resized", function () {
var layers = getMapLayers();
var extents = map.getBounds().wrap();
- updatelinks(center.lng,
- center.lat,
- zoom,
- layers,
- extents.getWest(),
- extents.getSouth(),
- extents.getEast(),
- extents.getNorth(),
- params.object);
+ updatelinks(center, zoom, layers, extents, params.object);
var expiry = new Date();
expiry.setYear(expiry.getFullYear() + 10);