1

Is there only one way to draw a polygon through the Leaflet.draw plugin?

If you want draw anything, you must add the control ("map.addControl(drawControl);").

I want to draw a polygon on leaflet map by Event that I can trigger through any DOM event. Does anybody have a good idea how I can do this?

  • Do you want the user to draw a polygon? Or you to do it ahead of time? Or do it programmatically based on variables? – Josh Sep 19 '13 at 7:18
  • Some added details would be helpful, here. Are you wanting to draw a circle of a particular size on-click? Maybe a mocked-up picture would demonstrate what you are looking for. – RyanDalton Sep 3 '14 at 18:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.