The ID of the custom layer.
The ID of the source for the custom layer.
Optional
opacity: number = 1The opacity of the custom layer.
The ID of the custom layer.
The opacity of the custom layer.
The ID of the source for the custom layer.
Checks if the noise texture needs to be created or updated based on the given power value. If the power value is the same as the current noise texture power value and the noise texture already exists, this method does nothing. Otherwise, it deletes the current noise texture, creates a new one with the given power value, and updates the noise texture power value.
The WebGL rendering context.
The power value to check against the current noise texture power value.
This method is called when the custom layer is added to the map. It sets up the WebGL program, attributes, and uniforms needed for rendering, and adds the source ID to the map style for MapBox internal pipeline and caching.
The map object.
The WebGL rendering context.
This method is called when the custom layer is removed from the map. It removes the reference to the source from the map style, deletes WebGL resources, and deletes VAOs for all segments for this layer.
The map object.
The WebGL rendering context.
Generated using TypeDoc
CustomWxTilesLayer constructor.