MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
Loading...
Searching...
No Matches
style.h
Go to the documentation of this file.
1
5
6#ifndef MAPLIBRE_NATIVE_C_STYLE_H
7#define MAPLIBRE_NATIVE_C_STYLE_H
8
9#ifndef __cplusplus
10#include <stdbool.h>
11#endif
12
13#include <stddef.h>
14#include <stdint.h>
15
16#include "base.h"
17#include "map.h"
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23typedef uint64_t mln_style_id_list;
24typedef uint64_t mln_style_string_list;
25typedef uint64_t mln_geojson_source_data;
26
28typedef enum mln_style_source_type : uint32_t {
29 MLN_STYLE_SOURCE_TYPE_UNKNOWN = 0,
30 MLN_STYLE_SOURCE_TYPE_VECTOR = 1,
31 MLN_STYLE_SOURCE_TYPE_RASTER = 2,
32 MLN_STYLE_SOURCE_TYPE_RASTER_DEM = 3,
33 MLN_STYLE_SOURCE_TYPE_GEOJSON = 4,
34 MLN_STYLE_SOURCE_TYPE_IMAGE = 5,
35 MLN_STYLE_SOURCE_TYPE_VIDEO = 6,
36 MLN_STYLE_SOURCE_TYPE_ANNOTATIONS = 7,
37 MLN_STYLE_SOURCE_TYPE_CUSTOM_VECTOR = 8,
38 MLN_STYLE_SOURCE_TYPE_CUSTOM_MVT_VECTOR = 9,
40
56
58typedef enum mln_style_tile_source_option_field : uint32_t {
59 MLN_STYLE_TILE_SOURCE_OPTION_MIN_ZOOM = 1U << 0U,
60 MLN_STYLE_TILE_SOURCE_OPTION_MAX_ZOOM = 1U << 1U,
61 MLN_STYLE_TILE_SOURCE_OPTION_ATTRIBUTION = 1U << 2U,
62 MLN_STYLE_TILE_SOURCE_OPTION_SCHEME = 1U << 3U,
63 MLN_STYLE_TILE_SOURCE_OPTION_BOUNDS = 1U << 4U,
64 MLN_STYLE_TILE_SOURCE_OPTION_TILE_SIZE = 1U << 5U,
65 MLN_STYLE_TILE_SOURCE_OPTION_VECTOR_ENCODING = 1U << 6U,
66 MLN_STYLE_TILE_SOURCE_OPTION_RASTER_ENCODING = 1U << 7U,
68
70typedef enum mln_style_tile_scheme : uint32_t {
71 MLN_STYLE_TILE_SCHEME_XYZ = 0,
72 MLN_STYLE_TILE_SCHEME_TMS = 1,
74
76typedef enum mln_style_vector_tile_encoding : uint32_t {
77 MLN_STYLE_VECTOR_TILE_ENCODING_MVT = 0,
78 MLN_STYLE_VECTOR_TILE_ENCODING_MLT = 1,
80
82typedef enum mln_style_raster_dem_encoding : uint32_t {
83 MLN_STYLE_RASTER_DEM_ENCODING_MAPBOX = 0,
84 MLN_STYLE_RASTER_DEM_ENCODING_TERRARIUM = 1,
86
96typedef struct mln_image_stretch {
97 float from;
98 float to;
100
106typedef struct mln_image_content {
107 float left;
108 float top;
109 float right;
110 float bottom;
112
114typedef enum mln_style_image_text_fit : uint32_t {
115 MLN_STYLE_IMAGE_TEXT_FIT_STRETCH_OR_SHRINK = 0,
116 MLN_STYLE_IMAGE_TEXT_FIT_STRETCH_ONLY = 1,
117 MLN_STYLE_IMAGE_TEXT_FIT_PROPORTIONAL = 2,
119
121typedef enum mln_style_layer_visibility : uint32_t {
122 MLN_STYLE_LAYER_VISIBILITY_VISIBLE = 0,
123 MLN_STYLE_LAYER_VISIBILITY_NONE = 1,
125
127typedef enum mln_geojson_source_option_field : uint32_t {
128 MLN_GEOJSON_SOURCE_OPTION_MIN_ZOOM = 1U << 0U,
129 MLN_GEOJSON_SOURCE_OPTION_MAX_ZOOM = 1U << 1U,
130 MLN_GEOJSON_SOURCE_OPTION_TOLERANCE = 1U << 2U,
131 MLN_GEOJSON_SOURCE_OPTION_CLUSTER_MAX_ZOOM = 1U << 3U,
132 MLN_GEOJSON_SOURCE_OPTION_CLUSTER_PROPERTIES = 1U << 4U,
133 MLN_GEOJSON_SOURCE_OPTION_TILE_SIZE = 1U << 5U,
134 MLN_GEOJSON_SOURCE_OPTION_BUFFER = 1U << 6U,
135 MLN_GEOJSON_SOURCE_OPTION_CLUSTER_RADIUS = 1U << 7U,
136 MLN_GEOJSON_SOURCE_OPTION_CLUSTER_MIN_POINTS = 1U << 8U,
137 MLN_GEOJSON_SOURCE_OPTION_LINE_METRICS = 1U << 9U,
138 MLN_GEOJSON_SOURCE_OPTION_CLUSTER = 1U << 10U,
139 MLN_GEOJSON_SOURCE_OPTION_SYNCHRONOUS_TILING = 1U << 11U,
141
144 MLN_CUSTOM_GEOMETRY_SOURCE_OPTION_MIN_ZOOM = 1U << 0U,
145 MLN_CUSTOM_GEOMETRY_SOURCE_OPTION_MAX_ZOOM = 1U << 1U,
146 MLN_CUSTOM_GEOMETRY_SOURCE_OPTION_TOLERANCE = 1U << 2U,
147 MLN_CUSTOM_GEOMETRY_SOURCE_OPTION_TILE_SIZE = 1U << 3U,
148 MLN_CUSTOM_GEOMETRY_SOURCE_OPTION_BUFFER = 1U << 4U,
149 MLN_CUSTOM_GEOMETRY_SOURCE_OPTION_CLIP = 1U << 5U,
150 MLN_CUSTOM_GEOMETRY_SOURCE_OPTION_WRAP = 1U << 6U,
152
155 MLN_CUSTOM_MVT_VECTOR_SOURCE_OPTION_MIN_ZOOM = 1U << 0U,
156 MLN_CUSTOM_MVT_VECTOR_SOURCE_OPTION_MAX_ZOOM = 1U << 1U,
158
160typedef enum mln_style_image_option_field : uint32_t {
161 MLN_STYLE_IMAGE_OPTION_PIXEL_RATIO = 1U << 0U,
162 MLN_STYLE_IMAGE_OPTION_SDF = 1U << 1U,
163 MLN_STYLE_IMAGE_OPTION_STRETCH_X = 1U << 2U,
164 MLN_STYLE_IMAGE_OPTION_STRETCH_Y = 1U << 3U,
165 MLN_STYLE_IMAGE_OPTION_CONTENT = 1U << 4U,
166 MLN_STYLE_IMAGE_OPTION_TEXT_FIT_WIDTH = 1U << 5U,
167 MLN_STYLE_IMAGE_OPTION_TEXT_FIT_HEIGHT = 1U << 6U,
169
171typedef enum mln_style_transition_option_field : uint32_t {
172 MLN_STYLE_TRANSITION_OPTION_DURATION = 1U << 0U,
173 MLN_STYLE_TRANSITION_OPTION_DELAY = 1U << 1U,
174 MLN_STYLE_TRANSITION_OPTION_ENABLE_PLACEMENT_TRANSITIONS = 1U << 2U,
176
178typedef enum mln_location_indicator_image_kind : uint32_t {
179 MLN_LOCATION_INDICATOR_IMAGE_KIND_TOP = 0,
180 MLN_LOCATION_INDICATOR_IMAGE_KIND_BEARING = 1,
181 MLN_LOCATION_INDICATOR_IMAGE_KIND_SHADOW = 2,
183
185typedef struct mln_style_source_info {
186 uint32_t size;
188 uint32_t type;
190 uint32_t fields;
192 size_t id_size;
195 bool has_attribution;
199 size_t url_size;
203 double min_zoom;
205 double max_zoom;
207 uint32_t scheme;
211 uint32_t tile_size;
217
220 uint32_t size;
221 uint32_t fields;
222 double min_zoom;
223 double max_zoom;
224 mln_buffer_view attribution;
226 uint32_t scheme;
227 mln_lat_lng_bounds bounds;
229 uint32_t tile_size;
235
293
296typedef struct mln_canonical_tile_id {
297 uint32_t z;
298 uint32_t x;
299 uint32_t y;
301
304 void* user_data, mln_canonical_tile_id tile_id
305);
306
308typedef void (*mln_custom_geometry_source_release_callback)(void* user_data);
309
312 uint32_t size;
313 uint32_t fields;
320 double min_zoom;
321 double max_zoom;
322 double tolerance;
323 uint32_t tile_size;
324 uint32_t buffer;
325 bool clip;
326 bool wrap;
343
346 void* user_data, mln_canonical_tile_id tile_id
347);
348
350typedef void (*mln_custom_mvt_vector_source_release_callback)(void* user_data);
351
380
383 uint32_t size;
384 uint32_t width;
385 uint32_t height;
387 uint32_t stride;
389 const uint8_t* pixels;
393
396 uint32_t size;
397 uint32_t fields;
403 size_t stretch_x_count;
409 size_t stretch_y_count;
419 bool sdf;
421
423typedef struct mln_style_image_info {
424 uint32_t size;
425 uint32_t width;
426 uint32_t height;
428 uint32_t stride;
429 size_t byte_length;
435 size_t stretch_y_count;
442 float pixel_ratio;
443 bool sdf;
444 bool has_content;
445 bool has_text_fit_width;
446 bool has_text_fit_height;
448
461 uint32_t size;
462 uint32_t fields;
485 double delay_ms;
499
503
507
511
515
519
523
526
530
540MLN_API mln_status
541mln_style_id_list_count(mln_style_id_list list, size_t* out_count) MLN_NOEXCEPT;
542
556 mln_style_id_list list, size_t index, mln_buffer_view* out_id
557) MLN_NOEXCEPT;
558
560MLN_API void mln_style_id_list_destroy(mln_style_id_list list) MLN_NOEXCEPT;
561
572 mln_style_string_list list, size_t* out_count
573) MLN_NOEXCEPT;
574
588 mln_style_string_list list, size_t index, mln_buffer_view* out_value
589) MLN_NOEXCEPT;
590
593 mln_style_string_list list
594) MLN_NOEXCEPT;
595
614 mln_map map, mln_buffer_view source_id, mln_buffer_view source_json
615) MLN_NOEXCEPT;
616
633 mln_map map, mln_buffer_view source_id, bool* out_removed
634) MLN_NOEXCEPT;
635
648 mln_map map, mln_buffer_view source_id, bool* out_exists
649) MLN_NOEXCEPT;
650
666 mln_map map, mln_buffer_view source_id, uint32_t* out_source_type,
667 bool* out_found
668) MLN_NOEXCEPT;
669
690 mln_map map, mln_buffer_view source_id, mln_style_source_info* out_info,
691 bool* out_found
692) MLN_NOEXCEPT;
693
711 mln_map map, mln_buffer_view source_id, bool is_volatile
712) MLN_NOEXCEPT;
713
739 mln_map map, mln_buffer_view source_id, char* out_attribution,
740 size_t attribution_capacity, size_t* out_attribution_size, bool* out_found
741) MLN_NOEXCEPT;
742
766 mln_map map, mln_buffer_view source_id, char* out_url, size_t url_capacity,
767 size_t* out_url_size, bool* out_found
768) MLN_NOEXCEPT;
769
789 mln_map map, mln_buffer_view source_id, mln_style_string_list* out_tile_urls,
790 bool* out_found
791) MLN_NOEXCEPT;
792
808 mln_map map, mln_style_id_list* out_source_ids
809) MLN_NOEXCEPT;
810
827 mln_map map, mln_buffer_view source_id, mln_buffer_view url,
828 const mln_geojson_source_options* options
829) MLN_NOEXCEPT;
830
863 mln_buffer_view data, const mln_geojson_source_options* options,
864 mln_geojson_source_data* out_data
865) MLN_NOEXCEPT;
866
875 mln_geojson_source_data data
876) MLN_NOEXCEPT;
877
896 mln_map map, mln_buffer_view source_id, mln_geojson_source_data data
897) MLN_NOEXCEPT;
898
915 mln_map map, mln_buffer_view source_id, mln_buffer_view url
916) MLN_NOEXCEPT;
917
945 mln_map map, mln_buffer_view source_id, mln_geojson_source_data data
946) MLN_NOEXCEPT;
947
968 mln_map map, mln_buffer_view source_id, bool enabled
969) MLN_NOEXCEPT;
970
987 mln_map map, mln_buffer_view source_id, mln_buffer_view url,
988 const mln_style_tile_source_options* options
989) MLN_NOEXCEPT;
990
1008 mln_map map, mln_buffer_view source_id, const mln_buffer_view* tiles,
1009 size_t tile_count, const mln_style_tile_source_options* options
1010) MLN_NOEXCEPT;
1011
1027 mln_map map, mln_buffer_view source_id, mln_buffer_view url,
1028 const mln_style_tile_source_options* options
1029) MLN_NOEXCEPT;
1030
1048 mln_map map, mln_buffer_view source_id, const mln_buffer_view* tiles,
1049 size_t tile_count, const mln_style_tile_source_options* options
1050) MLN_NOEXCEPT;
1051
1068 mln_map map, mln_buffer_view source_id, mln_buffer_view url,
1069 const mln_style_tile_source_options* options
1070) MLN_NOEXCEPT;
1071
1089 mln_map map, mln_buffer_view source_id, const mln_buffer_view* tiles,
1090 size_t tile_count, const mln_style_tile_source_options* options
1091) MLN_NOEXCEPT;
1092
1129 mln_map map, mln_buffer_view source_id,
1131) MLN_NOEXCEPT;
1132
1149 mln_map map, mln_buffer_view source_id, mln_canonical_tile_id tile_id,
1150 mln_buffer_view data
1151) MLN_NOEXCEPT;
1152
1166 mln_map map, mln_buffer_view source_id, mln_canonical_tile_id tile_id
1167) MLN_NOEXCEPT;
1168
1182 mln_map map, mln_buffer_view source_id, mln_lat_lng_bounds bounds
1183) MLN_NOEXCEPT;
1184
1225 mln_map map, mln_buffer_view source_id,
1227) MLN_NOEXCEPT;
1228
1251 mln_map map, mln_buffer_view source_id, mln_canonical_tile_id tile_id,
1252 mln_buffer_view data
1253) MLN_NOEXCEPT;
1254
1276 mln_map map, mln_buffer_view source_id, mln_canonical_tile_id tile_id,
1277 mln_buffer_view message
1278) MLN_NOEXCEPT;
1279
1293 mln_map map, mln_buffer_view source_id, mln_canonical_tile_id tile_id
1294) MLN_NOEXCEPT;
1295
1316 mln_map map, mln_buffer_view image_id,
1317 const mln_premultiplied_rgba8_image* image,
1318 const mln_style_image_options* options
1319) MLN_NOEXCEPT;
1320
1336 mln_map map, mln_buffer_view image_id, bool* out_removed
1337) MLN_NOEXCEPT;
1338
1351 mln_map map, mln_buffer_view image_id, bool* out_exists
1352) MLN_NOEXCEPT;
1353
1370 mln_map map, mln_buffer_view image_id, mln_style_image_info* out_info,
1371 bool* out_found
1372) MLN_NOEXCEPT;
1373
1397 mln_map map, mln_buffer_view image_id, uint8_t* out_pixels,
1398 size_t pixel_capacity, size_t* out_byte_length, bool* out_found
1399) MLN_NOEXCEPT;
1400
1424 mln_map map, mln_buffer_view image_id, mln_image_stretch* out_stretch_x,
1425 size_t stretch_x_capacity, size_t* out_stretch_x_count,
1426 mln_image_stretch* out_stretch_y, size_t stretch_y_capacity,
1427 size_t* out_stretch_y_count, bool* out_found
1428) MLN_NOEXCEPT;
1429
1452 mln_map map, mln_buffer_view source_id, const mln_lat_lng* coordinates,
1453 size_t coordinate_count, mln_buffer_view url
1454) MLN_NOEXCEPT;
1455
1478 mln_map map, mln_buffer_view source_id, const mln_lat_lng* coordinates,
1479 size_t coordinate_count, const mln_premultiplied_rgba8_image* image
1480) MLN_NOEXCEPT;
1481
1498 mln_map map, mln_buffer_view source_id, mln_buffer_view url
1499) MLN_NOEXCEPT;
1500
1518 mln_map map, mln_buffer_view source_id,
1520) MLN_NOEXCEPT;
1521
1539 mln_map map, mln_buffer_view source_id, const mln_lat_lng* coordinates,
1540 size_t coordinate_count
1541) MLN_NOEXCEPT;
1542
1562 mln_map map, mln_buffer_view source_id, mln_lat_lng* out_coordinates,
1563 size_t coordinate_capacity, size_t* out_coordinate_count, bool* out_found
1564) MLN_NOEXCEPT;
1565
1584 mln_map map, mln_buffer_view layer_id, mln_buffer_view source_id,
1585 mln_buffer_view before_layer_id
1586) MLN_NOEXCEPT;
1587
1607 mln_map map, mln_buffer_view layer_id, mln_buffer_view source_id,
1608 mln_buffer_view before_layer_id
1609) MLN_NOEXCEPT;
1610
1628 mln_map map, mln_buffer_view layer_id, mln_buffer_view before_layer_id
1629) MLN_NOEXCEPT;
1630
1648 mln_map map, mln_buffer_view layer_id, mln_lat_lng coordinate, double altitude
1649) MLN_NOEXCEPT;
1650
1664 mln_map map, mln_buffer_view layer_id, double bearing
1665) MLN_NOEXCEPT;
1666
1680 mln_map map, mln_buffer_view layer_id, double radius
1681) MLN_NOEXCEPT;
1682
1699 mln_map map, mln_buffer_view layer_id, uint32_t image_kind,
1700 mln_buffer_view image_id
1701) MLN_NOEXCEPT;
1702
1726 mln_map map, mln_buffer_view layer_json, mln_buffer_view before_layer_id
1727) MLN_NOEXCEPT;
1728
1744 mln_map map, mln_buffer_view layer_id, bool* out_removed
1745) MLN_NOEXCEPT;
1746
1759 mln_map map, mln_buffer_view layer_id, bool* out_exists
1760) MLN_NOEXCEPT;
1761
1777 mln_map map, mln_buffer_view layer_id, mln_buffer_view* out_layer_type,
1778 bool* out_found
1779) MLN_NOEXCEPT;
1780
1796 mln_map map, mln_style_id_list* out_layer_ids
1797) MLN_NOEXCEPT;
1798
1815 mln_map map, mln_buffer_view layer_id, mln_buffer_view before_layer_id
1816) MLN_NOEXCEPT;
1817
1835 mln_map map, mln_buffer_view layer_id, mln_buffer* out_layer, bool* out_found
1836) MLN_NOEXCEPT;
1837
1853 mln_map map, mln_buffer_view light_json
1854) MLN_NOEXCEPT;
1855
1873 mln_map map, mln_buffer_view property_name, mln_buffer_view value
1874) MLN_NOEXCEPT;
1875
1892 mln_map map, mln_buffer_view property_name, mln_buffer* out_value
1893) MLN_NOEXCEPT;
1894
1917 mln_map map, const mln_style_transition_options* options
1918) MLN_NOEXCEPT;
1919
1945 mln_map map, mln_style_transition_options* out_options
1946) MLN_NOEXCEPT;
1947
1967 mln_map map, mln_buffer_view layer_id, mln_buffer_view property_name,
1968 mln_buffer_view value
1969) MLN_NOEXCEPT;
1970
1988 mln_map map, mln_buffer_view layer_id, mln_buffer_view property_name,
1989 mln_buffer* out_value
1990) MLN_NOEXCEPT;
1991
2010 mln_map map, mln_buffer_view layer_id, const mln_buffer_view* filter
2011) MLN_NOEXCEPT;
2012
2029 mln_map map, mln_buffer_view layer_id, mln_buffer* out_filter
2030) MLN_NOEXCEPT;
2031
2052 mln_map map, mln_buffer_view layer_id, mln_buffer_view source_layer
2053) MLN_NOEXCEPT;
2054
2079 mln_map map, mln_buffer_view layer_id, char* out_source_layer,
2080 size_t source_layer_capacity, size_t* out_source_layer_size
2081) MLN_NOEXCEPT;
2082
2103 mln_map map, mln_buffer_view layer_id, mln_buffer_view source_id
2104) MLN_NOEXCEPT;
2105
2130 mln_map map, mln_buffer_view layer_id, char* out_source_id,
2131 size_t source_id_capacity, size_t* out_source_id_size
2132) MLN_NOEXCEPT;
2133
2149 mln_map map, mln_buffer_view layer_id, double min_zoom
2150) MLN_NOEXCEPT;
2151
2166 mln_map map, mln_buffer_view layer_id, double* out_min_zoom
2167) MLN_NOEXCEPT;
2168
2184 mln_map map, mln_buffer_view layer_id, double max_zoom
2185) MLN_NOEXCEPT;
2186
2201 mln_map map, mln_buffer_view layer_id, double* out_max_zoom
2202) MLN_NOEXCEPT;
2203
2219 mln_map map, mln_buffer_view layer_id, uint32_t visibility
2220) MLN_NOEXCEPT;
2221
2236 mln_map map, mln_buffer_view layer_id, uint32_t* out_visibility
2237) MLN_NOEXCEPT;
2238
2239#ifdef __cplusplus
2240}
2241#endif
2242
2243#endif // MAPLIBRE_NATIVE_C_STYLE_H
mln_status
Definition base.h:39
Definition base.h:103
Definition style.h:296
void * user_data
Definition style.h:319
mln_custom_geometry_source_release_callback release_user_data
Definition style.h:341
mln_custom_geometry_source_tile_callback fetch_tile
Definition style.h:315
mln_custom_geometry_source_tile_callback cancel_tile
Definition style.h:317
mln_custom_mvt_vector_source_release_callback release_user_data
Definition style.h:378
mln_custom_mvt_vector_source_tile_callback cancel_tile
Definition style.h:359
mln_custom_mvt_vector_source_tile_callback fetch_tile
Definition style.h:357
void * user_data
Definition style.h:361
Definition style.h:244
bool synchronous_tiling
Definition style.h:291
double min_zoom
Definition style.h:248
double max_zoom
Definition style.h:250
mln_buffer_view cluster_properties
Definition style.h:260
uint32_t buffer
Definition style.h:264
double tolerance
Definition style.h:252
double cluster_max_zoom
Definition style.h:254
uint32_t cluster_radius
Definition style.h:266
bool line_metrics
Definition style.h:270
uint32_t cluster_min_points
Definition style.h:268
bool cluster
Definition style.h:280
uint32_t tile_size
Definition style.h:262
Definition style.h:106
Definition style.h:96
Definition map.h:370
Definition map.h:339
Definition style.h:382
const uint8_t * pixels
Definition style.h:389
uint32_t stride
Definition style.h:387
size_t byte_length
Definition style.h:391
Definition style.h:423
uint32_t text_fit_width
Definition style.h:439
uint32_t text_fit_height
Definition style.h:441
size_t stretch_x_count
Definition style.h:434
mln_image_content content
Definition style.h:437
uint32_t stride
Definition style.h:428
Definition style.h:395
uint32_t text_fit_width
Definition style.h:413
const mln_image_stretch * stretch_y
Definition style.h:408
float pixel_ratio
Definition style.h:417
mln_image_content content
Definition style.h:411
bool sdf
Definition style.h:419
const mln_image_stretch * stretch_x
Definition style.h:402
uint32_t text_fit_height
Definition style.h:415
Definition style.h:185
uint32_t type
Definition style.h:188
size_t id_size
Definition style.h:192
double min_zoom
Definition style.h:203
size_t attribution_size
Definition style.h:197
uint32_t scheme
Definition style.h:207
size_t tile_count
Definition style.h:201
uint32_t fields
Definition style.h:190
mln_lat_lng_bounds bounds
Definition style.h:209
size_t url_size
Definition style.h:199
uint32_t tile_size
Definition style.h:211
double max_zoom
Definition style.h:205
uint32_t vector_encoding
Definition style.h:213
bool is_volatile
Definition style.h:194
uint32_t raster_encoding
Definition style.h:215
Definition style.h:219
uint32_t raster_encoding
Definition style.h:233
uint32_t scheme
Definition style.h:226
uint32_t tile_size
Definition style.h:229
uint32_t vector_encoding
Definition style.h:231
Definition style.h:460
double duration_ms
Definition style.h:478
double delay_ms
Definition style.h:485
bool enable_placement_transitions
Definition style.h:497
void mln_geojson_source_data_destroy(mln_geojson_source_data data)
mln_style_image_option_field
Definition style.h:160
mln_status mln_map_get_layer_max_zoom(mln_map map, mln_buffer_view layer_id, double *out_max_zoom)
mln_status mln_map_list_style_layer_ids(mln_map map, mln_style_id_list *out_layer_ids)
mln_style_image_options mln_style_image_options_default(void)
void(* mln_custom_mvt_vector_source_release_callback)(void *user_data)
Definition style.h:350
mln_status mln_map_get_image_source_coordinates(mln_map map, mln_buffer_view source_id, mln_lat_lng *out_coordinates, size_t coordinate_capacity, size_t *out_coordinate_count, bool *out_found)
mln_status mln_map_copy_style_image_premultiplied_rgba8(mln_map map, mln_buffer_view image_id, uint8_t *out_pixels, size_t pixel_capacity, size_t *out_byte_length, bool *out_found)
mln_status mln_map_set_custom_geometry_source_tile_data(mln_map map, mln_buffer_view source_id, mln_canonical_tile_id tile_id, mln_buffer_view data)
mln_status mln_map_add_raster_source_url(mln_map map, mln_buffer_view source_id, mln_buffer_view url, const mln_style_tile_source_options *options)
mln_status mln_map_set_style_source_volatile(mln_map map, mln_buffer_view source_id, bool is_volatile)
mln_status mln_map_add_style_layer_json(mln_map map, mln_buffer_view layer_json, mln_buffer_view before_layer_id)
mln_status mln_map_get_style_light_property(mln_map map, mln_buffer_view property_name, mln_buffer *out_value)
mln_status mln_map_add_custom_geometry_source(mln_map map, mln_buffer_view source_id, const mln_custom_geometry_source_options *options)
mln_status mln_map_add_raster_dem_source_url(mln_map map, mln_buffer_view source_id, mln_buffer_view url, const mln_style_tile_source_options *options)
mln_status mln_map_set_custom_mvt_vector_source_tile_error(mln_map map, mln_buffer_view source_id, mln_canonical_tile_id tile_id, mln_buffer_view message)
mln_style_tile_source_option_field
Definition style.h:58
mln_status mln_map_copy_style_source_url(mln_map map, mln_buffer_view source_id, char *out_url, size_t url_capacity, size_t *out_url_size, bool *out_found)
mln_status mln_style_id_list_count(mln_style_id_list list, size_t *out_count)
void(* mln_custom_mvt_vector_source_tile_callback)(void *user_data, mln_canonical_tile_id tile_id)
Definition style.h:345
mln_status mln_map_set_image_source_coordinates(mln_map map, mln_buffer_view source_id, const mln_lat_lng *coordinates, size_t coordinate_count)
mln_status mln_map_set_style_light_property(mln_map map, mln_buffer_view property_name, mln_buffer_view value)
mln_status mln_map_set_style_transition_options(mln_map map, const mln_style_transition_options *options)
mln_status mln_map_add_color_relief_layer(mln_map map, mln_buffer_view layer_id, mln_buffer_view source_id, mln_buffer_view before_layer_id)
mln_status mln_map_add_vector_source_url(mln_map map, mln_buffer_view source_id, mln_buffer_view url, const mln_style_tile_source_options *options)
mln_status mln_map_set_geojson_source_url(mln_map map, mln_buffer_view source_id, mln_buffer_view url)
mln_status mln_map_invalidate_custom_geometry_source_tile(mln_map map, mln_buffer_view source_id, mln_canonical_tile_id tile_id)
mln_custom_mvt_vector_source_options mln_custom_mvt_vector_source_options_default(void)
mln_status mln_map_set_layer_source_id(mln_map map, mln_buffer_view layer_id, mln_buffer_view source_id)
mln_status mln_map_set_image_source_image(mln_map map, mln_buffer_view source_id, const mln_premultiplied_rgba8_image *image)
mln_status mln_map_get_layer_visibility(mln_map map, mln_buffer_view layer_id, uint32_t *out_visibility)
mln_custom_mvt_vector_source_option_field
Definition style.h:154
mln_status mln_map_style_source_exists(mln_map map, mln_buffer_view source_id, bool *out_exists)
mln_status mln_map_add_image_source_image(mln_map map, mln_buffer_view source_id, const mln_lat_lng *coordinates, size_t coordinate_count, const mln_premultiplied_rgba8_image *image)
mln_status mln_map_set_style_light_json(mln_map map, mln_buffer_view light_json)
void mln_style_string_list_destroy(mln_style_string_list list)
mln_premultiplied_rgba8_image mln_premultiplied_rgba8_image_default(void)
mln_status mln_map_invalidate_custom_mvt_vector_source_tile(mln_map map, mln_buffer_view source_id, mln_canonical_tile_id tile_id)
mln_status mln_map_get_style_transition_options(mln_map map, mln_style_transition_options *out_options)
mln_status mln_map_set_custom_mvt_vector_source_tile_data(mln_map map, mln_buffer_view source_id, mln_canonical_tile_id tile_id, mln_buffer_view data)
mln_status mln_map_get_style_source_type(mln_map map, mln_buffer_view source_id, uint32_t *out_source_type, bool *out_found)
mln_status mln_map_set_location_indicator_accuracy_radius(mln_map map, mln_buffer_view layer_id, double radius)
mln_geojson_source_options mln_geojson_source_options_default(void)
mln_status mln_map_add_location_indicator_layer(mln_map map, mln_buffer_view layer_id, mln_buffer_view before_layer_id)
void(* mln_custom_geometry_source_release_callback)(void *user_data)
Definition style.h:308
mln_status mln_map_add_style_source_json(mln_map map, mln_buffer_view source_id, mln_buffer_view source_json)
mln_style_vector_tile_encoding
Definition style.h:76
mln_status mln_map_set_layer_filter(mln_map map, mln_buffer_view layer_id, const mln_buffer_view *filter)
mln_style_layer_visibility
Definition style.h:121
mln_status mln_map_remove_style_source(mln_map map, mln_buffer_view source_id, bool *out_removed)
mln_status mln_map_get_style_source_info(mln_map map, mln_buffer_view source_id, mln_style_source_info *out_info, bool *out_found)
mln_status mln_style_id_list_get(mln_style_id_list list, size_t index, mln_buffer_view *out_id)
mln_style_tile_scheme
Definition style.h:70
mln_status mln_map_add_raster_source_tiles(mln_map map, mln_buffer_view source_id, const mln_buffer_view *tiles, size_t tile_count, const mln_style_tile_source_options *options)
mln_status mln_map_add_image_source_url(mln_map map, mln_buffer_view source_id, const mln_lat_lng *coordinates, size_t coordinate_count, mln_buffer_view url)
mln_status mln_map_remove_style_image(mln_map map, mln_buffer_view image_id, bool *out_removed)
mln_status mln_map_add_custom_mvt_vector_source(mln_map map, mln_buffer_view source_id, const mln_custom_mvt_vector_source_options *options)
mln_style_source_type
Definition style.h:28
mln_custom_geometry_source_options mln_custom_geometry_source_options_default(void)
mln_status mln_map_set_style_image(mln_map map, mln_buffer_view image_id, const mln_premultiplied_rgba8_image *image, const mln_style_image_options *options)
mln_status mln_map_invalidate_custom_geometry_source_region(mln_map map, mln_buffer_view source_id, mln_lat_lng_bounds bounds)
mln_style_transition_option_field
Definition style.h:171
mln_status mln_style_string_list_get(mln_style_string_list list, size_t index, mln_buffer_view *out_value)
mln_status mln_map_set_image_source_url(mln_map map, mln_buffer_view source_id, mln_buffer_view url)
mln_status mln_map_move_style_layer(mln_map map, mln_buffer_view layer_id, mln_buffer_view before_layer_id)
mln_status mln_map_set_layer_source_layer(mln_map map, mln_buffer_view layer_id, mln_buffer_view source_layer)
mln_status mln_map_add_vector_source_tiles(mln_map map, mln_buffer_view source_id, const mln_buffer_view *tiles, size_t tile_count, const mln_style_tile_source_options *options)
mln_status mln_map_set_location_indicator_image_name(mln_map map, mln_buffer_view layer_id, uint32_t image_kind, mln_buffer_view image_id)
mln_status mln_map_get_layer_min_zoom(mln_map map, mln_buffer_view layer_id, double *out_min_zoom)
mln_style_tile_source_options mln_style_tile_source_options_default(void)
mln_style_raster_dem_encoding
Definition style.h:82
mln_style_image_info mln_style_image_info_default(void)
mln_status mln_map_style_image_exists(mln_map map, mln_buffer_view image_id, bool *out_exists)
void mln_style_id_list_destroy(mln_style_id_list list)
mln_status mln_map_get_style_layer_json(mln_map map, mln_buffer_view layer_id, mln_buffer *out_layer, bool *out_found)
mln_status mln_map_set_geojson_source_synchronous_tiling(mln_map map, mln_buffer_view source_id, bool enabled)
mln_status mln_map_get_style_source_tile_urls(mln_map map, mln_buffer_view source_id, mln_style_string_list *out_tile_urls, bool *out_found)
mln_status mln_map_add_geojson_source_data(mln_map map, mln_buffer_view source_id, mln_geojson_source_data data)
mln_status mln_map_set_layer_max_zoom(mln_map map, mln_buffer_view layer_id, double max_zoom)
mln_status mln_map_set_layer_min_zoom(mln_map map, mln_buffer_view layer_id, double min_zoom)
mln_style_source_info_field
Definition style.h:42
@ MLN_STYLE_SOURCE_INFO_URL
Definition style.h:44
@ MLN_STYLE_SOURCE_INFO_BOUNDS
Definition style.h:48
@ MLN_STYLE_SOURCE_INFO_TILEJSON
Definition style.h:46
@ MLN_STYLE_SOURCE_INFO_VECTOR_ENCODING
Definition style.h:52
@ MLN_STYLE_SOURCE_INFO_RASTER_ENCODING
Definition style.h:54
@ MLN_STYLE_SOURCE_INFO_TILE_SIZE
Definition style.h:50
mln_custom_geometry_source_option_field
Definition style.h:143
mln_status mln_map_copy_layer_source_id(mln_map map, mln_buffer_view layer_id, char *out_source_id, size_t source_id_capacity, size_t *out_source_id_size)
mln_status mln_map_set_location_indicator_bearing(mln_map map, mln_buffer_view layer_id, double bearing)
mln_status mln_map_remove_style_layer(mln_map map, mln_buffer_view layer_id, bool *out_removed)
mln_status mln_map_copy_style_image_stretches(mln_map map, mln_buffer_view image_id, mln_image_stretch *out_stretch_x, size_t stretch_x_capacity, size_t *out_stretch_x_count, mln_image_stretch *out_stretch_y, size_t stretch_y_capacity, size_t *out_stretch_y_count, bool *out_found)
mln_location_indicator_image_kind
Definition style.h:178
mln_status mln_map_list_style_source_ids(mln_map map, mln_style_id_list *out_source_ids)
mln_status mln_map_add_geojson_source_url(mln_map map, mln_buffer_view source_id, mln_buffer_view url, const mln_geojson_source_options *options)
mln_status mln_map_add_hillshade_layer(mln_map map, mln_buffer_view layer_id, mln_buffer_view source_id, mln_buffer_view before_layer_id)
mln_status mln_map_get_style_image_info(mln_map map, mln_buffer_view image_id, mln_style_image_info *out_info, bool *out_found)
mln_status mln_style_string_list_count(mln_style_string_list list, size_t *out_count)
mln_status mln_map_add_raster_dem_source_tiles(mln_map map, mln_buffer_view source_id, const mln_buffer_view *tiles, size_t tile_count, const mln_style_tile_source_options *options)
mln_status mln_map_set_layer_visibility(mln_map map, mln_buffer_view layer_id, uint32_t visibility)
mln_status mln_map_set_location_indicator_location(mln_map map, mln_buffer_view layer_id, mln_lat_lng coordinate, double altitude)
mln_geojson_source_option_field
Definition style.h:127
mln_status mln_map_style_layer_exists(mln_map map, mln_buffer_view layer_id, bool *out_exists)
mln_status mln_map_set_layer_property(mln_map map, mln_buffer_view layer_id, mln_buffer_view property_name, mln_buffer_view value)
mln_status mln_map_set_geojson_source_data(mln_map map, mln_buffer_view source_id, mln_geojson_source_data data)
mln_status mln_map_get_layer_filter(mln_map map, mln_buffer_view layer_id, mln_buffer *out_filter)
mln_style_image_text_fit
Definition style.h:114
mln_status mln_map_get_layer_property(mln_map map, mln_buffer_view layer_id, mln_buffer_view property_name, mln_buffer *out_value)
mln_status mln_map_copy_layer_source_layer(mln_map map, mln_buffer_view layer_id, char *out_source_layer, size_t source_layer_capacity, size_t *out_source_layer_size)
mln_status mln_map_get_style_layer_type(mln_map map, mln_buffer_view layer_id, mln_buffer_view *out_layer_type, bool *out_found)
void(* mln_custom_geometry_source_tile_callback)(void *user_data, mln_canonical_tile_id tile_id)
Definition style.h:303
mln_style_transition_options mln_style_transition_options_default(void)
mln_status mln_map_copy_style_source_attribution(mln_map map, mln_buffer_view source_id, char *out_attribution, size_t attribution_capacity, size_t *out_attribution_size, bool *out_found)
mln_status mln_geojson_source_data_create(mln_buffer_view data, const mln_geojson_source_options *options, mln_geojson_source_data *out_data)