MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
Loading...
Searching...
No Matches
mln_style_source_info Struct Reference

#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

Detailed Description

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.

Field Documentation

◆ attribution

mln_buffer_view mln_style_source_info::attribution

Attribution string, when the source sets one. It may be empty.

◆ bounds

mln_lat_lng_bounds mln_style_source_info::bounds

Geographic bounds, when inline TileJSON sets them.

◆ fields

uint32_t mln_style_source_info::fields

Bitwise combination of mln_style_source_info_field values.

◆ id

mln_buffer_view mln_style_source_info::id

Source ID.

◆ is_volatile

bool mln_style_source_info::is_volatile

Whether the source is marked volatile.

◆ raster_encoding

uint32_t mln_style_source_info::raster_encoding

DEM raster encoding, when inline TileJSON sets one.

◆ tile_size

uint32_t mln_style_source_info::tile_size

Tile size in pixels, for a tile source.

◆ tilejson

mln_style_source_tile_info mln_style_source_info::tilejson

Inline TileJSON metadata, when the source was defined with it.

◆ type

uint32_t mln_style_source_info::type

◆ url

mln_buffer_view mln_style_source_info::url

URL that the source loads from, when it has one.

◆ vector_encoding

uint32_t mln_style_source_info::vector_encoding

Vector tile encoding, for a vector source.


The documentation for this struct was generated from the following file: