Optional
opt_options: HeatmapOptionsOptions.
Layer for rendering vector data as a heatmap.
Note that any property set in the options is set as a ol.Object
property on the layer object; for example, setting title: 'My Title'
in the
options means that title
is observable, and has get/set accessors.
ol.render.Event
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 extent at which the layer is visible. If undefined
, the layer
will be visible at all extents.
The extent of the layer.
stable
Sets the layer to be rendered on top of other layers on a map. The map will
not manage this layer in its layers collection, and the callback in
ol.Map#forEachLayerAtPixel will receive null
as layer. This
is useful for temporary layers. To remove an unmanaged layer from the map,
use #setMap(null)
.
To add the layer to a map and have it managed by the map, use ol.Map#addLayer instead.
Map.
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 layer source.
The layer source.
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
Removes 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
Static
unGenerated using TypeDoc
Classdesc
Layer for rendering vector data as a heatmap. Note that any property set in the options is set as a ol.Object property on the layer object; for example, setting
title: 'My Title'
in the options means thattitle
is observable, and has get/set accessors.Fires
ol.render.Event
Param: opt_options
Options.
Api