martindholmes / BreezeMap

BreezeMap is a project to create a simple user interface for interactive map and facsimile editing based on TEI XML and OpenLayers 4+.
MIT License
11 stars 3 forks source link

Polygons with cutouts not handled yet #8

Closed martindholmes closed 6 years ago

martindholmes commented 6 years ago

Currently, the drawing interface only allows a single polygon to be drawn, but in fact in order to create cutouts, it's essential to be able to draw child polygons. This may be as simple as not clearing the existing shape when starting to draw another, but probably not. The question also arises: do we try to enforce the containment of cutout polygons within the outer polygon, or should that be left to the user to worry about?

martindholmes commented 6 years ago

Fixed in commit d759bd0. Drawing interface and existing code appears to handle the precedence of linear rings correctly, even if you draw them out of order.