Skip to content

Commit b558cb4

Browse files
mstockdatendelphin
authored andcommitted
Adapt to changed leaflet-control-geocoder behaviour
Apparently, the object returned by requiring `leaflet-control-geocoder` appears to be an empty object, so calling a function on it was failing. It can be accessed via the `L.Control.Geocoder` object though, so take that route.
1 parent 6d17590 commit b558cb4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,8 @@ function makeIcon(i, n) {
9292
});
9393
}
9494
}
95-
9695
var plan = new ReversablePlan([], {
97-
geocoder: Geocoder.nominatim(),
96+
geocoder: L.Control.Geocoder.nominatim(),
9897
routeWhileDragging: true,
9998
createMarker: function(i, wp, n) {
10099
var options = {

0 commit comments

Comments
 (0)