Represents the type of Feature instances that are handled by this store. The default type is inferred from features passed in MemoryStoreConstructorOptions.data, if the field is provided.
Optional
dataThe initial array of Feature
s to populate the store with.
Optional
reference
The reference in which the stored data is defined. This reference should match the reference
of the Store is used.
This reference is used to create an internal spatial cache when the
MemoryStoreConstructorOptions.spatialIndex property is set to true
.
Please note that geocentric references are not allowed. A store with a geocentric reference will be graciously degraded to the memory store without spatial capabilities.
2021.0
Optional
spatialThe flag that indicates if the memory store should support spatial queries.
In order to create a MemoryStore with spatial capabilities you need to provide also the coordinate reference of stored features. This value is needed to create an internal spatial cache object. The reference can be provided explicitly by setting the MemoryStoreConstructorOptions.reference or can be deduced from features passed in the initial data MemoryStoreConstructorOptions.data.
If the value is true
and a reference value is not provided explicitly
or cannot be deduced from initial data then the created MemoryStore will not support spatial queries.
Limitation: the store does not support geocentric references. In such a case the created MemoryStore will not support spatial queries.
false
2021.0
Constructor options for MemoryStore.