From 11bc76fea6525b3d8c9e23e67c5ca9563b1194b8 Mon Sep 17 00:00:00 2001 From: David Molineus Date: Wed, 5 Oct 2016 08:58:10 +0200 Subject: [PATCH] Fix dragging of result icons. --- module/templates/be_leaflet_geocode.html5 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/templates/be_leaflet_geocode.html5 b/module/templates/be_leaflet_geocode.html5 index 81a262d..ecdd8cd 100644 --- a/module/templates/be_leaflet_geocode.html5 +++ b/module/templates/be_leaflet_geocode.html5 @@ -12,6 +12,7 @@ }).addTo(map); var element = $('field; ?>'); var geocoder = L.Control.geocoder({ + defaultMarkGeocode: false, collapsed: false, placeholder: '' }).addTo(map); @@ -39,10 +40,9 @@ map.fitBounds(result.bbox, { padding: [0, 70]}); map.panTo(result.center); - this._geocodeMarker = new L.Marker(result.center) + this._geocodeMarker = new L.Marker(result.center, {draggable: true}) .bindPopup(container, { keepInView: true, - draggable: true, autoPanPaddingTopLeft: [0, 70] }) .addTo(map)