layers = mapLayers();
- for (var i = 0; i < layers.length; i++) {
- layers[i].layer = new (layers[i].klass)(layers[i]);
- }
-
layers[0].layer.addTo(map);
$("#map").on("resized", function () {
var layers = getMapLayers();
var extents = map.getBounds().wrap();
- updatelinks(center.lng,
- center.lat,
+ updatelinks(center,
zoom,
layers,
extents.getWest(),