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
25
26#ifndef MAPLIBRE_NATIVE_C_STYLE_H
27#define MAPLIBRE_NATIVE_C_STYLE_H
28
29#ifndef __cplusplus
30#include <stdbool.h>
31#endif
32
33#include <stddef.h>
34#include <stdint.h>
35
36#include "base.h"
37#include "completion.h"
38#include "map.h"
39
40#ifdef __cplusplus
41extern "C" {
42#endif
43
58MLN_BINDING("execution=command")
60 mln_map map, mln_buffer_view property_name,
61 mln_buffer_view value MLN_BINDING("encoding=json"),
62 const mln_completion* completion, mln_diagnostic* out_diagnostic
63) MLN_NOEXCEPT;
74MLN_BINDING("execution=query;result=mln_buffer_view;encoding=json")
76 mln_map map, const mln_completion* completion, mln_diagnostic* out_diagnostic
77) MLN_NOEXCEPT;
78
80typedef enum mln_style_source_type : uint32_t {
81 MLN_STYLE_SOURCE_TYPE_UNKNOWN = 0,
82 MLN_STYLE_SOURCE_TYPE_VECTOR = 1,
83 MLN_STYLE_SOURCE_TYPE_RASTER = 2,
84 MLN_STYLE_SOURCE_TYPE_RASTER_DEM = 3,
85 MLN_STYLE_SOURCE_TYPE_GEOJSON = 4,
86 MLN_STYLE_SOURCE_TYPE_IMAGE = 5,
87 MLN_STYLE_SOURCE_TYPE_VIDEO = 6,
88 MLN_STYLE_SOURCE_TYPE_ANNOTATIONS = 7,
89 MLN_STYLE_SOURCE_TYPE_CUSTOM_VECTOR = 8,
90 MLN_STYLE_SOURCE_TYPE_CUSTOM_MVT_VECTOR = 9,
92
112
114typedef enum mln_style_tile_scheme : uint32_t {
115 MLN_STYLE_TILE_SCHEME_XYZ = 0,
116 MLN_STYLE_TILE_SCHEME_TMS = 1,
118
120typedef enum mln_style_vector_tile_encoding : uint32_t {
121 MLN_STYLE_VECTOR_TILE_ENCODING_MVT = 0,
122 MLN_STYLE_VECTOR_TILE_ENCODING_MLT = 1,
124
126typedef enum mln_style_raster_dem_encoding : uint32_t {
127 MLN_STYLE_RASTER_DEM_ENCODING_MAPBOX = 0,
128 MLN_STYLE_RASTER_DEM_ENCODING_TERRARIUM = 1,
130
140typedef struct mln_image_stretch {
141 float from;
142 float to;
144
150typedef struct mln_image_content {
151 float left;
152 float top;
153 float right;
154 float bottom;
156
158typedef enum mln_style_image_text_fit : uint32_t {
159 MLN_STYLE_IMAGE_TEXT_FIT_STRETCH_OR_SHRINK = 0,
160 MLN_STYLE_IMAGE_TEXT_FIT_STRETCH_ONLY = 1,
161 MLN_STYLE_IMAGE_TEXT_FIT_PROPORTIONAL = 2,
163
165typedef enum mln_style_layer_visibility : uint32_t {
166 MLN_STYLE_LAYER_VISIBILITY_VISIBLE = 0,
167 MLN_STYLE_LAYER_VISIBILITY_NONE = 1,
169
171typedef enum MLN_BINDING(
172 "kind=bitmask"
174 MLN_GEOJSON_SOURCE_OPTION_MIN_ZOOM = 1U << 0U,
175 MLN_GEOJSON_SOURCE_OPTION_MAX_ZOOM = 1U << 1U,
176 MLN_GEOJSON_SOURCE_OPTION_TOLERANCE = 1U << 2U,
177 MLN_GEOJSON_SOURCE_OPTION_CLUSTER_MAX_ZOOM = 1U << 3U,
178 MLN_GEOJSON_SOURCE_OPTION_CLUSTER_PROPERTIES = 1U << 4U,
179 MLN_GEOJSON_SOURCE_OPTION_BUFFER = 1U << 5U,
180 MLN_GEOJSON_SOURCE_OPTION_CLUSTER_RADIUS = 1U << 6U,
181 MLN_GEOJSON_SOURCE_OPTION_CLUSTER_MIN_POINTS = 1U << 7U,
182 MLN_GEOJSON_SOURCE_OPTION_LINE_METRICS = 1U << 8U,
183 MLN_GEOJSON_SOURCE_OPTION_CLUSTER = 1U << 9U,
184 MLN_GEOJSON_SOURCE_OPTION_SYNCHRONOUS_TILING = 1U << 10U,
186
188typedef enum MLN_BINDING(
189 "kind=bitmask"
191 MLN_CUSTOM_GEOMETRY_SOURCE_OPTION_MIN_ZOOM = 1U << 0U,
192 MLN_CUSTOM_GEOMETRY_SOURCE_OPTION_MAX_ZOOM = 1U << 1U,
193 MLN_CUSTOM_GEOMETRY_SOURCE_OPTION_TOLERANCE = 1U << 2U,
194 MLN_CUSTOM_GEOMETRY_SOURCE_OPTION_TILE_SIZE = 1U << 3U,
195 MLN_CUSTOM_GEOMETRY_SOURCE_OPTION_BUFFER = 1U << 4U,
196 MLN_CUSTOM_GEOMETRY_SOURCE_OPTION_CLIP = 1U << 5U,
197 MLN_CUSTOM_GEOMETRY_SOURCE_OPTION_WRAP = 1U << 6U,
199
201typedef enum MLN_BINDING(
202 "kind=bitmask"
204 MLN_CUSTOM_MVT_VECTOR_SOURCE_OPTION_MIN_ZOOM = 1U << 0U,
205 MLN_CUSTOM_MVT_VECTOR_SOURCE_OPTION_MAX_ZOOM = 1U << 1U,
207
209typedef enum MLN_BINDING(
210 "kind=bitmask"
211) mln_style_image_option_field : uint32_t {
212 MLN_STYLE_IMAGE_OPTION_PIXEL_RATIO = 1U << 0U,
213 MLN_STYLE_IMAGE_OPTION_SDF = 1U << 1U,
214 MLN_STYLE_IMAGE_OPTION_STRETCH_X = 1U << 2U,
215 MLN_STYLE_IMAGE_OPTION_STRETCH_Y = 1U << 3U,
216 MLN_STYLE_IMAGE_OPTION_CONTENT = 1U << 4U,
217 MLN_STYLE_IMAGE_OPTION_TEXT_FIT_WIDTH = 1U << 5U,
218 MLN_STYLE_IMAGE_OPTION_TEXT_FIT_HEIGHT = 1U << 6U,
220
230
232typedef enum MLN_BINDING(
233 "kind=bitmask"
235 MLN_STYLE_TRANSITION_OPTION_DURATION = 1U << 0U,
236 MLN_STYLE_TRANSITION_OPTION_DELAY = 1U << 1U,
237 MLN_STYLE_TRANSITION_OPTION_ENABLE_PLACEMENT_TRANSITIONS = 1U << 2U,
239
247 const mln_buffer_view* tile_urls MLN_BINDING("length=tile_url_count");
248 size_t tile_url_count;
250 double min_zoom;
252 double max_zoom;
254 uint32_t scheme MLN_BINDING("enum=mln_style_tile_scheme");
256
263typedef struct mln_style_source_info {
267 uint32_t type MLN_BINDING("enum=mln_style_source_type");
269 uint32_t fields MLN_BINDING("enum=mln_style_source_info_field");
274 MLN_BINDING("mask=fields;bit=MLN_STYLE_SOURCE_INFO_ATTRIBUTION");
276 mln_buffer_view url MLN_BINDING("mask=fields;bit=MLN_STYLE_SOURCE_INFO_URL");
279 MLN_BINDING("mask=fields;bit=MLN_STYLE_SOURCE_INFO_TILEJSON");
282 MLN_BINDING("mask=fields;bit=MLN_STYLE_SOURCE_INFO_BOUNDS");
284 uint32_t tile_size
285 MLN_BINDING("mask=fields;bit=MLN_STYLE_SOURCE_INFO_TILE_SIZE");
288 "mask=fields;bit=MLN_STYLE_SOURCE_INFO_VECTOR_ENCODING;"
289 "enum=mln_style_vector_tile_encoding"
290 );
293 "mask=fields;bit=MLN_STYLE_SOURCE_INFO_RASTER_ENCODING;"
294 "enum=mln_style_raster_dem_encoding"
295 );
297
319
328 uint32_t size;
329 uint32_t fields MLN_BINDING("enum=mln_geojson_source_option_field");
331 double min_zoom
332 MLN_BINDING("mask=fields;bit=MLN_GEOJSON_SOURCE_OPTION_MIN_ZOOM");
334 double max_zoom
335 MLN_BINDING("mask=fields;bit=MLN_GEOJSON_SOURCE_OPTION_MAX_ZOOM");
338 MLN_BINDING("mask=fields;bit=MLN_GEOJSON_SOURCE_OPTION_TOLERANCE");
341 MLN_BINDING("mask=fields;bit=MLN_GEOJSON_SOURCE_OPTION_CLUSTER_MAX_ZOOM");
348 "encoding=json;mask=fields;bit=MLN_GEOJSON_SOURCE_OPTION_CLUSTER_PROPERTIES"
349 );
351 uint32_t buffer
352 MLN_BINDING("mask=fields;bit=MLN_GEOJSON_SOURCE_OPTION_BUFFER");
355 MLN_BINDING("mask=fields;bit=MLN_GEOJSON_SOURCE_OPTION_CLUSTER_RADIUS");
358 MLN_BINDING("mask=fields;bit=MLN_GEOJSON_SOURCE_OPTION_CLUSTER_MIN_POINTS");
361 MLN_BINDING("mask=fields;bit=MLN_GEOJSON_SOURCE_OPTION_LINE_METRICS");
370 bool cluster MLN_BINDING("mask=fields;bit=MLN_GEOJSON_SOURCE_OPTION_CLUSTER");
379 MLN_BINDING("mask=fields;bit=MLN_GEOJSON_SOURCE_OPTION_SYNCHRONOUS_TILING");
381
384typedef struct mln_canonical_tile_id {
385 uint32_t z;
386 uint32_t x;
387 uint32_t y;
389
396MLN_BINDING("delivery=MLN_DELIVERY_TYPE_CUSTOM_SOURCE_FETCH_TILE")
398 void* user_data, mln_canonical_tile_id tile_id
399);
400
408MLN_BINDING("delivery=MLN_DELIVERY_TYPE_CUSTOM_SOURCE_CANCEL_TILE")
410 void* user_data, mln_canonical_tile_id tile_id
411);
412
415 uint32_t size;
416 uint32_t fields MLN_BINDING("enum=mln_custom_geometry_source_option_field");
421 MLN_BINDING("nullable=true");
426 void* user_data MLN_BINDING("kind=context");
427 double min_zoom
428 MLN_BINDING("mask=fields;bit=MLN_CUSTOM_GEOMETRY_SOURCE_OPTION_MIN_ZOOM");
429 double max_zoom
430 MLN_BINDING("mask=fields;bit=MLN_CUSTOM_GEOMETRY_SOURCE_OPTION_MAX_ZOOM");
431 double tolerance
432 MLN_BINDING("mask=fields;bit=MLN_CUSTOM_GEOMETRY_SOURCE_OPTION_TOLERANCE");
433 uint32_t tile_size
434 MLN_BINDING("mask=fields;bit=MLN_CUSTOM_GEOMETRY_SOURCE_OPTION_TILE_SIZE");
435 uint32_t buffer
436 MLN_BINDING("mask=fields;bit=MLN_CUSTOM_GEOMETRY_SOURCE_OPTION_BUFFER");
437 bool clip
438 MLN_BINDING("mask=fields;bit=MLN_CUSTOM_GEOMETRY_SOURCE_OPTION_CLIP");
439 bool wrap
440 MLN_BINDING("mask=fields;bit=MLN_CUSTOM_GEOMETRY_SOURCE_OPTION_WRAP");
468 mln_delivery_queue queue MLN_BINDING("kind=delivery_queue");
470 "kind=callback_registration;release=release_user_data"
472
475 uint32_t size;
476 uint32_t fields MLN_BINDING("enum=mln_custom_mvt_vector_source_option_field");
481 MLN_BINDING("nullable=true");
486 void* user_data MLN_BINDING("kind=context");
487 double min_zoom
488 MLN_BINDING("mask=fields;bit=MLN_CUSTOM_MVT_VECTOR_SOURCE_OPTION_MIN_ZOOM");
489 double max_zoom
490 MLN_BINDING("mask=fields;bit=MLN_CUSTOM_MVT_VECTOR_SOURCE_OPTION_MAX_ZOOM");
518 mln_delivery_queue queue MLN_BINDING("kind=delivery_queue");
520 "kind=callback_registration;release=release_user_data"
522
525 uint32_t size;
526 uint32_t width;
527 uint32_t height;
529 uint32_t stride;
531 const uint8_t* pixels MLN_BINDING("length=byte_length;encoding=bytes");
535
538 uint32_t size;
539 uint32_t fields MLN_BINDING("enum=mln_style_image_option_field");
545 "length=stretch_x_count;mask=fields;"
546 "bit=MLN_STYLE_IMAGE_OPTION_STRETCH_X"
547 );
548 size_t stretch_x_count;
554 "length=stretch_y_count;mask=fields;"
555 "bit=MLN_STYLE_IMAGE_OPTION_STRETCH_Y"
556 );
557 size_t stretch_y_count;
560 MLN_BINDING("mask=fields;bit=MLN_STYLE_IMAGE_OPTION_CONTENT");
563 "mask=fields;bit=MLN_STYLE_IMAGE_OPTION_TEXT_FIT_WIDTH;"
564 "enum=mln_style_image_text_fit"
565 );
568 "mask=fields;bit=MLN_STYLE_IMAGE_OPTION_TEXT_FIT_HEIGHT;"
569 "enum=mln_style_image_text_fit"
570 );
573 MLN_BINDING("mask=fields;bit=MLN_STYLE_IMAGE_OPTION_PIXEL_RATIO");
575 bool sdf MLN_BINDING("mask=fields;bit=MLN_STYLE_IMAGE_OPTION_SDF");
577
584typedef struct mln_style_image_info {
586 uint32_t width;
588 uint32_t height;
590 uint32_t fields MLN_BINDING("enum=mln_style_image_info_field");
597 const mln_image_stretch* stretch_x MLN_BINDING("length=stretch_x_count");
598 size_t stretch_x_count;
600 const mln_image_stretch* stretch_y MLN_BINDING("length=stretch_y_count");
601 size_t stretch_y_count;
604 MLN_BINDING("mask=fields;bit=MLN_STYLE_IMAGE_INFO_CONTENT");
607 "mask=fields;bit=MLN_STYLE_IMAGE_INFO_TEXT_FIT_WIDTH;"
608 "enum=mln_style_image_text_fit"
609 );
612 "mask=fields;bit=MLN_STYLE_IMAGE_INFO_TEXT_FIT_HEIGHT;"
613 "enum=mln_style_image_text_fit"
614 );
618 bool sdf;
620
633 uint32_t size;
634 uint32_t fields MLN_BINDING("enum=mln_style_transition_option_field");
650 MLN_BINDING("mask=fields;bit=MLN_STYLE_TRANSITION_OPTION_DURATION");
657 double delay_ms
658 MLN_BINDING("mask=fields;bit=MLN_STYLE_TRANSITION_OPTION_DELAY");
670 "mask=fields;bit=MLN_STYLE_TRANSITION_OPTION_ENABLE_PLACEMENT_TRANSITIONS"
671 );
673
677
681
685
689
693
697
723MLN_BINDING("execution=command")
725 mln_map map, mln_buffer_view source_id,
726 mln_buffer_view source_json MLN_BINDING("encoding=json"),
727 const mln_completion* completion, mln_diagnostic* out_diagnostic
728) MLN_NOEXCEPT;
729
747MLN_BINDING("execution=command")
749 mln_map map, mln_buffer_view source_id, const mln_completion* completion,
750 mln_diagnostic* out_diagnostic
751) MLN_NOEXCEPT;
752
768MLN_BINDING("execution=query;result=mln_style_source_info;nullable=true")
770 mln_map map, mln_buffer_view source_id, const mln_completion* completion,
771 mln_diagnostic* out_diagnostic
772) MLN_NOEXCEPT;
773
793MLN_BINDING("execution=command")
795 mln_map map, mln_buffer_view source_id, bool is_volatile,
796 const mln_completion* completion, mln_diagnostic* out_diagnostic
797) MLN_NOEXCEPT;
798
814MLN_BINDING("execution=query;result=mln_style_source_info;shape=array")
816 mln_map map, const mln_completion* completion, mln_diagnostic* out_diagnostic
817) MLN_NOEXCEPT;
818
837MLN_BINDING("execution=command")
839 mln_map map, mln_buffer_view source_id, mln_buffer_view url,
840 const mln_geojson_source_options* options MLN_BINDING("nullable=true"),
841 const mln_completion* completion, mln_diagnostic* out_diagnostic
842) MLN_NOEXCEPT;
843
872 mln_buffer_view data MLN_BINDING("encoding=bytes"),
873 const mln_geojson_source_options* options MLN_BINDING("nullable=true"),
874 mln_geojson_source_data* out_data MLN_BINDING("direction=out"),
875 mln_diagnostic* out_diagnostic
876) MLN_NOEXCEPT;
877
887) MLN_NOEXCEPT;
888
908MLN_BINDING("execution=command")
911 const mln_completion* completion, mln_diagnostic* out_diagnostic
912) MLN_NOEXCEPT;
913
931MLN_BINDING("execution=command")
933 mln_map map, mln_buffer_view source_id, mln_buffer_view url,
934 const mln_completion* completion, mln_diagnostic* out_diagnostic
935) MLN_NOEXCEPT;
936
962MLN_BINDING("execution=command")
965 const mln_completion* completion, mln_diagnostic* out_diagnostic
966) MLN_NOEXCEPT;
967
987MLN_BINDING("execution=command")
989 mln_map map, mln_buffer_view source_id, bool enabled,
990 const mln_completion* completion, mln_diagnostic* out_diagnostic
991) MLN_NOEXCEPT;
992
1032MLN_BINDING("execution=command")
1034 mln_map map, mln_buffer_view source_id,
1036 const mln_completion* completion, mln_diagnostic* out_diagnostic
1037) MLN_NOEXCEPT;
1038
1062MLN_BINDING("execution=command")
1064 mln_map map, mln_buffer_view source_id, mln_canonical_tile_id tile_id,
1065 mln_buffer_view data MLN_BINDING("encoding=json"),
1066 const mln_completion* completion, mln_diagnostic* out_diagnostic
1067) MLN_NOEXCEPT;
1068
1093MLN_BINDING("execution=command")
1095 mln_map map, mln_buffer_view source_id, mln_canonical_tile_id tile_id,
1096 mln_buffer_view message, const mln_completion* completion,
1097 mln_diagnostic* out_diagnostic
1098) MLN_NOEXCEPT;
1099
1115MLN_BINDING("execution=command")
1117 mln_map map, mln_buffer_view source_id, mln_canonical_tile_id tile_id,
1118 const mln_completion* completion, mln_diagnostic* out_diagnostic
1119) MLN_NOEXCEPT;
1120
1136MLN_BINDING("execution=command")
1138 mln_map map, mln_buffer_view source_id, mln_lat_lng_bounds bounds,
1139 const mln_completion* completion, mln_diagnostic* out_diagnostic
1140) MLN_NOEXCEPT;
1141
1183MLN_BINDING("execution=command")
1185 mln_map map, mln_buffer_view source_id,
1187 const mln_completion* completion, mln_diagnostic* out_diagnostic
1188) MLN_NOEXCEPT;
1189
1214MLN_BINDING("execution=command")
1216 mln_map map, mln_buffer_view source_id, mln_canonical_tile_id tile_id,
1217 mln_buffer_view data MLN_BINDING("encoding=bytes"),
1218 const mln_completion* completion, mln_diagnostic* out_diagnostic
1219) MLN_NOEXCEPT;
1220
1245MLN_BINDING("execution=command")
1247 mln_map map, mln_buffer_view source_id, mln_canonical_tile_id tile_id,
1248 mln_buffer_view message, const mln_completion* completion,
1249 mln_diagnostic* out_diagnostic
1250) MLN_NOEXCEPT;
1251
1267MLN_BINDING("execution=command")
1269 mln_map map, mln_buffer_view source_id, mln_canonical_tile_id tile_id,
1270 const mln_completion* completion, mln_diagnostic* out_diagnostic
1271) MLN_NOEXCEPT;
1272
1291MLN_BINDING("execution=command")
1293 mln_map map, mln_buffer_view image_id,
1294 const mln_premultiplied_rgba8_image* image,
1295 const mln_style_image_options* options MLN_BINDING("nullable=true"),
1296 const mln_completion* completion, mln_diagnostic* out_diagnostic
1297) MLN_NOEXCEPT;
1298
1315MLN_BINDING("execution=command")
1317 mln_map map, mln_buffer_view image_id, const mln_completion* completion,
1318 mln_diagnostic* out_diagnostic
1319) MLN_NOEXCEPT;
1320
1335MLN_BINDING("execution=query;result=mln_style_image_info;nullable=true")
1337 mln_map map, mln_buffer_view image_id, const mln_completion* completion,
1338 mln_diagnostic* out_diagnostic
1339) MLN_NOEXCEPT;
1340
1363MLN_BINDING("execution=command")
1365 mln_map map, mln_buffer_view source_id,
1366 const mln_lat_lng* coordinates MLN_BINDING("length=coordinate_count"),
1367 size_t coordinate_count, mln_buffer_view url,
1368 const mln_completion* completion, mln_diagnostic* out_diagnostic
1369) MLN_NOEXCEPT;
1370
1394MLN_BINDING("execution=command")
1396 mln_map map, mln_buffer_view source_id,
1397 const mln_lat_lng* coordinates MLN_BINDING("length=coordinate_count"),
1398 size_t coordinate_count, const mln_premultiplied_rgba8_image* image,
1399 const mln_completion* completion, mln_diagnostic* out_diagnostic
1400) MLN_NOEXCEPT;
1401
1419MLN_BINDING("execution=command")
1421 mln_map map, mln_buffer_view source_id, mln_buffer_view url,
1422 const mln_completion* completion, mln_diagnostic* out_diagnostic
1423) MLN_NOEXCEPT;
1424
1444MLN_BINDING("execution=command")
1446 mln_map map, mln_buffer_view source_id,
1447 const mln_premultiplied_rgba8_image* image, const mln_completion* completion,
1448 mln_diagnostic* out_diagnostic
1449) MLN_NOEXCEPT;
1450
1470MLN_BINDING("execution=command")
1472 mln_map map, mln_buffer_view source_id,
1473 const mln_lat_lng* coordinates MLN_BINDING("length=coordinate_count"),
1474 size_t coordinate_count, const mln_completion* completion,
1475 mln_diagnostic* out_diagnostic
1476) MLN_NOEXCEPT;
1477
1495MLN_BINDING("execution=query;result=mln_lat_lng;shape=array")
1497 mln_map map, mln_buffer_view source_id, const mln_completion* completion,
1498 mln_diagnostic* out_diagnostic
1499) MLN_NOEXCEPT;
1500
1522MLN_BINDING("execution=command")
1524 mln_map map, mln_buffer_view layer_json MLN_BINDING("encoding=json"),
1525 mln_buffer_view before_layer_id MLN_BINDING("optional=empty"),
1526 const mln_completion* completion, mln_diagnostic* out_diagnostic
1527) MLN_NOEXCEPT;
1528
1545MLN_BINDING("execution=command")
1547 mln_map map, mln_buffer_view layer_id, const mln_completion* completion,
1548 mln_diagnostic* out_diagnostic
1549) MLN_NOEXCEPT;
1550
1565MLN_BINDING("execution=query;result=mln_style_layer_info;nullable=true")
1567 mln_map map, mln_buffer_view layer_id, const mln_completion* completion,
1568 mln_diagnostic* out_diagnostic
1569) MLN_NOEXCEPT;
1570
1585MLN_BINDING("execution=query;result=mln_style_layer_info;shape=array")
1587 mln_map map, const mln_completion* completion, mln_diagnostic* out_diagnostic
1588) MLN_NOEXCEPT;
1589
1607MLN_BINDING("execution=command")
1609 mln_map map, mln_buffer_view layer_id,
1610 mln_buffer_view before_layer_id MLN_BINDING("optional=empty"),
1611 const mln_completion* completion, mln_diagnostic* out_diagnostic
1612) MLN_NOEXCEPT;
1613
1628 "execution=query;result=mln_buffer_view;nullable=true;"
1629 "encoding=json"
1630)
1632 mln_map map, mln_buffer_view layer_id, const mln_completion* completion,
1633 mln_diagnostic* out_diagnostic
1634) MLN_NOEXCEPT;
1635
1651MLN_BINDING("execution=command")
1653 mln_map map, mln_buffer_view light_json MLN_BINDING("encoding=json"),
1654 const mln_completion* completion, mln_diagnostic* out_diagnostic
1655) MLN_NOEXCEPT;
1656
1674MLN_BINDING("execution=command")
1676 mln_map map, mln_buffer_view property_name,
1677 mln_buffer_view value MLN_BINDING("encoding=json"),
1678 const mln_completion* completion, mln_diagnostic* out_diagnostic
1679) MLN_NOEXCEPT;
1680
1695 "execution=query;result=mln_buffer_view;nullable=true;"
1696 "encoding=json"
1697)
1699 mln_map map, mln_buffer_view property_name, const mln_completion* completion,
1700 mln_diagnostic* out_diagnostic
1701) MLN_NOEXCEPT;
1702
1726MLN_BINDING("execution=command")
1728 mln_map map, const mln_style_transition_options* options,
1729 const mln_completion* completion, mln_diagnostic* out_diagnostic
1730) MLN_NOEXCEPT;
1731
1754MLN_BINDING("execution=query;result=mln_style_transition_options")
1756 mln_map map, const mln_completion* completion, mln_diagnostic* out_diagnostic
1757) MLN_NOEXCEPT;
1758
1787MLN_BINDING("execution=command")
1789 mln_map map, mln_buffer_view layer_id, mln_buffer_view property_name,
1790 mln_buffer_view value MLN_BINDING("encoding=json"),
1791 const mln_completion* completion, mln_diagnostic* out_diagnostic
1792) MLN_NOEXCEPT;
1793
1816 "execution=query;result=mln_buffer_view;nullable=true;"
1817 "encoding=json"
1818)
1820 mln_map map, mln_buffer_view layer_id, mln_buffer_view property_name,
1821 const mln_completion* completion, mln_diagnostic* out_diagnostic
1822) MLN_NOEXCEPT;
1823
1824#ifdef __cplusplus
1825}
1826#endif
1827
1828#endif // MAPLIBRE_NATIVE_C_STYLE_H
uint64_t mln_geojson_source_data
Definition base.h:136
uint64_t mln_delivery_queue
Definition base.h:178
uint64_t mln_map
Definition base.h:131
void(*) mln_user_data_release(void *user_data)
Definition base.h:205
mln_status
Definition base.h:61
#define MLN_BINDING(contract)
Definition binding.h:17
Definition base.h:192
Definition style.h:384
Definition completion.h:121
void * user_data
Definition style.h:426
mln_user_data_release release_user_data
Definition style.h:457
mln_custom_source_fetch_tile_callback fetch_tile
Definition style.h:418
mln_delivery_queue queue
Definition style.h:468
mln_custom_source_cancel_tile_callback cancel_tile
Definition style.h:421
mln_custom_source_fetch_tile_callback fetch_tile
Definition style.h:478
mln_custom_source_cancel_tile_callback cancel_tile
Definition style.h:481
mln_user_data_release release_user_data
Definition style.h:507
void * user_data
Definition style.h:486
mln_delivery_queue queue
Definition style.h:518
Definition base.h:100
Definition style.h:327
bool synchronous_tiling
Definition style.h:379
double min_zoom
Definition style.h:332
double max_zoom
Definition style.h:335
mln_buffer_view cluster_properties
Definition style.h:349
uint32_t buffer
Definition style.h:352
double tolerance
Definition style.h:338
double cluster_max_zoom
Definition style.h:341
uint32_t cluster_radius
Definition style.h:355
bool line_metrics
Definition style.h:361
uint32_t cluster_min_points
Definition style.h:358
bool cluster
Definition style.h:370
Definition style.h:150
Definition style.h:140
Definition map.h:567
Definition map.h:230
Definition style.h:524
const uint8_t * pixels
Definition style.h:531
uint32_t stride
Definition style.h:529
size_t byte_length
Definition style.h:533
Definition style.h:584
const mln_image_stretch * stretch_y
Definition style.h:600
mln_buffer_view pixels
Definition style.h:595
uint32_t text_fit_width
Definition style.h:609
uint32_t text_fit_height
Definition style.h:614
mln_image_content content
Definition style.h:604
uint32_t width
Definition style.h:586
float pixel_ratio
Definition style.h:616
bool sdf
Definition style.h:618
uint32_t height
Definition style.h:588
uint32_t fields
Definition style.h:590
const mln_image_stretch * stretch_x
Definition style.h:597
Definition style.h:537
uint32_t text_fit_width
Definition style.h:565
const mln_image_stretch * stretch_y
Definition style.h:556
float pixel_ratio
Definition style.h:573
mln_image_content content
Definition style.h:560
bool sdf
Definition style.h:575
const mln_image_stretch * stretch_x
Definition style.h:547
uint32_t text_fit_height
Definition style.h:570
Definition style.h:303
mln_buffer_view id
Definition style.h:305
mln_buffer_view source_id
Definition style.h:309
double min_zoom
Definition style.h:313
double max_zoom
Definition style.h:315
mln_buffer_view source_layer
Definition style.h:311
mln_buffer_view type
Definition style.h:307
uint32_t visibility
Definition style.h:317
Definition style.h:263
uint32_t type
Definition style.h:267
mln_buffer_view url
Definition style.h:276
uint32_t fields
Definition style.h:269
mln_buffer_view id
Definition style.h:265
mln_lat_lng_bounds bounds
Definition style.h:282
uint32_t tile_size
Definition style.h:285
mln_style_source_tile_info tilejson
Definition style.h:279
uint32_t vector_encoding
Definition style.h:290
mln_buffer_view attribution
Definition style.h:274
bool is_volatile
Definition style.h:271
uint32_t raster_encoding
Definition style.h:295
Definition style.h:245
const mln_buffer_view * tile_urls
Definition style.h:247
double min_zoom
Definition style.h:250
double max_zoom
Definition style.h:252
uint32_t scheme
Definition style.h:254
Definition style.h:632
double duration_ms
Definition style.h:650
double delay_ms
Definition style.h:658
bool enable_placement_transitions
Definition style.h:671
mln_style_image_option_field
Definition style.h:211
mln_status mln_map_get_global_state(mln_map map, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_status mln_map_add_style_layer_json(mln_map map, mln_buffer_view layer_json, mln_buffer_view before_layer_id, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_status mln_map_add_custom_geometry_source(mln_map map, mln_buffer_view source_id, const mln_custom_geometry_source_options *options, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_style_image_options mln_style_image_options_default(void)
mln_status mln_map_set_custom_geometry_source_tile_error(mln_map map, mln_buffer_view source_id, mln_canonical_tile_id tile_id, mln_buffer_view message, const mln_completion *completion, mln_diagnostic *out_diagnostic)
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, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_status mln_map_get_style_layer_property(mln_map map, mln_buffer_view layer_id, mln_buffer_view property_name, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_status mln_map_remove_style_source(mln_map map, mln_buffer_view source_id, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_style_image_info_field
Definition style.h:222
@ MLN_STYLE_IMAGE_INFO_CONTENT
Definition style.h:224
@ MLN_STYLE_IMAGE_INFO_TEXT_FIT_WIDTH
Definition style.h:226
@ MLN_STYLE_IMAGE_INFO_TEXT_FIT_HEIGHT
Definition style.h:228
mln_status mln_map_invalidate_custom_geometry_source_region(mln_map map, mln_buffer_view source_id, mln_lat_lng_bounds bounds, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_status mln_map_set_global_state_property(mln_map map, mln_buffer_view property_name, mln_buffer_view value, const mln_completion *completion, mln_diagnostic *out_diagnostic)
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, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_status mln_map_move_style_layer(mln_map map, mln_buffer_view layer_id, mln_buffer_view before_layer_id, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_custom_mvt_vector_source_options mln_custom_mvt_vector_source_options_default(void)
mln_status mln_map_get_style_image(mln_map map, mln_buffer_view image_id, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_status mln_map_add_geojson_source_data(mln_map map, mln_buffer_view source_id, mln_geojson_source_data data, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_status mln_map_list_style_sources(mln_map map, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_status mln_map_set_geojson_source_data(mln_map map, mln_buffer_view source_id, mln_geojson_source_data data, const mln_completion *completion, mln_diagnostic *out_diagnostic)
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, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_status mln_map_set_style_source_volatile(mln_map map, mln_buffer_view source_id, bool is_volatile, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_custom_mvt_vector_source_option_field
Definition style.h:203
mln_status mln_map_set_style_light_json(mln_map map, mln_buffer_view light_json, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_premultiplied_rgba8_image mln_premultiplied_rgba8_image_default(void)
mln_status mln_map_get_style_light_property(mln_map map, mln_buffer_view property_name, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_status mln_map_set_image_source_url(mln_map map, mln_buffer_view source_id, mln_buffer_view url, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_geojson_source_options mln_geojson_source_options_default(void)
mln_style_vector_tile_encoding
Definition style.h:120
mln_style_layer_visibility
Definition style.h:165
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, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_style_tile_scheme
Definition style.h:114
mln_status mln_map_set_style_layer_property(mln_map map, mln_buffer_view layer_id, mln_buffer_view property_name, mln_buffer_view value, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_status mln_map_add_style_source_json(mln_map map, mln_buffer_view source_id, mln_buffer_view source_json, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_style_source_type
Definition style.h:80
mln_custom_geometry_source_options mln_custom_geometry_source_options_default(void)
void(*) mln_custom_source_cancel_tile_callback(void *user_data, mln_canonical_tile_id tile_id)
Definition style.h:409
mln_style_transition_option_field
Definition style.h:234
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, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_status mln_map_set_image_source_image(mln_map map, mln_buffer_view source_id, const mln_premultiplied_rgba8_image *image, const mln_completion *completion, mln_diagnostic *out_diagnostic)
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, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_status mln_map_set_style_transition_options(mln_map map, const mln_style_transition_options *options, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_style_raster_dem_encoding
Definition style.h:126
mln_status mln_map_remove_style_image(mln_map map, mln_buffer_view image_id, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_status mln_map_set_geojson_source_synchronous_tiling(mln_map map, mln_buffer_view source_id, bool enabled, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_status mln_map_list_style_layers(mln_map map, const mln_completion *completion, mln_diagnostic *out_diagnostic)
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, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_status mln_map_get_image_source_coordinates(mln_map map, mln_buffer_view source_id, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_style_source_info_field
Definition style.h:96
@ MLN_STYLE_SOURCE_INFO_URL
Definition style.h:98
@ MLN_STYLE_SOURCE_INFO_BOUNDS
Definition style.h:102
@ MLN_STYLE_SOURCE_INFO_TILEJSON
Definition style.h:100
@ MLN_STYLE_SOURCE_INFO_VECTOR_ENCODING
Definition style.h:106
@ MLN_STYLE_SOURCE_INFO_RASTER_ENCODING
Definition style.h:108
@ MLN_STYLE_SOURCE_INFO_ATTRIBUTION
Definition style.h:110
@ MLN_STYLE_SOURCE_INFO_TILE_SIZE
Definition style.h:104
mln_custom_geometry_source_option_field
Definition style.h:190
void(*) mln_custom_source_fetch_tile_callback(void *user_data, mln_canonical_tile_id tile_id)
Definition style.h:397
mln_status mln_map_remove_style_layer(mln_map map, mln_buffer_view layer_id, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_status mln_map_invalidate_custom_mvt_vector_source_tile(mln_map map, mln_buffer_view source_id, mln_canonical_tile_id tile_id, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_status mln_map_get_style_source(mln_map map, mln_buffer_view source_id, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_status mln_map_invalidate_custom_geometry_source_tile(mln_map map, mln_buffer_view source_id, mln_canonical_tile_id tile_id, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_geojson_source_option_field
Definition style.h:173
mln_status mln_map_set_style_light_property(mln_map map, mln_buffer_view property_name, mln_buffer_view value, const mln_completion *completion, mln_diagnostic *out_diagnostic)
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, const mln_completion *completion, mln_diagnostic *out_diagnostic)
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, const mln_completion *completion, mln_diagnostic *out_diagnostic)
void mln_geojson_source_data_release(mln_geojson_source_data data)
mln_status mln_map_get_style_layer(mln_map map, mln_buffer_view layer_id, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_style_image_text_fit
Definition style.h:158
mln_status mln_map_get_style_transition_options(mln_map map, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_status mln_map_get_style_layer_json(mln_map map, mln_buffer_view layer_id, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_status mln_map_set_geojson_source_url(mln_map map, mln_buffer_view source_id, mln_buffer_view url, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_style_transition_options mln_style_transition_options_default(void)
mln_status mln_geojson_source_data_create(mln_buffer_view data, const mln_geojson_source_options *options, mln_geojson_source_data *out_data, mln_diagnostic *out_diagnostic)