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 struct mln_style_id_list mln_style_id_list;
24
26typedef enum mln_style_source_type : uint32_t {
27 MLN_STYLE_SOURCE_TYPE_UNKNOWN = 0,
28 MLN_STYLE_SOURCE_TYPE_VECTOR = 1,
29 MLN_STYLE_SOURCE_TYPE_RASTER = 2,
30 MLN_STYLE_SOURCE_TYPE_RASTER_DEM = 3,
31 MLN_STYLE_SOURCE_TYPE_GEOJSON = 4,
32 MLN_STYLE_SOURCE_TYPE_IMAGE = 5,
33 MLN_STYLE_SOURCE_TYPE_VIDEO = 6,
34 MLN_STYLE_SOURCE_TYPE_ANNOTATIONS = 7,
35 MLN_STYLE_SOURCE_TYPE_CUSTOM_VECTOR = 8,
37
39typedef enum mln_style_tile_source_option_field : uint32_t {
40 MLN_STYLE_TILE_SOURCE_OPTION_MIN_ZOOM = 1U << 0U,
41 MLN_STYLE_TILE_SOURCE_OPTION_MAX_ZOOM = 1U << 1U,
42 MLN_STYLE_TILE_SOURCE_OPTION_ATTRIBUTION = 1U << 2U,
43 MLN_STYLE_TILE_SOURCE_OPTION_SCHEME = 1U << 3U,
44 MLN_STYLE_TILE_SOURCE_OPTION_BOUNDS = 1U << 4U,
45 MLN_STYLE_TILE_SOURCE_OPTION_TILE_SIZE = 1U << 5U,
46 MLN_STYLE_TILE_SOURCE_OPTION_VECTOR_ENCODING = 1U << 6U,
47 MLN_STYLE_TILE_SOURCE_OPTION_RASTER_ENCODING = 1U << 7U,
49
51typedef enum mln_style_tile_scheme : uint32_t {
52 MLN_STYLE_TILE_SCHEME_XYZ = 0,
53 MLN_STYLE_TILE_SCHEME_TMS = 1,
55
57typedef enum mln_style_vector_tile_encoding : uint32_t {
58 MLN_STYLE_VECTOR_TILE_ENCODING_MVT = 0,
59 MLN_STYLE_VECTOR_TILE_ENCODING_MLT = 1,
61
63typedef enum mln_style_raster_dem_encoding : uint32_t {
64 MLN_STYLE_RASTER_DEM_ENCODING_MAPBOX = 0,
65 MLN_STYLE_RASTER_DEM_ENCODING_TERRARIUM = 1,
67
69typedef enum mln_geojson_source_option_field : uint32_t {
70 MLN_GEOJSON_SOURCE_OPTION_MIN_ZOOM = 1U << 0U,
71 MLN_GEOJSON_SOURCE_OPTION_MAX_ZOOM = 1U << 1U,
72 MLN_GEOJSON_SOURCE_OPTION_TOLERANCE = 1U << 2U,
73 MLN_GEOJSON_SOURCE_OPTION_CLUSTER_MAX_ZOOM = 1U << 3U,
74 MLN_GEOJSON_SOURCE_OPTION_CLUSTER_PROPERTIES = 1U << 4U,
75 MLN_GEOJSON_SOURCE_OPTION_TILE_SIZE = 1U << 5U,
76 MLN_GEOJSON_SOURCE_OPTION_BUFFER = 1U << 6U,
77 MLN_GEOJSON_SOURCE_OPTION_CLUSTER_RADIUS = 1U << 7U,
78 MLN_GEOJSON_SOURCE_OPTION_CLUSTER_MIN_POINTS = 1U << 8U,
79 MLN_GEOJSON_SOURCE_OPTION_LINE_METRICS = 1U << 9U,
80 MLN_GEOJSON_SOURCE_OPTION_CLUSTER = 1U << 10U,
82
85 MLN_CUSTOM_GEOMETRY_SOURCE_OPTION_MIN_ZOOM = 1U << 0U,
86 MLN_CUSTOM_GEOMETRY_SOURCE_OPTION_MAX_ZOOM = 1U << 1U,
87 MLN_CUSTOM_GEOMETRY_SOURCE_OPTION_TOLERANCE = 1U << 2U,
88 MLN_CUSTOM_GEOMETRY_SOURCE_OPTION_TILE_SIZE = 1U << 3U,
89 MLN_CUSTOM_GEOMETRY_SOURCE_OPTION_BUFFER = 1U << 4U,
90 MLN_CUSTOM_GEOMETRY_SOURCE_OPTION_CLIP = 1U << 5U,
91 MLN_CUSTOM_GEOMETRY_SOURCE_OPTION_WRAP = 1U << 6U,
93
95typedef enum mln_style_image_option_field : uint32_t {
96 MLN_STYLE_IMAGE_OPTION_PIXEL_RATIO = 1U << 0U,
97 MLN_STYLE_IMAGE_OPTION_SDF = 1U << 1U,
99
101typedef enum mln_location_indicator_image_kind : uint32_t {
102 MLN_LOCATION_INDICATOR_IMAGE_KIND_TOP = 0,
103 MLN_LOCATION_INDICATOR_IMAGE_KIND_BEARING = 1,
104 MLN_LOCATION_INDICATOR_IMAGE_KIND_SHADOW = 2,
106
108typedef struct mln_style_source_info {
109 uint32_t size;
111 uint32_t type;
113 size_t id_size;
114 bool is_volatile;
115 bool has_attribution;
119
122 uint32_t size;
123 uint32_t fields;
124 double min_zoom;
125 double max_zoom;
126 mln_string_view attribution;
128 uint32_t scheme;
129 mln_lat_lng_bounds bounds;
131 uint32_t tile_size;
137
146 uint32_t size;
147 uint32_t fields;
149 double min_zoom;
151 double max_zoom;
153 double tolerance;
163 uint32_t tile_size;
165 uint32_t buffer;
184
186typedef struct mln_canonical_tile_id {
187 uint32_t z;
188 uint32_t x;
189 uint32_t y;
191
194 void* user_data, mln_canonical_tile_id tile_id
195);
196
199 uint32_t size;
200 uint32_t fields;
207 double min_zoom;
208 double max_zoom;
209 double tolerance;
210 uint32_t tile_size;
211 uint32_t buffer;
212 bool clip;
213 bool wrap;
215
218 uint32_t size;
219 uint32_t width;
220 uint32_t height;
222 uint32_t stride;
224 const uint8_t* pixels;
228
231 uint32_t size;
232 uint32_t fields;
236 bool sdf;
238
240typedef struct mln_style_image_info {
241 uint32_t size;
242 uint32_t width;
243 uint32_t height;
245 uint32_t stride;
246 size_t byte_length;
247 float pixel_ratio;
248 bool sdf;
250
254
258
262
266
270
273
284 const mln_style_id_list* list, size_t* out_count
285) MLN_NOEXCEPT;
286
300 const mln_style_id_list* list, size_t index, mln_string_view* out_id
301) MLN_NOEXCEPT;
302
304MLN_API void mln_style_id_list_destroy(mln_style_id_list* list) MLN_NOEXCEPT;
305
324 mln_map* map, mln_string_view source_id, const mln_json_value* source_json
325) MLN_NOEXCEPT;
326
343 mln_map* map, mln_string_view source_id, bool* out_removed
344) MLN_NOEXCEPT;
345
358 mln_map* map, mln_string_view source_id, bool* out_exists
359) MLN_NOEXCEPT;
360
376 mln_map* map, mln_string_view source_id, uint32_t* out_source_type,
377 bool* out_found
378) MLN_NOEXCEPT;
379
398 mln_map* map, mln_string_view source_id, mln_style_source_info* out_info,
399 bool* out_found
400) MLN_NOEXCEPT;
401
421 mln_map* map, mln_string_view source_id, char* out_attribution,
422 size_t attribution_capacity, size_t* out_attribution_size, bool* out_found
423) MLN_NOEXCEPT;
424
440 mln_map* map, mln_style_id_list** out_source_ids
441) MLN_NOEXCEPT;
442
459 mln_map* map, mln_string_view source_id, mln_string_view url,
460 const mln_geojson_source_options* options
461) MLN_NOEXCEPT;
462
487 mln_map* map, mln_string_view source_id, const mln_geojson* data,
488 const mln_geojson_source_options* options
489) MLN_NOEXCEPT;
490
507 mln_map* map, mln_string_view source_id, mln_string_view url
508) MLN_NOEXCEPT;
509
535 mln_map* map, mln_string_view source_id, const mln_geojson* data
536) MLN_NOEXCEPT;
537
554 mln_map* map, mln_string_view source_id, mln_string_view url,
555 const mln_style_tile_source_options* options
556) MLN_NOEXCEPT;
557
575 mln_map* map, mln_string_view source_id, const mln_string_view* tiles,
576 size_t tile_count, const mln_style_tile_source_options* options
577) MLN_NOEXCEPT;
578
594 mln_map* map, mln_string_view source_id, mln_string_view url,
595 const mln_style_tile_source_options* options
596) MLN_NOEXCEPT;
597
615 mln_map* map, mln_string_view source_id, const mln_string_view* tiles,
616 size_t tile_count, const mln_style_tile_source_options* options
617) MLN_NOEXCEPT;
618
635 mln_map* map, mln_string_view source_id, mln_string_view url,
636 const mln_style_tile_source_options* options
637) MLN_NOEXCEPT;
638
656 mln_map* map, mln_string_view source_id, const mln_string_view* tiles,
657 size_t tile_count, const mln_style_tile_source_options* options
658) MLN_NOEXCEPT;
659
692 mln_map* map, mln_string_view source_id,
694) MLN_NOEXCEPT;
695
712 mln_map* map, mln_string_view source_id, mln_canonical_tile_id tile_id,
713 const mln_geojson* data
714) MLN_NOEXCEPT;
715
729 mln_map* map, mln_string_view source_id, mln_canonical_tile_id tile_id
730) MLN_NOEXCEPT;
731
745 mln_map* map, mln_string_view source_id, mln_lat_lng_bounds bounds
746) MLN_NOEXCEPT;
747
768 mln_map* map, mln_string_view image_id,
770 const mln_style_image_options* options
771) MLN_NOEXCEPT;
772
788 mln_map* map, mln_string_view image_id, bool* out_removed
789) MLN_NOEXCEPT;
790
803 mln_map* map, mln_string_view image_id, bool* out_exists
804) MLN_NOEXCEPT;
805
822 mln_map* map, mln_string_view image_id, mln_style_image_info* out_info,
823 bool* out_found
824) MLN_NOEXCEPT;
825
847 mln_map* map, mln_string_view image_id, uint8_t* out_pixels,
848 size_t pixel_capacity, size_t* out_byte_length, bool* out_found
849) MLN_NOEXCEPT;
850
873 mln_map* map, mln_string_view source_id, const mln_lat_lng* coordinates,
874 size_t coordinate_count, mln_string_view url
875) MLN_NOEXCEPT;
876
899 mln_map* map, mln_string_view source_id, const mln_lat_lng* coordinates,
900 size_t coordinate_count, const mln_premultiplied_rgba8_image* image
901) MLN_NOEXCEPT;
902
919 mln_map* map, mln_string_view source_id, mln_string_view url
920) MLN_NOEXCEPT;
921
939 mln_map* map, mln_string_view source_id,
941) MLN_NOEXCEPT;
942
960 mln_map* map, mln_string_view source_id, const mln_lat_lng* coordinates,
961 size_t coordinate_count
962) MLN_NOEXCEPT;
963
983 mln_map* map, mln_string_view source_id, mln_lat_lng* out_coordinates,
984 size_t coordinate_capacity, size_t* out_coordinate_count, bool* out_found
985) MLN_NOEXCEPT;
986
1005 mln_map* map, mln_string_view layer_id, mln_string_view source_id,
1006 mln_string_view before_layer_id
1007) MLN_NOEXCEPT;
1008
1028 mln_map* map, mln_string_view layer_id, mln_string_view source_id,
1029 mln_string_view before_layer_id
1030) MLN_NOEXCEPT;
1031
1049 mln_map* map, mln_string_view layer_id, mln_string_view before_layer_id
1050) MLN_NOEXCEPT;
1051
1068 mln_map* map, mln_string_view layer_id, mln_lat_lng coordinate,
1069 double altitude
1070) MLN_NOEXCEPT;
1071
1085 mln_map* map, mln_string_view layer_id, double bearing
1086) MLN_NOEXCEPT;
1087
1101 mln_map* map, mln_string_view layer_id, double radius
1102) MLN_NOEXCEPT;
1103
1120 mln_map* map, mln_string_view layer_id, uint32_t image_kind,
1121 mln_string_view image_id
1122) MLN_NOEXCEPT;
1123
1150 mln_map* map, const mln_json_value* layer_json,
1151 mln_string_view before_layer_id
1152) MLN_NOEXCEPT;
1153
1169 mln_map* map, mln_string_view layer_id, bool* out_removed
1170) MLN_NOEXCEPT;
1171
1184 mln_map* map, mln_string_view layer_id, bool* out_exists
1185) MLN_NOEXCEPT;
1186
1202 mln_map* map, mln_string_view layer_id, mln_string_view* out_layer_type,
1203 bool* out_found
1204) MLN_NOEXCEPT;
1205
1221 mln_map* map, mln_style_id_list** out_layer_ids
1222) MLN_NOEXCEPT;
1223
1240 mln_map* map, mln_string_view layer_id, mln_string_view before_layer_id
1241) MLN_NOEXCEPT;
1242
1259 mln_map* map, mln_string_view layer_id, mln_json_snapshot** out_layer,
1260 bool* out_found
1261) MLN_NOEXCEPT;
1262
1278 mln_map* map, const mln_json_value* light_json
1279) MLN_NOEXCEPT;
1280
1298 mln_map* map, mln_string_view property_name, const mln_json_value* value
1299) MLN_NOEXCEPT;
1300
1318 mln_map* map, mln_string_view property_name, mln_json_snapshot** out_value
1319) MLN_NOEXCEPT;
1320
1340 mln_map* map, mln_string_view layer_id, mln_string_view property_name,
1341 const mln_json_value* value
1342) MLN_NOEXCEPT;
1343
1362 mln_map* map, mln_string_view layer_id, mln_string_view property_name,
1363 mln_json_snapshot** out_value
1364) MLN_NOEXCEPT;
1365
1384 mln_map* map, mln_string_view layer_id, const mln_json_value* filter
1385) MLN_NOEXCEPT;
1386
1404 mln_map* map, mln_string_view layer_id, mln_json_snapshot** out_filter
1405) MLN_NOEXCEPT;
1406
1407#ifdef __cplusplus
1408}
1409#endif
1410
1411#endif // MAPLIBRE_NATIVE_C_STYLE_H
mln_status
Definition base.h:39
Definition style.h:186
void * user_data
Definition style.h:206
mln_custom_geometry_source_tile_callback fetch_tile
Definition style.h:202
mln_custom_geometry_source_tile_callback cancel_tile
Definition style.h:204
Definition style.h:145
double min_zoom
Definition style.h:149
double max_zoom
Definition style.h:151
uint32_t buffer
Definition style.h:165
double tolerance
Definition style.h:153
double cluster_max_zoom
Definition style.h:155
uint32_t cluster_radius
Definition style.h:167
bool line_metrics
Definition style.h:171
const mln_json_value * cluster_properties
Definition style.h:161
uint32_t cluster_min_points
Definition style.h:169
bool cluster
Definition style.h:182
uint32_t tile_size
Definition style.h:163
Definition map.h:533
Definition map.h:447
Definition map.h:553
Definition map.h:316
Definition style.h:217
const uint8_t * pixels
Definition style.h:224
uint32_t stride
Definition style.h:222
size_t byte_length
Definition style.h:226
Definition map.h:325
Definition style.h:240
uint32_t stride
Definition style.h:245
Definition style.h:230
float pixel_ratio
Definition style.h:234
bool sdf
Definition style.h:236
Definition style.h:108
uint32_t type
Definition style.h:111
size_t id_size
Definition style.h:113
size_t attribution_size
Definition style.h:117
Definition style.h:121
uint32_t raster_encoding
Definition style.h:135
uint32_t scheme
Definition style.h:128
uint32_t tile_size
Definition style.h:131
uint32_t vector_encoding
Definition style.h:133
mln_style_image_option_field
Definition style.h:95
mln_status mln_map_set_layer_property(mln_map *map, mln_string_view layer_id, mln_string_view property_name, const mln_json_value *value)
mln_style_image_options mln_style_image_options_default(void)
mln_status mln_map_get_style_light_property(mln_map *map, mln_string_view property_name, mln_json_snapshot **out_value)
mln_status mln_map_add_custom_geometry_source(mln_map *map, mln_string_view source_id, const mln_custom_geometry_source_options *options)
mln_status mln_map_set_style_light_json(mln_map *map, const mln_json_value *light_json)
mln_status mln_map_add_vector_source_tiles(mln_map *map, mln_string_view source_id, const mln_string_view *tiles, size_t tile_count, const mln_style_tile_source_options *options)
mln_status mln_map_style_layer_exists(mln_map *map, mln_string_view layer_id, bool *out_exists)
mln_style_tile_source_option_field
Definition style.h:39
mln_status mln_map_set_geojson_source_data(mln_map *map, mln_string_view source_id, const mln_geojson *data)
mln_status mln_map_move_style_layer(mln_map *map, mln_string_view layer_id, mln_string_view before_layer_id)
mln_status mln_map_set_layer_filter(mln_map *map, mln_string_view layer_id, const mln_json_value *filter)
mln_status mln_map_add_hillshade_layer(mln_map *map, mln_string_view layer_id, mln_string_view source_id, mln_string_view before_layer_id)
mln_status mln_map_add_image_source_url(mln_map *map, mln_string_view source_id, const mln_lat_lng *coordinates, size_t coordinate_count, mln_string_view url)
mln_status mln_map_set_image_source_url(mln_map *map, mln_string_view source_id, mln_string_view url)
mln_status mln_map_set_style_image(mln_map *map, mln_string_view image_id, const mln_premultiplied_rgba8_image *image, const mln_style_image_options *options)
mln_status mln_map_get_style_image_info(mln_map *map, mln_string_view image_id, mln_style_image_info *out_info, bool *out_found)
mln_status mln_map_add_raster_source_url(mln_map *map, mln_string_view source_id, mln_string_view url, const mln_style_tile_source_options *options)
mln_status mln_map_add_geojson_source_url(mln_map *map, mln_string_view source_id, mln_string_view url, const mln_geojson_source_options *options)
mln_status mln_map_style_image_exists(mln_map *map, mln_string_view image_id, bool *out_exists)
mln_status mln_map_add_raster_dem_source_tiles(mln_map *map, mln_string_view source_id, const mln_string_view *tiles, size_t tile_count, const mln_style_tile_source_options *options)
mln_status mln_map_set_location_indicator_accuracy_radius(mln_map *map, mln_string_view layer_id, double radius)
mln_status mln_map_remove_style_layer(mln_map *map, mln_string_view layer_id, bool *out_removed)
mln_status mln_map_get_style_layer_json(mln_map *map, mln_string_view layer_id, mln_json_snapshot **out_layer, bool *out_found)
mln_status mln_map_get_style_layer_type(mln_map *map, mln_string_view layer_id, mln_string_view *out_layer_type, bool *out_found)
mln_status mln_map_get_image_source_coordinates(mln_map *map, mln_string_view source_id, mln_lat_lng *out_coordinates, size_t coordinate_capacity, size_t *out_coordinate_count, bool *out_found)
mln_premultiplied_rgba8_image mln_premultiplied_rgba8_image_default(void)
mln_status mln_map_set_geojson_source_url(mln_map *map, mln_string_view source_id, mln_string_view url)
mln_geojson_source_options mln_geojson_source_options_default(void)
mln_status mln_map_remove_style_image(mln_map *map, mln_string_view image_id, bool *out_removed)
mln_status mln_map_set_location_indicator_bearing(mln_map *map, mln_string_view layer_id, double bearing)
mln_status mln_map_set_image_source_image(mln_map *map, mln_string_view source_id, const mln_premultiplied_rgba8_image *image)
mln_style_vector_tile_encoding
Definition style.h:57
mln_status mln_map_set_location_indicator_location(mln_map *map, mln_string_view layer_id, mln_lat_lng coordinate, double altitude)
mln_status mln_map_add_color_relief_layer(mln_map *map, mln_string_view layer_id, mln_string_view source_id, mln_string_view before_layer_id)
mln_status mln_map_invalidate_custom_geometry_source_region(mln_map *map, mln_string_view source_id, mln_lat_lng_bounds bounds)
mln_status mln_map_get_layer_property(mln_map *map, mln_string_view layer_id, mln_string_view property_name, mln_json_snapshot **out_value)
mln_status mln_map_copy_style_image_premultiplied_rgba8(mln_map *map, mln_string_view image_id, uint8_t *out_pixels, size_t pixel_capacity, size_t *out_byte_length, bool *out_found)
mln_style_tile_scheme
Definition style.h:51
mln_status mln_map_list_style_layer_ids(mln_map *map, mln_style_id_list **out_layer_ids)
void mln_style_id_list_destroy(mln_style_id_list *list)
mln_status mln_map_remove_style_source(mln_map *map, mln_string_view source_id, bool *out_removed)
mln_status mln_map_add_location_indicator_layer(mln_map *map, mln_string_view layer_id, mln_string_view before_layer_id)
mln_style_source_type
Definition style.h:26
mln_custom_geometry_source_options mln_custom_geometry_source_options_default(void)
mln_status mln_map_style_source_exists(mln_map *map, mln_string_view source_id, bool *out_exists)
mln_status mln_map_set_style_light_property(mln_map *map, mln_string_view property_name, const mln_json_value *value)
mln_status mln_map_get_style_source_info(mln_map *map, mln_string_view source_id, mln_style_source_info *out_info, bool *out_found)
mln_status mln_map_get_style_source_type(mln_map *map, mln_string_view source_id, uint32_t *out_source_type, bool *out_found)
mln_status mln_map_list_style_source_ids(mln_map *map, mln_style_id_list **out_source_ids)
mln_status mln_map_add_vector_source_url(mln_map *map, mln_string_view source_id, mln_string_view url, const mln_style_tile_source_options *options)
mln_status mln_map_set_location_indicator_image_name(mln_map *map, mln_string_view layer_id, uint32_t image_kind, mln_string_view image_id)
mln_status mln_map_copy_style_source_attribution(mln_map *map, mln_string_view source_id, char *out_attribution, size_t attribution_capacity, size_t *out_attribution_size, bool *out_found)
mln_style_tile_source_options mln_style_tile_source_options_default(void)
mln_style_raster_dem_encoding
Definition style.h:63
mln_style_image_info mln_style_image_info_default(void)
mln_status mln_style_id_list_get(const mln_style_id_list *list, size_t index, mln_string_view *out_id)
mln_status mln_map_get_layer_filter(mln_map *map, mln_string_view layer_id, mln_json_snapshot **out_filter)
mln_status mln_style_id_list_count(const mln_style_id_list *list, size_t *out_count)
mln_custom_geometry_source_option_field
Definition style.h:84
mln_status mln_map_add_raster_source_tiles(mln_map *map, mln_string_view source_id, const mln_string_view *tiles, size_t tile_count, const mln_style_tile_source_options *options)
mln_status mln_map_add_raster_dem_source_url(mln_map *map, mln_string_view source_id, mln_string_view url, const mln_style_tile_source_options *options)
mln_status mln_map_invalidate_custom_geometry_source_tile(mln_map *map, mln_string_view source_id, mln_canonical_tile_id tile_id)
mln_location_indicator_image_kind
Definition style.h:101
mln_status mln_map_set_image_source_coordinates(mln_map *map, mln_string_view source_id, const mln_lat_lng *coordinates, size_t coordinate_count)
mln_status mln_map_set_custom_geometry_source_tile_data(mln_map *map, mln_string_view source_id, mln_canonical_tile_id tile_id, const mln_geojson *data)
mln_geojson_source_option_field
Definition style.h:69
mln_status mln_map_add_geojson_source_data(mln_map *map, mln_string_view source_id, const mln_geojson *data, const mln_geojson_source_options *options)
mln_status mln_map_add_style_source_json(mln_map *map, mln_string_view source_id, const mln_json_value *source_json)
mln_status mln_map_add_style_layer_json(mln_map *map, const mln_json_value *layer_json, mln_string_view before_layer_id)
mln_status mln_map_add_image_source_image(mln_map *map, mln_string_view source_id, const mln_lat_lng *coordinates, size_t coordinate_count, const mln_premultiplied_rgba8_image *image)
void(* mln_custom_geometry_source_tile_callback)(void *user_data, mln_canonical_tile_id tile_id)
Definition style.h:193