From 65ceb77eabe239a8d755c0e55ef52255510dbdb3 Mon Sep 17 00:00:00 2001 From: J Guthrie Date: Sat, 31 Mar 2018 22:18:25 +0100 Subject: [PATCH] Added autoPan for Directions markers --- app/assets/javascripts/index/directions.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- 2.43.2