StaticdefaultStaticlayertrue if the layer renders to screen
Returns true if all async resources are loaded
Returns true if using shader-based WGS84 longitude wrapping
StaticcomponentProtected_(Internal) Called by manager when layer is about to be disposed Note: not guaranteed to be called on application shutdown
Protected_Override base Layer method
Protected_(Internal) Called after an update to rerender sub layers
Protected_(Internal) Called by layer manager to transfer state from an old layer
(Internal) Called by layer manager when a new layer is added or an existing layer is matched with a new instance
Protected_Recalculate any attributes if needed
Protected_Update sub layers to highlight the hovered object
Called when this layer is rendered into the given viewport
Protectedcalculate(Internal) Sets the picking color at the specified index to null picking color. Used for multi-depth picking. This method may be overriden by layer implementations
Optionaltarget: number[]Filters sub layers at draw time. Return true if the sub layer should be drawn.
Called once when layer is no longer matched and state will be discarded. Layers can destroy WebGL resources here.
Returns the attribute manager of this layer
Returns the current change flags
Returns the most recent layer that matched to this state (When reacting to an async event, this layer may no longer be the latest)
Returns the default parse options for async props
Returns an array of models used by this layer, can be overriden by layer subclass
(Internal) Checks if this layer needs redraw
Optionalopts: { clearRedrawFlags: boolean }
Reset redraw flags to false after the check
Deduces number of instances. Intention is to support:
called to augment the info object that is bubbled up from a sublayer override Layer.getPickingInfo() because decoding / setting uniform do not apply to a composite layer.
Buffer layout describes how many attribute values are packed for each data object The default (null) is one value each object. Some data formats (e.g. paths, polygons) have various length. Their buffer layout is in the form of [L0, L1, L2, ...]
ProtectedgetProtectedgetProtectedgetProtectedgetReturn last rendered sub layers
Checks if this layer has ongoing uniform transition
ProtectedinvalidateDefault implementation of attribute invalidation, can be redefined
Optionalname: string(Internal) Checks if this layer needs a deep update
Projects a point with current view state from the current layer's coordinate system to screen
Projects a point with current view state from the current layer's coordinate system to the world space
Optionalparams: {OptionalautoOffset?: booleanWhether to apply offset mode automatically as does the project shader module.
Offset mode places the origin of the common space at the given viewport's center. It is used in some use cases
to improve precision in the vertex shader due to the fp32 float limitation.
Use autoOffset:false if the returned position should not be dependent on the current viewport.
Default true
OptionalfromCoordinateOrigin?: [number, number, number]The coordinate origin that the supplied position is in. Default to the same as coordinateOrigin.
OptionalfromCoordinateSystem?: CoordinateSystemThe coordinate system that the supplied position is in. Default to the same as coordinateSystem.
Optionalviewport?: ViewportThe viewport to use
(Internal) Propagate an error event through the system
(Internal) Re-enable all picking indices after multi-depth picking
Dirty some change flags, will be handled by updateLayer
Sets the redraw flag for this layer, will trigger a redraw next animation frame
Mark this layer as needs a deep update
Updates selected state members and marks the composite layer to need rerender
ProtectedshouldReturns true if sub layer needs to be rendered
Controls if updateState should be called. By default returns true if any prop has changed
Returns a string representation of an object.
Unprojects a screen pixel to the current view's default coordinate system
Note: this does not reverse project.
ProtectedupdateSend updated attributes to the WebGL model
(Internal) Called by deck picker when the hovered object changes to update the auto highlight
Default implementation, all attributes will be invalidated and updated when data changes
(Internal) called by layer manager to perform extra props validation (in development only)
trueif this layer renders other layers