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

Set Map Area GUI function is broken #26

Closed martindholmes closed 3 years ago

martindholmes commented 3 years ago

Just doesn't work properly -- try it in the test sites. It was probably never fully implemented.

martindholmes commented 3 years ago

The error we see when trying to draw the rectangle is this.sketchFeature_ is null.

Interestingly, this error does not occur when using ol-debug.js, only when using ol.js. This suggests either a bug in the OL build process, or some sort of failure to surface a required method at compile time.

martindholmes commented 3 years ago

Fixed. I just needed to switch from using a custom drawing function to using the built-in ol.interaction.Draw.createBox() function.