|
MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
|
#include <map.h>
Data Fields | |
| uint32_t | size |
| mln_map_tile_option_fields | fields |
| uint32_t | prefetch_zoom_delta |
| double | lod_min_radius |
| double | lod_scale |
| double | lod_pitch_threshold |
| double | lod_zoom_shift |
| mln_tile_lod_mode | lod_mode |
How the map picks the tiles to load.
The lod_ members lower the level of detail away from the camera, so the map loads fewer tiles when the pitch is high.
| mln_map_tile_option_fields mln_map_tile_options::fields |
| double mln_map_tile_options::lod_min_radius |
The radius around the view point, in tiles, that keeps full detail.
| mln_tile_lod_mode mln_map_tile_options::lod_mode |
MLN_TILE_LOD_MODE_DISTANCE ignores lod_min_radius.
| double mln_map_tile_options::lod_pitch_threshold |
The pitch, in degrees, above which the map lowers the detail.
| double mln_map_tile_options::lod_scale |
Scales the distance to the view point. Above 1 lowers the detail.
| double mln_map_tile_options::lod_zoom_shift |
Zoom levels to add for picking the detail. Below 0 loads fewer tiles.
| uint32_t mln_map_tile_options::prefetch_zoom_delta |
How many zoom levels lower the map also loads tiles for, so it can show a coarse map while the current tiles load. 0 loads only the current tiles.
| uint32_t mln_map_tile_options::size |