Options.
An image source whose images are canvas elements into which vector features
read from a vector source (ol.source.Vector
) are drawn. An
ol.source.ImageVector
object is to be used as the source
of an image
layer (ol.layer.Image
). Image layers are rotated, scaled, and translated,
as opposed to being re-rendered, during animations and interactions. So, like
any other image layer, an image layer configured with an
ol.source.ImageVector
will exhibit this behaviour. This is in contrast to a
vector layer, where vector features are re-drawn during animations and
interactions.
Get the attributions of the source.
Attributions.
stable
Get the logo of the source.
Logo.
stable
Get the projection of the source.
Projection.
Get the state of the source, see ol.source.State for possible states.
State.
Get the style for features. This returns whatever was passed to the style
option at construction or to the setStyle
method.
Layer style.
stable
Get the style function.
Layer style function.
stable
Listen for a certain type of event.
The event type or array of event types.
The listener function.
Optional
opt_this: ObjectThe object to use as this
in listener
.
Unique key for the listener. If called with an array of event types as the first argument, the return will be an array of keys.
stable
Listen once for a certain type of event.
The event type or array of event types.
The listener function.
Optional
opt_this: ObjectThe object to use as this
in listener
.
Unique key for the listener. If called with an array of event types as the first argument, the return will be an array of keys.
stable
Set the attributions of the source.
Attributions.
Can be passed as string
, Array<string>
, {@link ol.Attribution}
,
Array<{@link ol.Attribution}>
or undefined
.
Sets a collection of key-value pairs. Note that this changes any existing properties and adds new ones (it does not remove any existing properties).
Values.
Optional
opt_silent: booleanUpdate without triggering an event.
stable
Set the style for features. This can be a single style object, an array
of styles, or a function that takes a feature and resolution and returns
an array of styles. If it is undefined
the default style is used. If
it is null
the layer has no style (a null
style), so only features
that have their own styles will be rendered in the layer. See
ol.style for information on the default style.
Layer style.
stable
Static
unRemoves an event listener using the key returned by on()
or once()
.
Note that using the ol.Observable.unByKey static function is to
be preferred.
stable
Generated using TypeDoc
Classdesc
An image source whose images are canvas elements into which vector features read from a vector source (
ol.source.Vector
) are drawn. Anol.source.ImageVector
object is to be used as thesource
of an image layer (ol.layer.Image
). Image layers are rotated, scaled, and translated, as opposed to being re-rendered, during animations and interactions. So, like any other image layer, an image layer configured with anol.source.ImageVector
will exhibit this behaviour. This is in contrast to a vector layer, where vector features are re-drawn during animations and interactions.Param: options
Options.
Api