Returns the layer of this collection. Caution, do not use the layer API to add or remove items. When adding items to the collection, the features are added to the layer async (timeout of 0), since there is weird behavior when removing and adding a feature with the same id in the same sync call.
Static
classProtected
_deserializeProtected
_itemProtected
_itemProtected
_itemProtected
_itemProtected
_serializeThrows if typed, featureProperty and keyProperty do not match. Merges other options. Only merges: style, highlightStyle, zIndex & vectorProperties from layerOptions.
When setting the category, it MUST use the same uniqueKey as the previous collection (default is "name"). All items in the current collection will be destroyed and the current collection will be destroyed. The category will take complete ownership of the collection and destroy it once the category is destroyed. The collection will be turned into an OverrideCollection
Static
get
A category contains user based items and is a special container. The container should not be created directly, but via the requestCategory API on the categories collection. Do not use toJSON to retrieve the state of a category, since categories outlive modules and may be changed with mergeOptions to no longer reflect your initial state. Requestors should keep track of the requested options themselves.