When I use leaflet-search on it's own it works, but when I use it in combination with some other leaflet packages like leaflet.locatecontrol and leaflet.markercluster it seems to interfere with them by throwing a is not a function Error wherever they are called.
For example this code:
let markers = L.markerClusterGroup();
will throw the error:
Error: L.markerClusterGroup is not a function
When I use leaflet-search on it's own it works, but when I use it in combination with some other leaflet packages like leaflet.locatecontrol and leaflet.markercluster it seems to interfere with them by throwing a
is not a function
Error wherever they are called.For example this code:
let markers = L.markerClusterGroup();
will throw the error:Error: L.markerClusterGroup is not a function
Here is a link to the other packages I am referring to: https://github.com/domoritz/leaflet-locatecontrol https://github.com/Leaflet/Leaflet.markercluster
I would like to be able to use this package with other leaflet packages without conflicts.
Any help on this would be appreciated, thanks!