Skip to content
Advertisement

find nearest point and show properties from nearest point into user created marker in Leaflet

Example I’m trying to find the nearest markers on a map of a specific location with Leaflet, want to show popup info on user created marker which is find nearest point, popup info should be include with nearest point properties from the geojson data layer. example maker.bindpopup(feature.properties.name).addTo(map)

JavaScript

Advertisement

Answer

Try this:

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement