stefanocudini / leaflet-search

Search stuff in a Leaflet map
https://opengeo.tech/maps/leaflet-search/
MIT License
782 stars 334 forks source link

Search polyline type could return a point ON the line (not centroid) #240

Open mattcalavera opened 5 years ago

mattcalavera commented 5 years ago

Hi, when searching for a polyline tipe vector, now the centroid point is returned. Mainly the centroid point is NOT a point of the polyline so it's difficult, in complex map, to find out what we are searching for. It will be extremely useful, for polyline layers, returning the closest point on polyline. Thanks