Abstract
The event map of the layer.
The type of the userData
property.
Creates a layer.
The layer options.
Protected
_composerPrivate
Readonly
_createPrivate
_fallbackPrivate
Readonly
_filterPrivate
_instancePrivate
Readonly
_opPrivate
Readonly
_preloadPrivate
_preprocessProtected
Readonly
_queuePrivate
_readyPrivate
_shouldPrivate
_sortedPrivate
Readonly
_targetsPrivate
_visibleReadonly
colorThe colormap of this layer
Readonly
computeReadonly
extentThe extent of this layer
Disables automatic updates of this layer. Useful for debugging purposes.
Readonly
idThe unique identifier of this layer.
Readonly
interpretationReadonly
isRead-only flag to check if a given object is of type Layer.
Readonly
nameOptional name of this layer.
Readonly
noReadonly
resolutionThe resolution factor applied to the textures generated by this layer.
Readonly
showReadonly
sourceThe source of this layer
Readonly
userAn object that can be used to store custom data about the Layer.
Gets whether the object is currently performing an asynchronous operation.
Returns the percentage of progress, in normalized value (i.e in the [0, 1] range), of the asynchronous operations that are scheduled to run on this object. 1 means that all operations have finished.
Gets or sets the visibility of this layer.
Private
_getPrivate
acquireAdds a listener to an event type.
The type of event to listen to.
The function that gets called when the event is fired.
Private
addProtected
adjustProtected
adjustAdjusts the extent to avoid visual artifacts.
The original extent.
The width, in pixels, of the original extent.
The height, in pixels, of the original extent.
And object containing the adjusted extent, as well as adjusted pixel size.
Protected
applyProtected
Abstract
applyProtected
Abstract
applyProtected
Abstract
canThe extent to test.
true
if this layer contains the specified extent, false
otherwise.
Fire an event type.
The event that gets fired.
Private
fetchPrivate
getAbstract
getAbstract
getChecks if listener is added to an event type.
The type of event to listen to.
The function that gets called when the event is fired.
Private
initializeProtected
onPrivate
onProtected
onPrivate
processAbstract
registerPrivate
releaseRemoves a listener from an event type.
The type of the listener that gets removed.
The listener function that gets removed.
Private
shouldUpdates the provided node with content from this layer.
the context
the node to update
Protected
updateGenerated using TypeDoc
Base class of layers. Layers are components of maps or any compatible entity.
The same layer can be added to multiple entities. Don't forget to call dispose when the layer should be destroyed, as removing a layer from an entity will not release memory associated with the layer (such as textures).
Types of layers
Layer
is an abstract class. See subclasses for specific information. Main subclasses:ColorLayer
for color information, such as satellite imagery, vector data, etc.ElevationLayer
for elevation and terrain data.MaskLayer
: a special kind of layer that applies a mask on its host map.The
userData
propertyThe
userData
property can be used to attach custom data to the layer, in a type safe manner. It is recommended to use this property instead of attaching arbitrary properties to the object:Reprojection capabilities
When the source of the layer has a different coordinate system (CRS) than the instance, the images from the source will be reprojected to the instance CRS.
Note that doing so will have a performance cost in both CPU and memory.