You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the second parameter is an annotation. If we accept an annotation on create, then we could start with that annotation but in create mode rather than edit mode.
If we accept geoJSON there, this would be functionally the same as adding annotations as geojson and using the last such annotation as part of the creation process.
For example, instead of starting creation at the beginning, start with some number of points already placed.
This would put the annotation layer in creation mode with 1 point already dropped, ready to place the second.
I think this is generally applicable to line, rectangle, and polygon. It should probably throw and error if you try it with a point.
If a maintainer is willing to accept that or a similar API, I could attempt to implement. This would not be a breaking change.
geojs/src/annotationLayer.js
Lines 543 to 552 in 42d1d39
Looks like there are options to try before we make an official attempt.
The text was updated successfully, but these errors were encountered: