]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/browse.js
Use custom zoom control everywhere
[rails.git] / app / assets / javascripts / browse.js
index c39e8382c6dc8d1ab445bfcf97770614cee3f0f5..2d9c4b46f785cb441ad78aff97a38a9d8bd53d98 100644 (file)
@@ -5,7 +5,7 @@ $(document).ready(function () {
     zoomControl: false
   }).addLayer(new L.OSM.Mapnik());
 
     zoomControl: false
   }).addLayer(new L.OSM.Mapnik());
 
-  L.control.zoom({position: 'topright'})
+  L.OSM.zoom()
     .addTo(map);
 
   $("#small_map").on("resized", function () {
     .addTo(map);
 
   $("#small_map").on("resized", function () {