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)