Optional
idOptional
tracked?: booleanBeta
true or false depending on if the instance is stopped or started
Beta
A method for adding features to the store. This method will validate the features returning an array of validation results. Features must match one of the modes enabled in the instance.
an array of GeoJSON features
an array of validation results
Beta
Provides the ability to programmatically deselect a feature using the instances provided select mode. If not select mode is provided in the instance, an error will be thrown. If the instance is not currently in the select mode, it will switch to it.
the id of the feature to deselect
Beta
Returns the next feature id from the store - defaults to UUID4 unless you have set a custom idStrategy. This method can be useful if you are needing creating features outside of the Terra Draw instance but want to add them in to the store.
a id, either number of string based on whatever the configured idStrategy is
Beta
Gets the features at a given longitude and latitude. Will return point and linestrings that are a given pixel distance away from the lng/lat and any polygons which contain it.
Optional
options: { Beta
Takes a given pointer event and Will return point and linestrings that are a given pixel distance away from the lng/lat and any polygons which contain it.
Optional
options: { Beta
Allows the user to get a snapshot (copy) of all given features
An array of all given Feature Geometries in the instances store
Beta
Returns true or false depending on if the Terra Draw instance has a feature with a given id
a boolean determining if the instance has a feature with the given id
Beta
A method for removing features to the store
Beta
Provides the ability to programmatically select a feature using the instances provided select mode. If not select mode is provided in the instance, an error will be thrown. If the instance is not currently in the select mode, it will switch to it.
the id of the feature to select
A property used to determine whether the instance is active or not. You can use the start method to set this to true, and stop method to set this to false. This is a read only property.