From: J Guthrie Date: Sat, 31 Mar 2018 21:18:25 +0000 (+0100) Subject: Added autoPan for Directions markers X-Git-Tag: live~3071^2 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/65ceb77eabe239a8d755c0e55ef52255510dbdb3 Added autoPan for Directions markers --- diff --git a/app/assets/javascripts/index/directions.js b/app/assets/javascripts/index/directions.js index 1a3e0d4ec..392183cc6 100644 --- a/app/assets/javascripts/index/directions.js +++ b/app/assets/javascripts/index/directions.js @@ -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) {