This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

How can I draw a circle around a point?

4
1

Hello,
I want to draw a circle around random point with a radius.
I saw this link Draw OpenStreetMap
and wanted to know if there is another examples where I can define the radius of a point.
In addition if I can save it as layer.
I would like to get some advice how to do that.
Thanks!

asked 24 Aug '13, 16:10

Ofir%20Attia's gravatar image

Ofir Attia
1014510
accept rate: 0%

edited 27 Aug '13, 21:00

MagicFab's gravatar image

MagicFab
935101622


One Answer:

2

If you do not stick to openlayers, maybe try http://leafletjs.com ...

If I am not wrong, it also has a drawing feature, or not?

answered 25 Aug '13, 18:15

stephan75's gravatar image

stephan75
12.6k556210
accept rate: 6%

1

I found that Leaflet is a good framework for drawing, you can find it at Leaflet.Draw

(27 Aug '13, 13:18) Ofir Attia

Thanks, that was useful; I've used leaflet demo at http://leaflet.github.io/Leaflet.draw/docs/examples/full.html as a quick way to triangualate place on OSM by knowing how far the location is from multiple other places (i.e. where circles cross)

(29 Mar '23, 14:02) Matija Nalis

Source code available on GitHub .