|
MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
|
#include <map.h>
Data Fields | |
| mln_camera_options | camera |
| mln_logical_extent | extent |
| mln_projection_mode | projection_mode |
| mln_map_viewport_options | viewport |
Everything that a projection depends on: the transform that a published snapshot or a rendered frame describes.
Every member is set on output. mln_map_projection_create() reads every member and requires every field of each nested struct, except MLN_CAMERA_OPTION_ANCHOR, which it ignores. Camera constraints are map policy and stay out of the view, because no conversion reads them.
A later version may append members. mln_map_snapshot and mln_render_frame_result embed the view as their last member, so their own size versions that growth.
| mln_camera_options mln_map_view::camera |
The camera. Its center is unwrapped: the longitude keeps the visible world copy and may fall outside -180 to 180. Every field except MLN_CAMERA_OPTION_ANCHOR is set.
| mln_logical_extent mln_map_view::extent |
Logical size and device-pixel scale. A snapshot carries the map's scale factor, and a frame carries the scale factor of the target that drew it.
| mln_projection_mode mln_map_view::projection_mode |
Axonometric mode and skew, with every field set.
| mln_map_viewport_options mln_map_view::viewport |
North orientation, constrain mode, viewport mode, and frustum offset, with every field set.