]> git.openstreetmap.org Git - rails.git/commitdiff
Merge remote-tracking branch 'upstream/pull/1804'
authorTom Hughes <tom@compton.nu>
Mon, 2 Apr 2018 14:41:35 +0000 (15:41 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 2 Apr 2018 14:41:35 +0000 (15:41 +0100)
app/assets/javascripts/index/directions.js

index 1057fa58d5337077a1401ad7bd864cff355daa22..2b3319f8f35c1e95279b88af763c5b348ac78521 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) {