Options.
ReadonlycontainsReadonlydataReadonlydataGets the datatype of images generated by this source.
ReadonlyflipGets whether images generated from this source should be flipped vertically.
ReadonlyisReadonlyisReadonly flag to indicate that his object implements MemoryUsage.
ReadonlyisReadonlypriorityReadonlysourceOptionalstyleThe current style.
Note: to set a new style, use setStyle() instead.
ReadonlysynchronousIf true, this source can immediately generate images without any delay.
ReadonlytransparentReadonlytypeGets the color space of the textures generated by this source.
Adds a feature to this source.
The feature to add.
Adds features to this source.
The features to add.
Returns an adjusted extent, width and height so that request pixels are aligned with source pixels, and requests do not oversample the source.
The request extent.
The width, in pixels, of the request extent.
The height, in pixels, of the request extent.
The margin, in pixels, around the initial extent.
The adjusted parameters.
Removes all feature in this source.
Gets whether this source contains the specified extent. If a custom contains function is provided, it will be used. Otherwise, intersects is used.
This method is mainly used to discard non-relevant requests (i.e don't process regions that are not relevant to this source).
The extent to test.
Disposes unmanaged resources of this source.
Applies the callback for each feature in this source.
The callback.
Returns the extent of this source expressed in the CRS of the source. Might be null if the extent of the source is not known.
The extent of the source, if any.
Returns the feature with the specified id.
The feature id.
The feature.
Returns an array with the feature in this source.
The features.
Gets the images for the specified extent and pixel size.
The options.
An array containing the functions to generate the images asynchronously.
Returns an approximation of the memory used by this object, in bytes.
Initializes the source.
A promise that resolves when the source is initialized.
Test the intersection between the specified extent and this source's extent. This method may be overriden to perform special logic.
The extent to test.
true if the extent and this source extent intersects, false otherwise.
Loads the features from this source, either from:
Removes a feature from this source.
The feature to remove.
Reprojects a feature from the source projection into the target (instance) projection.
The feature to reproject.
Change the style of this source. This triggers an update of the source.
The style, or style function.
Updates the region associated with the feature(s).
The feature(s) to update.
An image source that reads vector data. Internally, this wraps an OpenLayers' VectorSource. This uses OpenLayers' styles and features.
Note: to assign a new style to the source, use setStyle instead of the style property.
Example