-
-
Adds a single layer to the map.
-
-
Adds multiple layers to the map.
-
-
Adds a single source to the map and caches it.
-
-
Adds multiple sources to the map.
-
-
Adds text layers for labeling.
(Currently disabled – remove the "return;" to enable.)
-
-
Initializes the object with provided options and refreshes it.
-
-
Moves the specified layers on the map.
-
-
Handles cluster clicks by expanding clusters.
-
-
Handles mouseout events for layers.
(Currently commented out – remove comments to enable.)
-
-
Handles mouseover events for layers.
(Currently commented out – remove comments to enable.)
-
-
Refreshes the map by removing and re-adding layers and sources.
-
-
Removes a single layer from the map.
-
-
Removes multiple layers. Accepts an array of layer objects or IDs.
-
-
Removes a single source from the map.
-
-
Removes sources from the map.
-
-
Removes text layers (layers with metadata.text).