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
While applying some colors to the features I realized that the points that appear when drawing a polygon are not "tentative". As I understand it - they should be.
From the documentation:
Tentative Features
While creating a new feature in any of the draw modes, portion of a feature which has not been "committed" yet can hold its own props. For example, in drawLineString mode, the tentative feature is the last line segment moving under the mouse. For polygons and ellipses, this would be the whole feature during drawing. A tentative feature can be identified by checking if properties.guideType === 'tentative'.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
While applying some colors to the features I realized that the points that appear when drawing a polygon are not "tentative". As I understand it - they should be.
From the documentation:
While in the source code:

So they are being set with:
Where as other parts of the not-commited shape are set like:
Why is that?
Beta Was this translation helpful? Give feedback.
All reactions