Returns whether the layer is currently hidden.
Layer identifier on the map.
Map currently associated with the layer.
Returns the current layer opacity.
The parent layer identifier for the layer, if any. When specified, this layer will be rendered on the map below the layer associated with the parent identifier.
The parent layer identifier for the layer, if any. When specified, this layer will be rendered on the map below the layer associated with the parent identifier.
Native map object(s) that gets rendered to the map.
Source identifier on the map.
Adds the layer to the specified map.
Returns whether the listeners are registered for the specified event name.
Hides the layer on the map.
Removes a registered listener function for the specified event.
Name of the event to remove the listener for.
Handler function to remove so it won't be executed next time the event is triggered.
Registers a listener function to be executed each time an event occurs
Name of the event to listen for. Value can contain multiple event names separated by spaces to trigger the same handler function for each event name.
Handler function to be called when the event occurs
Registers a listener function to be executed the first time an event occurs.
Name of the event to listen for. Value can contain multiple event names separated by spaces to trigger the same handler function for each event name.
Handler function to be called when the event occurs
Removes the layer from the map it is currently active on.
Updates the bounds for the layer when rendered as an image.
Updates the layer source using the specified image URL and coordinate bounds. Only used
for image
layer types.
Updates the tile or image url for the layer.
Shows the layer on the map.
Triggers the specified event so that all registered listeners will be executed with the specified parameters.
Event name to trigger
Generated using TypeDoc
TileLayer
is a container class that is responsible for creating and managing a Mapbox source and associated layer representation on a Mapbox map.TileLayer
is a container class that is responsible for creating and managing a Mapbox source and associated layer representation on a Mapbox map.