X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/4563244fd1cb43dca00b427e1f13ac890b7f00a0..483854f411ce7106144883824adb7e49060424c2:/app/assets/javascripts/index.js?ds=sidebyside diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index 2cabfc5d0..e4dbb84d0 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -19,10 +19,6 @@ $(document).ready(function () { 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 () { @@ -118,8 +114,7 @@ $(document).ready(function () { var layers = getMapLayers(); var extents = map.getBounds().wrap(); - updatelinks(center.lng, - center.lat, + updatelinks(center, zoom, layers, extents.getWest(),