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
Types of property 'declutter' are incompatible.
Type 'string | number | boolean | undefined' is not assignable to type 'boolean | undefined'.
Type 'string' is not assignable to type 'boolean | undefined'.ts(2345)
Describe the bug
VectorLayer options type accepts a
StyleLike | FlatStyleLike | null | undefined
.VectorImageLayer options type accepts a
StyleLike | null | undefined
.openlayers/src/ol/layer/BaseVector.js
Line 51 in 474b201
openlayers/src/ol/layer/VectorImage.js
Line 43 in 474b201
However, VectorImageLayer seems to actually support flat styles, so it looks like
FlatStyleLike
is just missing from the type definition.To Reproduce
Object literal may only specify known properties, and '"fill-color"' does not exist in type 'StyleLike'.ts(2353)
Expected behavior
Both VectorLayer and VectorImageLayer options should accept flat styles.
The text was updated successfully, but these errors were encountered: