|
MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
|
#include <map.h>
Data Fields | |
| uint32_t | size |
| mln_map_option_fields | fields |
| mln_logical_extent | initial_extent |
| mln_map_mode | map_mode |
| bool | fast_pfor_enabled |
| mln_runtime_event_flags | event_mask |
| bool | tile_cache_enabled |
Options for mln_runtime_create_map().
| mln_runtime_event_flags mln_map_options::event_mask |
The events that the map reports. Without it, the map reports them all.
| bool mln_map_options::fast_pfor_enabled |
Whether the map decodes MapLibre Tiles (MLT) that use FastPFOR integer encoding. Without it, such tiles fail to load.
| mln_map_option_fields mln_map_options::fields |
| mln_logical_extent mln_map_options::initial_extent |
The map's first size, and its scale factor. The scale factor stays fixed for the map's life, and every render session of the map renders at it.
| mln_map_mode mln_map_options::map_mode |
| uint32_t mln_map_options::size |
| bool mln_map_options::tile_cache_enabled |
Whether the map keeps tiles in memory after they leave the view, so they show again without loading. Without it, the map keeps them.