|
MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
|
#include <style.h>
Data Fields | |
| mln_buffer_view | id |
| uint32_t | type |
| uint32_t | fields |
| bool | is_volatile |
| mln_buffer_view | attribution |
| mln_buffer_view | url |
| mln_style_source_tile_info | tilejson |
| mln_lat_lng_bounds | bounds |
| uint32_t | tile_size |
| uint32_t | vector_encoding |
| uint32_t | raster_encoding |
Complete metadata of one style source, borrowed for a completion callback.
Views and arrays remain valid until the completion callback returns. A masked member whose bit is absent from fields is zero.
| mln_buffer_view mln_style_source_info::attribution |
Attribution string, when the source sets one. It may be empty.
| mln_lat_lng_bounds mln_style_source_info::bounds |
Geographic bounds, when inline TileJSON sets them.
| uint32_t mln_style_source_info::fields |
Bitwise combination of mln_style_source_info_field values.
| mln_buffer_view mln_style_source_info::id |
Source ID.
| bool mln_style_source_info::is_volatile |
Whether the source is marked volatile.
| uint32_t mln_style_source_info::raster_encoding |
DEM raster encoding, when inline TileJSON sets one.
| uint32_t mln_style_source_info::tile_size |
Tile size in pixels, for a tile source.
| mln_style_source_tile_info mln_style_source_info::tilejson |
Inline TileJSON metadata, when the source was defined with it.
| uint32_t mln_style_source_info::type |
One of mln_style_source_type.
| mln_buffer_view mln_style_source_info::url |
URL that the source loads from, when it has one.
| uint32_t mln_style_source_info::vector_encoding |
Vector tile encoding, for a vector source.