Open Street Maps - Range around point

Hi everybody,

I´ve added a Open Street Map Component to my application.

Now my plan ist to define a point and draw a circuit around this point. the user should be able to change the radius of the circuit by changeing the value in a dropdown box.
And after that, i want to check if some cordinates are inside this range circuit.

what is the best way to add this feature?

thanks for your help

Hi,

If you are using V-Leaflet (which is my recommendation and contains Open Street Map layer), use LCircle. Or if you want to se radius in pixels instead of meters (size remains visually same on various zoom leveles), use LCircleMarker.

https://github.com/mstahv/v-leaflet/blob/master/src/test/java/org/vaadin/addon/leaflet/demoandtestapp/BasicTest.java#L90

cheers,
matti