]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/directions.js
Added autoPan for Directions markers
[rails.git] / app / assets / javascripts / index / directions.js
index 1a3e0d4ecae558056b2b9867c4ea2ea0fe4b9920..392183cc601263ac24eaaac37be189c24b555e25 100644 (file)
@@ -40,7 +40,8 @@ OSM.Directions = function (map) {
         shadowUrl: OSM.MARKER_SHADOW,
         shadowSize: [41, 41]
       }),
-      draggable: true
+      draggable: true,
+      autoPan: true
     });
 
     endpoint.marker.on('drag dragend', function (e) {