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;
193 bool is_volatile;
194 bool has_attribution;
198 size_t url_size;
202 double min_zoom;
204 double max_zoom;
206 uint32_t scheme;
210 uint32_t tile_size;
216
219 uint32_t size;
220 uint32_t fields;
221 double min_zoom;
222 double max_zoom;
223 mln_buffer_view attribution;
225 uint32_t scheme;
226 mln_lat_lng_bounds bounds;
228 uint32_t tile_size;
234
292
295typedef struct mln_canonical_tile_id {
296 uint32_t z;
297 uint32_t x;
298 uint32_t y;
300
303 void* user_data, mln_canonical_tile_id tile_id
304);
305
307typedef void (*mln_custom_geometry_source_release_callback)(void* user_data);
308
311 uint32_t size;
312 uint32_t fields;
319 double min_zoom;
320 double max_zoom;
321 double tolerance;
322 uint32_t tile_size;
323 uint32_t buffer;
324 bool clip;
325 bool wrap;
342
345 void* user_data, mln_canonical_tile_id tile_id
346);
347
349typedef void (*mln_custom_mvt_vector_source_release_callback)(void* user_data);
350
379
382 uint32_t size;
383 uint32_t width;
384 uint32_t height;
386 uint32_t stride;
388 const uint8_t* pixels;
392
395 uint32_t size;
396 uint32_t fields;
402 size_t stretch_x_count;
408 size_t stretch_y_count;
418 bool sdf;
420
422typedef struct mln_style_image_info {
423 uint32_t size;
424 uint32_t width;
425 uint32_t height;
427 uint32_t stride;
428 size_t byte_length;
434 size_t stretch_y_count;
441 float pixel_ratio;
442 bool sdf;
443 bool has_content;
444 bool has_text_fit_width;
445 bool has_text_fit_height;
447
460 uint32_t size;
461 uint32_t fields;
484 double delay_ms;
498
502
506
510
514
518
522
525
529
539MLN_API mln_status
540mln_style_id_list_count(mln_style_id_list list, size_t* out_count) MLN_NOEXCEPT;
541
555 mln_style_id_list list, size_t index, mln_buffer_view* out_id
556) MLN_NOEXCEPT;
557
559MLN_API void mln_style_id_list_destroy(mln_style_id_list list) MLN_NOEXCEPT;
560
571 mln_style_string_list list, size_t* out_count
572) MLN_NOEXCEPT;
573
587 mln_style_string_list list, size_t index, mln_buffer_view* out_value
588) MLN_NOEXCEPT;
589
592 mln_style_string_list list
593) MLN_NOEXCEPT;
594
613 mln_map map, mln_buffer_view source_id, mln_buffer_view source_json
614) MLN_NOEXCEPT;
615
632 mln_map map, mln_buffer_view source_id, bool* out_removed
633) MLN_NOEXCEPT;
634
647 mln_map map, mln_buffer_view source_id, bool* out_exists
648) MLN_NOEXCEPT;
649
665 mln_map map, mln_buffer_view source_id, uint32_t* out_source_type,
666 bool* out_found
667) MLN_NOEXCEPT;
668
689 mln_map map, mln_buffer_view source_id, mln_style_source_info* out_info,
690 bool* out_found
691) MLN_NOEXCEPT;
692
718 mln_map map, mln_buffer_view source_id, char* out_attribution,
719 size_t attribution_capacity, size_t* out_attribution_size, bool* out_found
720) MLN_NOEXCEPT;
721
745 mln_map map, mln_buffer_view source_id, char* out_url, size_t url_capacity,
746 size_t* out_url_size, bool* out_found
747) MLN_NOEXCEPT;
748
768 mln_map map, mln_buffer_view source_id, mln_style_string_list* out_tile_urls,
769 bool* out_found
770) MLN_NOEXCEPT;
771
787 mln_map map, mln_style_id_list* out_source_ids
788) MLN_NOEXCEPT;
789
806 mln_map map, mln_buffer_view source_id, mln_buffer_view url,
807 const mln_geojson_source_options* options
808) MLN_NOEXCEPT;
809
842 mln_buffer_view data, const mln_geojson_source_options* options,
843 mln_geojson_source_data* out_data
844) MLN_NOEXCEPT;
845
854 mln_geojson_source_data data
855) MLN_NOEXCEPT;
856
875 mln_map map, mln_buffer_view source_id, mln_geojson_source_data data
876) MLN_NOEXCEPT;
877
894 mln_map map, mln_buffer_view source_id, mln_buffer_view url
895) MLN_NOEXCEPT;
896
924 mln_map map, mln_buffer_view source_id, mln_geojson_source_data data
925) MLN_NOEXCEPT;
926
947 mln_map map, mln_buffer_view source_id, bool enabled
948) MLN_NOEXCEPT;
949
966 mln_map map, mln_buffer_view source_id, mln_buffer_view url,
967 const mln_style_tile_source_options* options
968) MLN_NOEXCEPT;
969
987 mln_map map, mln_buffer_view source_id, const mln_buffer_view* tiles,
988 size_t tile_count, const mln_style_tile_source_options* options
989) MLN_NOEXCEPT;
990
1006 mln_map map, mln_buffer_view source_id, mln_buffer_view url,
1007 const mln_style_tile_source_options* options
1008) MLN_NOEXCEPT;
1009
1027 mln_map map, mln_buffer_view source_id, const mln_buffer_view* tiles,
1028 size_t tile_count, const mln_style_tile_source_options* options
1029) MLN_NOEXCEPT;
1030
1047 mln_map map, mln_buffer_view source_id, mln_buffer_view url,
1048 const mln_style_tile_source_options* options
1049) MLN_NOEXCEPT;
1050
1068 mln_map map, mln_buffer_view source_id, const mln_buffer_view* tiles,
1069 size_t tile_count, const mln_style_tile_source_options* options
1070) MLN_NOEXCEPT;
1071
1108 mln_map map, mln_buffer_view source_id,
1110) MLN_NOEXCEPT;
1111
1128 mln_map map, mln_buffer_view source_id, mln_canonical_tile_id tile_id,
1129 mln_buffer_view data
1130) MLN_NOEXCEPT;
1131
1145 mln_map map, mln_buffer_view source_id, mln_canonical_tile_id tile_id
1146) MLN_NOEXCEPT;
1147
1161 mln_map map, mln_buffer_view source_id, mln_lat_lng_bounds bounds
1162) MLN_NOEXCEPT;
1163
1204 mln_map map, mln_buffer_view source_id,
1206) MLN_NOEXCEPT;
1207
1230 mln_map map, mln_buffer_view source_id, mln_canonical_tile_id tile_id,
1231 mln_buffer_view data
1232) MLN_NOEXCEPT;
1233
1255 mln_map map, mln_buffer_view source_id, mln_canonical_tile_id tile_id,
1256 mln_buffer_view message
1257) MLN_NOEXCEPT;
1258
1272 mln_map map, mln_buffer_view source_id, mln_canonical_tile_id tile_id
1273) MLN_NOEXCEPT;
1274
1295 mln_map map, mln_buffer_view image_id,
1296 const mln_premultiplied_rgba8_image* image,
1297 const mln_style_image_options* options
1298) MLN_NOEXCEPT;
1299
1315 mln_map map, mln_buffer_view image_id, bool* out_removed
1316) MLN_NOEXCEPT;
1317
1330 mln_map map, mln_buffer_view image_id, bool* out_exists
1331) MLN_NOEXCEPT;
1332
1349 mln_map map, mln_buffer_view image_id, mln_style_image_info* out_info,
1350 bool* out_found
1351) MLN_NOEXCEPT;
1352
1376 mln_map map, mln_buffer_view image_id, uint8_t* out_pixels,
1377 size_t pixel_capacity, size_t* out_byte_length, bool* out_found
1378) MLN_NOEXCEPT;
1379
1403 mln_map map, mln_buffer_view image_id, mln_image_stretch* out_stretch_x,
1404 size_t stretch_x_capacity, size_t* out_stretch_x_count,
1405 mln_image_stretch* out_stretch_y, size_t stretch_y_capacity,
1406 size_t* out_stretch_y_count, bool* out_found
1407) MLN_NOEXCEPT;
1408
1431 mln_map map, mln_buffer_view source_id, const mln_lat_lng* coordinates,
1432 size_t coordinate_count, mln_buffer_view url
1433) MLN_NOEXCEPT;
1434
1457 mln_map map, mln_buffer_view source_id, const mln_lat_lng* coordinates,
1458 size_t coordinate_count, const mln_premultiplied_rgba8_image* image
1459) MLN_NOEXCEPT;
1460
1477 mln_map map, mln_buffer_view source_id, mln_buffer_view url
1478) MLN_NOEXCEPT;
1479
1497 mln_map map, mln_buffer_view source_id,
1499) MLN_NOEXCEPT;
1500
1518 mln_map map, mln_buffer_view source_id, const mln_lat_lng* coordinates,
1519 size_t coordinate_count
1520) MLN_NOEXCEPT;
1521
1541 mln_map map, mln_buffer_view source_id, mln_lat_lng* out_coordinates,
1542 size_t coordinate_capacity, size_t* out_coordinate_count, bool* out_found
1543) MLN_NOEXCEPT;
1544
1563 mln_map map, mln_buffer_view layer_id, mln_buffer_view source_id,
1564 mln_buffer_view before_layer_id
1565) MLN_NOEXCEPT;
1566
1586 mln_map map, mln_buffer_view layer_id, mln_buffer_view source_id,
1587 mln_buffer_view before_layer_id
1588) MLN_NOEXCEPT;
1589
1607 mln_map map, mln_buffer_view layer_id, mln_buffer_view before_layer_id
1608) MLN_NOEXCEPT;
1609
1627 mln_map map, mln_buffer_view layer_id, mln_lat_lng coordinate, double altitude
1628) MLN_NOEXCEPT;
1629
1643 mln_map map, mln_buffer_view layer_id, double bearing
1644) MLN_NOEXCEPT;
1645
1659 mln_map map, mln_buffer_view layer_id, double radius
1660) MLN_NOEXCEPT;
1661
1678 mln_map map, mln_buffer_view layer_id, uint32_t image_kind,
1679 mln_buffer_view image_id
1680) MLN_NOEXCEPT;
1681
1705 mln_map map, mln_buffer_view layer_json, mln_buffer_view before_layer_id
1706) MLN_NOEXCEPT;
1707
1723 mln_map map, mln_buffer_view layer_id, bool* out_removed
1724) MLN_NOEXCEPT;
1725
1738 mln_map map, mln_buffer_view layer_id, bool* out_exists
1739) MLN_NOEXCEPT;
1740
1756 mln_map map, mln_buffer_view layer_id, mln_buffer_view* out_layer_type,
1757 bool* out_found
1758) MLN_NOEXCEPT;
1759
1775 mln_map map, mln_style_id_list* out_layer_ids
1776) MLN_NOEXCEPT;
1777
1794 mln_map map, mln_buffer_view layer_id, mln_buffer_view before_layer_id
1795) MLN_NOEXCEPT;
1796
1814 mln_map map, mln_buffer_view layer_id, mln_buffer* out_layer, bool* out_found
1815) MLN_NOEXCEPT;
1816
1832 mln_map map, mln_buffer_view light_json
1833) MLN_NOEXCEPT;
1834
1852 mln_map map, mln_buffer_view property_name, mln_buffer_view value
1853) MLN_NOEXCEPT;
1854
1871 mln_map map, mln_buffer_view property_name, mln_buffer* out_value
1872) MLN_NOEXCEPT;
1873
1896 mln_map map, const mln_style_transition_options* options
1897) MLN_NOEXCEPT;
1898
1924 mln_map map, mln_style_transition_options* out_options
1925) MLN_NOEXCEPT;
1926
1946 mln_map map, mln_buffer_view layer_id, mln_buffer_view property_name,
1947 mln_buffer_view value
1948) MLN_NOEXCEPT;
1949
1967 mln_map map, mln_buffer_view layer_id, mln_buffer_view property_name,
1968 mln_buffer* out_value
1969) MLN_NOEXCEPT;
1970
1989 mln_map map, mln_buffer_view layer_id, const mln_buffer_view* filter
1990) MLN_NOEXCEPT;
1991
2008 mln_map map, mln_buffer_view layer_id, mln_buffer* out_filter
2009) MLN_NOEXCEPT;
2010
2031 mln_map map, mln_buffer_view layer_id, mln_buffer_view source_layer
2032) MLN_NOEXCEPT;
2033
2058 mln_map map, mln_buffer_view layer_id, char* out_source_layer,
2059 size_t source_layer_capacity, size_t* out_source_layer_size
2060) MLN_NOEXCEPT;
2061
2082 mln_map map, mln_buffer_view layer_id, mln_buffer_view source_id
2083) MLN_NOEXCEPT;
2084
2109 mln_map map, mln_buffer_view layer_id, char* out_source_id,
2110 size_t source_id_capacity, size_t* out_source_id_size
2111) MLN_NOEXCEPT;
2112
2128 mln_map map, mln_buffer_view layer_id, double min_zoom
2129) MLN_NOEXCEPT;
2130
2145 mln_map map, mln_buffer_view layer_id, double* out_min_zoom
2146) MLN_NOEXCEPT;
2147
2163 mln_map map, mln_buffer_view layer_id, double max_zoom
2164) MLN_NOEXCEPT;
2165
2180 mln_map map, mln_buffer_view layer_id, double* out_max_zoom
2181) MLN_NOEXCEPT;
2182
2198 mln_map map, mln_buffer_view layer_id, uint32_t visibility
2199) MLN_NOEXCEPT;
2200
2215 mln_map map, mln_buffer_view layer_id, uint32_t* out_visibility
2216) MLN_NOEXCEPT;
2217
2218#ifdef __cplusplus
2219}
2220#endif
2221
2222#endif // MAPLIBRE_NATIVE_C_STYLE_H
mln_status
Definition base.h:39
Definition base.h:103
Definition style.h:295
void * user_data
Definition style.h:318
mln_custom_geometry_source_release_callback release_user_data
Definition style.h:340
mln_custom_geometry_source_tile_callback fetch_tile
Definition style.h:314
mln_custom_geometry_source_tile_callback cancel_tile
Definition style.h:316
mln_custom_mvt_vector_source_release_callback release_user_data
Definition style.h:377
mln_custom_mvt_vector_source_tile_callback cancel_tile
Definition style.h:358
mln_custom_mvt_vector_source_tile_callback fetch_tile
Definition style.h:356
void * user_data
Definition style.h:360
Definition style.h:243
bool synchronous_tiling
Definition style.h:290
double min_zoom
Definition style.h:247
double max_zoom
Definition style.h:249
mln_buffer_view cluster_properties
Definition style.h:259
uint32_t buffer
Definition style.h:263
double tolerance
Definition style.h:251
double cluster_max_zoom
Definition style.h:253
uint32_t cluster_radius
Definition style.h:265
bool line_metrics
Definition style.h:269
uint32_t cluster_min_points
Definition style.h:267
bool cluster
Definition style.h:279
uint32_t tile_size
Definition style.h:261
Definition style.h:106
Definition style.h:96
Definition map.h:370
Definition map.h:339
Definition style.h:381
const uint8_t * pixels
Definition style.h:388
uint32_t stride
Definition style.h:386
size_t byte_length
Definition style.h:390
Definition style.h:422
uint32_t text_fit_width
Definition style.h:438
uint32_t text_fit_height
Definition style.h:440
size_t stretch_x_count
Definition style.h:433
mln_image_content content
Definition style.h:436
uint32_t stride
Definition style.h:427
Definition style.h:394
uint32_t text_fit_width
Definition style.h:412
const mln_image_stretch * stretch_y
Definition style.h:407
float pixel_ratio
Definition style.h:416
mln_image_content content
Definition style.h:410
bool sdf
Definition style.h:418
const mln_image_stretch * stretch_x
Definition style.h:401
uint32_t text_fit_height
Definition style.h:414
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:202
size_t attribution_size
Definition style.h:196
uint32_t scheme
Definition style.h:206
size_t tile_count
Definition style.h:200
uint32_t fields
Definition style.h:190
mln_lat_lng_bounds bounds
Definition style.h:208
size_t url_size
Definition style.h:198
uint32_t tile_size
Definition style.h:210
double max_zoom
Definition style.h:204
uint32_t vector_encoding
Definition style.h:212
uint32_t raster_encoding
Definition style.h:214
Definition style.h:218
uint32_t raster_encoding
Definition style.h:232
uint32_t scheme
Definition style.h:225
uint32_t tile_size
Definition style.h:228
uint32_t vector_encoding
Definition style.h:230
Definition style.h:459
double duration_ms
Definition style.h:477
double delay_ms
Definition style.h:484
bool enable_placement_transitions
Definition style.h:496
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:349
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_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:344
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:307
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:302
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)