API reference for the Map class in 3DMapFi.
Map
class is the core component for rendering and interacting with maps in 3DMapFi. It provides methods for controlling the map view, managing layers and sources, handling user interaction, and integrating with other 3DMapFi features.
style
(string|object)void
style.load
event.projection
(string|object)void
projectionchange
event.options
(object)void
options
(object)void
layer
(object), beforeId
(string, optional)void
layerId
(string)void
id
(string), source
(object)void
id
(string)void
control
(object), position
(string, optional)void
event
(string), layerId
(string, optional), handler
(function)void
event
(string), handler
(function)void
container
: The DOM element for rendering the map.style
: The current map style.center
: The current center coordinates.zoom
: The current zoom level.bearing
: The current rotation.pitch
: The current tilt.projection
: The current projection.loaded
: Boolean indicating if the map is fully loaded.