]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index.js
Refactor mapLayers to create layers up front
[rails.git] / app / assets / javascripts / index.js
index 2cabfc5d0369105b5152b9650923c127c1e2c2dc..ba2aa26444ab8cc065537d124bd76fb8a4b44e4e 100644 (file)
@@ -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 () {