Upgrade leaflet geocoder to properly parse lat/lng

This commit is contained in:
Gautier Pelloux-Prayer 2019-06-16 19:04:18 +02:00
parent e000dfb05c
commit 60029df6d9
3 changed files with 17 additions and 7 deletions

View file

@ -1,7 +1,10 @@
BR.Search = L.Control.Geocoder.extend({
options: {
geocoder: new L.Control.Geocoder.Nominatim({
serviceUrl: 'https://nominatim.openstreetmap.org/'
geocoder: new L.Control.Geocoder.LatLng({
next: new L.Control.Geocoder.Nominatim({
serviceUrl: 'https://nominatim.openstreetmap.org/'
}),
sizeInMeters: 800
}),
position: 'topleft'
},