Skip to main content

Module map

Module map 

Source
Expand description

The map: Map, its options, its snapshots, its style’s loading and feature state, and the events it reports. Its camera is in camera.

Structs§

CameraBounds
All the limits on a map’s camera.
CameraChange
A camera change: whether it jumps or animates, and what made it.
FreeCamera
A camera’s whole position and orientation in three dimensions.
Map
A map: its style, its camera, and the updates it publishes for its renderer.
MapOptions
How a map renders and lays itself out.
MapSnapshot
A map’s state at one moment.
RenderFrameStatus
TerrainOptions
How a map draws its terrain, for the map’s lifetime.
TileSettings
How a map picks the tiles to load.

Enums§

CameraChangeMode
CameraChangeSource
What moved the camera, as the C API’s mln_camera_change_source reports it.
MapEvent
An event of a map. The variants match the C API’s mln_runtime_event_type values for maps.
MapMode
TerrainSkirtLength
How far the skirts that hang from the edges of terrain tiles reach down. Skirts hide the cracks where the edges of neighboring tiles don’t meet, and show through where the layers draped over the terrain are translucent.

Functions§

style_camera
The camera options of style’s default camera, which the map jumps to once the style loads, unless a camera command came first.