I am not familiar with Node.js or npm at all, but my IT has told me node.js/npm is not compatible with our IIS, and the only search plugins to add on to leaflet are using npm to install them.
I did a search here and found this solution without npm – leaflet-control-geocoder, but it searches address databases such as google or bing, not the geojson data I have plugged into my map that I need to be able to search.
So my question is, is there a way to use the Leaflet Search plugin or leaflet-fusesearch plugin without using npm to install it?
Best Answer
I'm assuming that you want to use the leaflet-search plugin, without using NPM. This is possible, using these steps:
Clone or download
button, and download as Zipdist
& theimages
folder to your application.dist
folder (i.e.leaflet-search.min.css
&leaflet-search.min.js
).L.Control.Search
object in your JavaScript code.