Using leaflet I have created a simple map, played around with markers (adding/removing) and have added some GeoJSON data polygons etc. I now need help with implementing a radius search. For example I want to restrict the markers placed on the map by radius/distance in metres/cm etc. I want to achieve this in two ways. example:
The user will enter a distance in metres and click submit. This should only bring the markers back within that distance/radius. My markers are populated using Lat/Long coords. Is this possible to achieve what i want or do i need additional data along with Lat/Long.
The user should be able to drag a marker on the map and click submit which should return all the markers within 300 metres of the marker.
Is the above possible with leaflet and can anyone point me to any plugins which can achieve the above.
http://csessig.wordpress.com/2014/06/22/leaflet-solution-counting-markers-within-a-radius/
l