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_style_layer_list;
26typedef uint64_t mln_geojson_source_data;
27
50 mln_map map, mln_buffer_view property_name, mln_buffer_view value
51) MLN_NOEXCEPT;
52
69MLN_API mln_status
70mln_map_get_global_state(mln_map map, mln_buffer* out_state) MLN_NOEXCEPT;
71
73typedef enum mln_style_source_type : uint32_t {
74 MLN_STYLE_SOURCE_TYPE_UNKNOWN = 0,
75 MLN_STYLE_SOURCE_TYPE_VECTOR = 1,
76 MLN_STYLE_SOURCE_TYPE_RASTER = 2,
77 MLN_STYLE_SOURCE_TYPE_RASTER_DEM = 3,
78 MLN_STYLE_SOURCE_TYPE_GEOJSON = 4,
79 MLN_STYLE_SOURCE_TYPE_IMAGE = 5,
80 MLN_STYLE_SOURCE_TYPE_VIDEO = 6,
81 MLN_STYLE_SOURCE_TYPE_ANNOTATIONS = 7,
82 MLN_STYLE_SOURCE_TYPE_CUSTOM_VECTOR = 8,
83 MLN_STYLE_SOURCE_TYPE_CUSTOM_MVT_VECTOR = 9,
85
101
103typedef enum mln_style_tile_source_option_field : uint32_t {
104 MLN_STYLE_TILE_SOURCE_OPTION_MIN_ZOOM = 1U << 0U,
105 MLN_STYLE_TILE_SOURCE_OPTION_MAX_ZOOM = 1U << 1U,
106 MLN_STYLE_TILE_SOURCE_OPTION_ATTRIBUTION = 1U << 2U,
107 MLN_STYLE_TILE_SOURCE_OPTION_SCHEME = 1U << 3U,
108 MLN_STYLE_TILE_SOURCE_OPTION_BOUNDS = 1U << 4U,
109 MLN_STYLE_TILE_SOURCE_OPTION_TILE_SIZE = 1U << 5U,
110 MLN_STYLE_TILE_SOURCE_OPTION_VECTOR_ENCODING = 1U << 6U,
111 MLN_STYLE_TILE_SOURCE_OPTION_RASTER_ENCODING = 1U << 7U,
113
115typedef enum mln_style_tile_scheme : uint32_t {
116 MLN_STYLE_TILE_SCHEME_XYZ = 0,
117 MLN_STYLE_TILE_SCHEME_TMS = 1,
119
121typedef enum mln_style_vector_tile_encoding : uint32_t {
122 MLN_STYLE_VECTOR_TILE_ENCODING_MVT = 0,
123 MLN_STYLE_VECTOR_TILE_ENCODING_MLT = 1,
125
127typedef enum mln_style_raster_dem_encoding : uint32_t {
128 MLN_STYLE_RASTER_DEM_ENCODING_MAPBOX = 0,
129 MLN_STYLE_RASTER_DEM_ENCODING_TERRARIUM = 1,
131
141typedef struct mln_image_stretch {
142 float from;
143 float to;
145
151typedef struct mln_image_content {
152 float left;
153 float top;
154 float right;
155 float bottom;
157
159typedef enum mln_style_image_text_fit : uint32_t {
160 MLN_STYLE_IMAGE_TEXT_FIT_STRETCH_OR_SHRINK = 0,
161 MLN_STYLE_IMAGE_TEXT_FIT_STRETCH_ONLY = 1,
162 MLN_STYLE_IMAGE_TEXT_FIT_PROPORTIONAL = 2,
164
166typedef enum mln_style_layer_visibility : uint32_t {
167 MLN_STYLE_LAYER_VISIBILITY_VISIBLE = 0,
168 MLN_STYLE_LAYER_VISIBILITY_NONE = 1,
170
172typedef enum mln_geojson_source_option_field : uint32_t {
173 MLN_GEOJSON_SOURCE_OPTION_MIN_ZOOM = 1U << 0U,
174 MLN_GEOJSON_SOURCE_OPTION_MAX_ZOOM = 1U << 1U,
175 MLN_GEOJSON_SOURCE_OPTION_TOLERANCE = 1U << 2U,
176 MLN_GEOJSON_SOURCE_OPTION_CLUSTER_MAX_ZOOM = 1U << 3U,
177 MLN_GEOJSON_SOURCE_OPTION_CLUSTER_PROPERTIES = 1U << 4U,
178 MLN_GEOJSON_SOURCE_OPTION_TILE_SIZE = 1U << 5U,
179 MLN_GEOJSON_SOURCE_OPTION_BUFFER = 1U << 6U,
180 MLN_GEOJSON_SOURCE_OPTION_CLUSTER_RADIUS = 1U << 7U,
181 MLN_GEOJSON_SOURCE_OPTION_CLUSTER_MIN_POINTS = 1U << 8U,
182 MLN_GEOJSON_SOURCE_OPTION_LINE_METRICS = 1U << 9U,
183 MLN_GEOJSON_SOURCE_OPTION_CLUSTER = 1U << 10U,
184 MLN_GEOJSON_SOURCE_OPTION_SYNCHRONOUS_TILING = 1U << 11U,
186
189 MLN_CUSTOM_GEOMETRY_SOURCE_OPTION_MIN_ZOOM = 1U << 0U,
190 MLN_CUSTOM_GEOMETRY_SOURCE_OPTION_MAX_ZOOM = 1U << 1U,
191 MLN_CUSTOM_GEOMETRY_SOURCE_OPTION_TOLERANCE = 1U << 2U,
192 MLN_CUSTOM_GEOMETRY_SOURCE_OPTION_TILE_SIZE = 1U << 3U,
193 MLN_CUSTOM_GEOMETRY_SOURCE_OPTION_BUFFER = 1U << 4U,
194 MLN_CUSTOM_GEOMETRY_SOURCE_OPTION_CLIP = 1U << 5U,
195 MLN_CUSTOM_GEOMETRY_SOURCE_OPTION_WRAP = 1U << 6U,
197
200 MLN_CUSTOM_MVT_VECTOR_SOURCE_OPTION_MIN_ZOOM = 1U << 0U,
201 MLN_CUSTOM_MVT_VECTOR_SOURCE_OPTION_MAX_ZOOM = 1U << 1U,
203
205typedef enum mln_style_image_option_field : uint32_t {
206 MLN_STYLE_IMAGE_OPTION_PIXEL_RATIO = 1U << 0U,
207 MLN_STYLE_IMAGE_OPTION_SDF = 1U << 1U,
208 MLN_STYLE_IMAGE_OPTION_STRETCH_X = 1U << 2U,
209 MLN_STYLE_IMAGE_OPTION_STRETCH_Y = 1U << 3U,
210 MLN_STYLE_IMAGE_OPTION_CONTENT = 1U << 4U,
211 MLN_STYLE_IMAGE_OPTION_TEXT_FIT_WIDTH = 1U << 5U,
212 MLN_STYLE_IMAGE_OPTION_TEXT_FIT_HEIGHT = 1U << 6U,
214
216typedef enum mln_style_transition_option_field : uint32_t {
217 MLN_STYLE_TRANSITION_OPTION_DURATION = 1U << 0U,
218 MLN_STYLE_TRANSITION_OPTION_DELAY = 1U << 1U,
219 MLN_STYLE_TRANSITION_OPTION_ENABLE_PLACEMENT_TRANSITIONS = 1U << 2U,
221
223typedef enum mln_location_indicator_image_kind : uint32_t {
224 MLN_LOCATION_INDICATOR_IMAGE_KIND_TOP = 0,
225 MLN_LOCATION_INDICATOR_IMAGE_KIND_BEARING = 1,
226 MLN_LOCATION_INDICATOR_IMAGE_KIND_SHADOW = 2,
228
230typedef struct mln_style_source_info {
231 uint32_t size;
233 uint32_t type;
235 uint32_t fields;
237 size_t id_size;
240 bool has_attribution;
244 size_t url_size;
248 double min_zoom;
250 double max_zoom;
252 uint32_t scheme;
256 uint32_t tile_size;
262
270typedef struct mln_style_layer_info {
271 uint32_t size;
273 mln_buffer_view type;
274 mln_buffer_view source_id;
275 mln_buffer_view source_layer;
277
280 uint32_t size;
281 uint32_t fields;
282 double min_zoom;
283 double max_zoom;
284 mln_buffer_view attribution;
286 uint32_t scheme;
287 mln_lat_lng_bounds bounds;
289 uint32_t tile_size;
295
353
356typedef struct mln_canonical_tile_id {
357 uint32_t z;
358 uint32_t x;
359 uint32_t y;
361
364 void* user_data, mln_canonical_tile_id tile_id
365);
366
368typedef void (*mln_custom_geometry_source_release_callback)(void* user_data);
369
372 uint32_t size;
373 uint32_t fields;
380 double min_zoom;
381 double max_zoom;
382 double tolerance;
383 uint32_t tile_size;
384 uint32_t buffer;
385 bool clip;
386 bool wrap;
403
406 void* user_data, mln_canonical_tile_id tile_id
407);
408
410typedef void (*mln_custom_mvt_vector_source_release_callback)(void* user_data);
411
440
443 uint32_t size;
444 uint32_t width;
445 uint32_t height;
447 uint32_t stride;
449 const uint8_t* pixels;
453
456 uint32_t size;
457 uint32_t fields;
463 size_t stretch_x_count;
469 size_t stretch_y_count;
479 bool sdf;
481
483typedef struct mln_style_image_info {
484 uint32_t size;
485 uint32_t width;
486 uint32_t height;
488 uint32_t stride;
489 size_t byte_length;
495 size_t stretch_y_count;
502 float pixel_ratio;
503 bool sdf;
504 bool has_content;
505 bool has_text_fit_width;
506 bool has_text_fit_height;
508
521 uint32_t size;
522 uint32_t fields;
545 double delay_ms;
559
563
567
571
575
579
583
586
589
593
603MLN_API mln_status
604mln_style_id_list_count(mln_style_id_list list, size_t* out_count) MLN_NOEXCEPT;
605
619 mln_style_id_list list, size_t index, mln_buffer_view* out_id
620) MLN_NOEXCEPT;
621
623MLN_API void mln_style_id_list_destroy(mln_style_id_list list) MLN_NOEXCEPT;
624
635 mln_style_string_list list, size_t* out_count
636) MLN_NOEXCEPT;
637
651 mln_style_string_list list, size_t index, mln_buffer_view* out_value
652) MLN_NOEXCEPT;
653
656 mln_style_string_list list
657) MLN_NOEXCEPT;
658
669 mln_style_layer_list list, size_t* out_count
670) MLN_NOEXCEPT;
671
685 mln_style_layer_list list, size_t index, mln_style_layer_info* out_layer
686) MLN_NOEXCEPT;
687
690 mln_style_layer_list list
691) MLN_NOEXCEPT;
692
711 mln_map map, mln_buffer_view source_id, mln_buffer_view source_json
712) MLN_NOEXCEPT;
713
730 mln_map map, mln_buffer_view source_id, bool* out_removed
731) MLN_NOEXCEPT;
732
745 mln_map map, mln_buffer_view source_id, bool* out_exists
746) MLN_NOEXCEPT;
747
763 mln_map map, mln_buffer_view source_id, uint32_t* out_source_type,
764 bool* out_found
765) MLN_NOEXCEPT;
766
787 mln_map map, mln_buffer_view source_id, mln_style_source_info* out_info,
788 bool* out_found
789) MLN_NOEXCEPT;
790
808 mln_map map, mln_buffer_view source_id, bool is_volatile
809) MLN_NOEXCEPT;
810
836 mln_map map, mln_buffer_view source_id, char* out_attribution,
837 size_t attribution_capacity, size_t* out_attribution_size, bool* out_found
838) MLN_NOEXCEPT;
839
863 mln_map map, mln_buffer_view source_id, char* out_url, size_t url_capacity,
864 size_t* out_url_size, bool* out_found
865) MLN_NOEXCEPT;
866
886 mln_map map, mln_buffer_view source_id, mln_style_string_list* out_tile_urls,
887 bool* out_found
888) MLN_NOEXCEPT;
889
905 mln_map map, mln_style_id_list* out_source_ids
906) MLN_NOEXCEPT;
907
924 mln_map map, mln_buffer_view source_id, mln_buffer_view url,
925 const mln_geojson_source_options* options
926) MLN_NOEXCEPT;
927
960 mln_buffer_view data, const mln_geojson_source_options* options,
961 mln_geojson_source_data* out_data
962) MLN_NOEXCEPT;
963
972 mln_geojson_source_data data
973) MLN_NOEXCEPT;
974
993 mln_map map, mln_buffer_view source_id, mln_geojson_source_data data
994) MLN_NOEXCEPT;
995
1012 mln_map map, mln_buffer_view source_id, mln_buffer_view url
1013) MLN_NOEXCEPT;
1014
1042 mln_map map, mln_buffer_view source_id, mln_geojson_source_data data
1043) MLN_NOEXCEPT;
1044
1065 mln_map map, mln_buffer_view source_id, bool enabled
1066) MLN_NOEXCEPT;
1067
1084 mln_map map, mln_buffer_view source_id, mln_buffer_view url,
1085 const mln_style_tile_source_options* options
1086) MLN_NOEXCEPT;
1087
1105 mln_map map, mln_buffer_view source_id, const mln_buffer_view* tiles,
1106 size_t tile_count, const mln_style_tile_source_options* options
1107) MLN_NOEXCEPT;
1108
1124 mln_map map, mln_buffer_view source_id, mln_buffer_view url,
1125 const mln_style_tile_source_options* options
1126) MLN_NOEXCEPT;
1127
1145 mln_map map, mln_buffer_view source_id, const mln_buffer_view* tiles,
1146 size_t tile_count, const mln_style_tile_source_options* options
1147) MLN_NOEXCEPT;
1148
1165 mln_map map, mln_buffer_view source_id, mln_buffer_view url,
1166 const mln_style_tile_source_options* options
1167) MLN_NOEXCEPT;
1168
1186 mln_map map, mln_buffer_view source_id, const mln_buffer_view* tiles,
1187 size_t tile_count, const mln_style_tile_source_options* options
1188) MLN_NOEXCEPT;
1189
1226 mln_map map, mln_buffer_view source_id,
1228) MLN_NOEXCEPT;
1229
1246 mln_map map, mln_buffer_view source_id, mln_canonical_tile_id tile_id,
1247 mln_buffer_view data
1248) MLN_NOEXCEPT;
1249
1263 mln_map map, mln_buffer_view source_id, mln_canonical_tile_id tile_id
1264) MLN_NOEXCEPT;
1265
1279 mln_map map, mln_buffer_view source_id, mln_lat_lng_bounds bounds
1280) MLN_NOEXCEPT;
1281
1322 mln_map map, mln_buffer_view source_id,
1324) MLN_NOEXCEPT;
1325
1348 mln_map map, mln_buffer_view source_id, mln_canonical_tile_id tile_id,
1349 mln_buffer_view data
1350) MLN_NOEXCEPT;
1351
1373 mln_map map, mln_buffer_view source_id, mln_canonical_tile_id tile_id,
1374 mln_buffer_view message
1375) MLN_NOEXCEPT;
1376
1390 mln_map map, mln_buffer_view source_id, mln_canonical_tile_id tile_id
1391) MLN_NOEXCEPT;
1392
1413 mln_map map, mln_buffer_view image_id,
1414 const mln_premultiplied_rgba8_image* image,
1415 const mln_style_image_options* options
1416) MLN_NOEXCEPT;
1417
1433 mln_map map, mln_buffer_view image_id, bool* out_removed
1434) MLN_NOEXCEPT;
1435
1448 mln_map map, mln_buffer_view image_id, bool* out_exists
1449) MLN_NOEXCEPT;
1450
1467 mln_map map, mln_buffer_view image_id, mln_style_image_info* out_info,
1468 bool* out_found
1469) MLN_NOEXCEPT;
1470
1494 mln_map map, mln_buffer_view image_id, uint8_t* out_pixels,
1495 size_t pixel_capacity, size_t* out_byte_length, bool* out_found
1496) MLN_NOEXCEPT;
1497
1521 mln_map map, mln_buffer_view image_id, mln_image_stretch* out_stretch_x,
1522 size_t stretch_x_capacity, size_t* out_stretch_x_count,
1523 mln_image_stretch* out_stretch_y, size_t stretch_y_capacity,
1524 size_t* out_stretch_y_count, bool* out_found
1525) MLN_NOEXCEPT;
1526
1549 mln_map map, mln_buffer_view source_id, const mln_lat_lng* coordinates,
1550 size_t coordinate_count, mln_buffer_view url
1551) MLN_NOEXCEPT;
1552
1575 mln_map map, mln_buffer_view source_id, const mln_lat_lng* coordinates,
1576 size_t coordinate_count, const mln_premultiplied_rgba8_image* image
1577) MLN_NOEXCEPT;
1578
1595 mln_map map, mln_buffer_view source_id, mln_buffer_view url
1596) MLN_NOEXCEPT;
1597
1615 mln_map map, mln_buffer_view source_id,
1617) MLN_NOEXCEPT;
1618
1636 mln_map map, mln_buffer_view source_id, const mln_lat_lng* coordinates,
1637 size_t coordinate_count
1638) MLN_NOEXCEPT;
1639
1659 mln_map map, mln_buffer_view source_id, mln_lat_lng* out_coordinates,
1660 size_t coordinate_capacity, size_t* out_coordinate_count, bool* out_found
1661) MLN_NOEXCEPT;
1662
1681 mln_map map, mln_buffer_view layer_id, mln_buffer_view source_id,
1682 mln_buffer_view before_layer_id
1683) MLN_NOEXCEPT;
1684
1704 mln_map map, mln_buffer_view layer_id, mln_buffer_view source_id,
1705 mln_buffer_view before_layer_id
1706) MLN_NOEXCEPT;
1707
1725 mln_map map, mln_buffer_view layer_id, mln_buffer_view before_layer_id
1726) MLN_NOEXCEPT;
1727
1745 mln_map map, mln_buffer_view layer_id, mln_lat_lng coordinate, double altitude
1746) MLN_NOEXCEPT;
1747
1761 mln_map map, mln_buffer_view layer_id, double bearing
1762) MLN_NOEXCEPT;
1763
1777 mln_map map, mln_buffer_view layer_id, double radius
1778) MLN_NOEXCEPT;
1779
1796 mln_map map, mln_buffer_view layer_id, uint32_t image_kind,
1797 mln_buffer_view image_id
1798) MLN_NOEXCEPT;
1799
1823 mln_map map, mln_buffer_view layer_json, mln_buffer_view before_layer_id
1824) MLN_NOEXCEPT;
1825
1841 mln_map map, mln_buffer_view layer_id, bool* out_removed
1842) MLN_NOEXCEPT;
1843
1856 mln_map map, mln_buffer_view layer_id, bool* out_exists
1857) MLN_NOEXCEPT;
1858
1874 mln_map map, mln_buffer_view layer_id, mln_buffer_view* out_layer_type,
1875 bool* out_found
1876) MLN_NOEXCEPT;
1877
1893 mln_map map, mln_style_id_list* out_layer_ids
1894) MLN_NOEXCEPT;
1895
1916 mln_map map, mln_style_layer_list* out_layers
1917) MLN_NOEXCEPT;
1918
1935 mln_map map, mln_buffer_view layer_id, mln_buffer_view before_layer_id
1936) MLN_NOEXCEPT;
1937
1955 mln_map map, mln_buffer_view layer_id, mln_buffer* out_layer, bool* out_found
1956) MLN_NOEXCEPT;
1957
1973 mln_map map, mln_buffer_view light_json
1974) MLN_NOEXCEPT;
1975
1993 mln_map map, mln_buffer_view property_name, mln_buffer_view value
1994) MLN_NOEXCEPT;
1995
2012 mln_map map, mln_buffer_view property_name, mln_buffer* out_value
2013) MLN_NOEXCEPT;
2014
2037 mln_map map, const mln_style_transition_options* options
2038) MLN_NOEXCEPT;
2039
2065 mln_map map, mln_style_transition_options* out_options
2066) MLN_NOEXCEPT;
2067
2087 mln_map map, mln_buffer_view layer_id, mln_buffer_view property_name,
2088 mln_buffer_view value
2089) MLN_NOEXCEPT;
2090
2108 mln_map map, mln_buffer_view layer_id, mln_buffer_view property_name,
2109 mln_buffer* out_value
2110) MLN_NOEXCEPT;
2111
2130 mln_map map, mln_buffer_view layer_id, const mln_buffer_view* filter
2131) MLN_NOEXCEPT;
2132
2149 mln_map map, mln_buffer_view layer_id, mln_buffer* out_filter
2150) MLN_NOEXCEPT;
2151
2172 mln_map map, mln_buffer_view layer_id, mln_buffer_view source_layer
2173) MLN_NOEXCEPT;
2174
2199 mln_map map, mln_buffer_view layer_id, char* out_source_layer,
2200 size_t source_layer_capacity, size_t* out_source_layer_size
2201) MLN_NOEXCEPT;
2202
2223 mln_map map, mln_buffer_view layer_id, mln_buffer_view source_id
2224) MLN_NOEXCEPT;
2225
2250 mln_map map, mln_buffer_view layer_id, char* out_source_id,
2251 size_t source_id_capacity, size_t* out_source_id_size
2252) MLN_NOEXCEPT;
2253
2269 mln_map map, mln_buffer_view layer_id, double min_zoom
2270) MLN_NOEXCEPT;
2271
2286 mln_map map, mln_buffer_view layer_id, double* out_min_zoom
2287) MLN_NOEXCEPT;
2288
2304 mln_map map, mln_buffer_view layer_id, double max_zoom
2305) MLN_NOEXCEPT;
2306
2321 mln_map map, mln_buffer_view layer_id, double* out_max_zoom
2322) MLN_NOEXCEPT;
2323
2339 mln_map map, mln_buffer_view layer_id, uint32_t visibility
2340) MLN_NOEXCEPT;
2341
2356 mln_map map, mln_buffer_view layer_id, uint32_t* out_visibility
2357) MLN_NOEXCEPT;
2358
2359#ifdef __cplusplus
2360}
2361#endif
2362
2363#endif // MAPLIBRE_NATIVE_C_STYLE_H
mln_status
Definition base.h:39
Definition base.h:103
Definition style.h:356
void * user_data
Definition style.h:379
mln_custom_geometry_source_release_callback release_user_data
Definition style.h:401
mln_custom_geometry_source_tile_callback fetch_tile
Definition style.h:375
mln_custom_geometry_source_tile_callback cancel_tile
Definition style.h:377
mln_custom_mvt_vector_source_release_callback release_user_data
Definition style.h:438
mln_custom_mvt_vector_source_tile_callback cancel_tile
Definition style.h:419
mln_custom_mvt_vector_source_tile_callback fetch_tile
Definition style.h:417
void * user_data
Definition style.h:421
Definition style.h:304
bool synchronous_tiling
Definition style.h:351
double min_zoom
Definition style.h:308
double max_zoom
Definition style.h:310
mln_buffer_view cluster_properties
Definition style.h:320
uint32_t buffer
Definition style.h:324
double tolerance
Definition style.h:312
double cluster_max_zoom
Definition style.h:314
uint32_t cluster_radius
Definition style.h:326
bool line_metrics
Definition style.h:330
uint32_t cluster_min_points
Definition style.h:328
bool cluster
Definition style.h:340
uint32_t tile_size
Definition style.h:322
Definition style.h:151
Definition style.h:141
Definition map.h:371
Definition map.h:340
Definition style.h:442
const uint8_t * pixels
Definition style.h:449
uint32_t stride
Definition style.h:447
size_t byte_length
Definition style.h:451
Definition style.h:483
uint32_t text_fit_width
Definition style.h:499
uint32_t text_fit_height
Definition style.h:501
size_t stretch_x_count
Definition style.h:494
mln_image_content content
Definition style.h:497
uint32_t stride
Definition style.h:488
Definition style.h:455
uint32_t text_fit_width
Definition style.h:473
const mln_image_stretch * stretch_y
Definition style.h:468
float pixel_ratio
Definition style.h:477
mln_image_content content
Definition style.h:471
bool sdf
Definition style.h:479
const mln_image_stretch * stretch_x
Definition style.h:462
uint32_t text_fit_height
Definition style.h:475
Definition style.h:270
Definition style.h:230
uint32_t type
Definition style.h:233
size_t id_size
Definition style.h:237
double min_zoom
Definition style.h:248
size_t attribution_size
Definition style.h:242
uint32_t scheme
Definition style.h:252
size_t tile_count
Definition style.h:246
uint32_t fields
Definition style.h:235
mln_lat_lng_bounds bounds
Definition style.h:254
size_t url_size
Definition style.h:244
uint32_t tile_size
Definition style.h:256
double max_zoom
Definition style.h:250
uint32_t vector_encoding
Definition style.h:258
bool is_volatile
Definition style.h:239
uint32_t raster_encoding
Definition style.h:260
Definition style.h:279
uint32_t raster_encoding
Definition style.h:293
uint32_t scheme
Definition style.h:286
uint32_t tile_size
Definition style.h:289
uint32_t vector_encoding
Definition style.h:291
Definition style.h:520
double duration_ms
Definition style.h:538
double delay_ms
Definition style.h:545
bool enable_placement_transitions
Definition style.h:557
void mln_geojson_source_data_destroy(mln_geojson_source_data data)
mln_style_image_option_field
Definition style.h:205
void mln_style_layer_list_destroy(mln_style_layer_list list)
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:410
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:103
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)
mln_status mln_style_layer_list_count(mln_style_layer_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:405
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:199
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_status mln_map_set_global_state_property(mln_map map, mln_buffer_view property_name, mln_buffer_view value)
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:368
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:121
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:166
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:115
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:73
mln_status mln_map_list_style_layers(mln_map map, mln_style_layer_list *out_layers)
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:216
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:127
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:87
@ MLN_STYLE_SOURCE_INFO_URL
Definition style.h:89
@ MLN_STYLE_SOURCE_INFO_BOUNDS
Definition style.h:93
@ MLN_STYLE_SOURCE_INFO_TILEJSON
Definition style.h:91
@ MLN_STYLE_SOURCE_INFO_VECTOR_ENCODING
Definition style.h:97
@ MLN_STYLE_SOURCE_INFO_RASTER_ENCODING
Definition style.h:99
@ MLN_STYLE_SOURCE_INFO_TILE_SIZE
Definition style.h:95
mln_status mln_map_get_global_state(mln_map map, mln_buffer *out_state)
mln_custom_geometry_source_option_field
Definition style.h:188
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:223
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:172
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_status mln_style_layer_list_get(mln_style_layer_list list, size_t index, mln_style_layer_info *out_layer)
mln_style_image_text_fit
Definition style.h:159
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:363
mln_style_layer_info mln_style_layer_info_default(void)
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)