CivMap
CivMap copied to clipboard
use leaflet.pm for drawing
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
Will be using https://github.com/codeofsumit/leaflet.pm which does that by default and really well too.
circle seems to be glitched: radius gets set to infinity or similar when drawing/editing
@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.