CivMap icon indicating copy to clipboard operation
CivMap copied to clipboard

use leaflet.pm for drawing

Open Gjum opened this issue 8 years ago • 3 comments

original title: snapping claim polygon points to other claims while drawing

Claims submissions often don't exactly border existing claims although the submitter wanted them to (some offset by 1 block, some completely different points approximating the other claim's border).

This could be prevented by snapping to the points of other nearby polygons when drawing a new polygon.

There is a Leaflet plugin that does this. Example usage

Gjum avatar Nov 05 '16 01:11 Gjum

Will be using https://github.com/codeofsumit/leaflet.pm which does that by default and really well too.

Gjum avatar May 22 '17 21:05 Gjum

circle seems to be glitched: radius gets set to infinity or similar when drawing/editing

Gjum avatar May 22 '17 21:05 Gjum

@Gjum I'm the author of leaflet.pm, is there an issue that I need to take care of in leaflet.pm? Let me know if I can help and if you found a bug or need a new feature, feel free to create an issue.

codeofsumit avatar Aug 30 '17 14:08 codeofsumit