Calls close(), for await using.
Hosts without Symbol.asyncDispose, such as ArkTS, leave it undefined.
Calls dispose(), for using.
Hosts without Symbol.dispose, such as ArkTS, leave it undefined.
ReadonlyidThe native handle ID, which runtime events report as their source. It stays readable after close.
The commands of this owner that discard their outcomes.
Adds a custom geometry source.
See mln_map_add_custom_geometry_source in the
C API reference.
Optionaloptions: CustomGeometrySourceOptionsAdds a custom MVT vector source.
See mln_map_add_custom_mvt_vector_source in the
C API reference.
Optionaloptions: CustomMvtVectorSourceOptionsAdds a GeoJSON source with prepared inline data.
See mln_map_add_geojson_source_data in the
C API reference.
Adds a GeoJSON source with URL data.
See mln_map_add_geojson_source_url in the
C API reference.
Optionaloptions: GeojsonSourceOptionsAdds an image source with inline image pixels.
See mln_map_add_image_source_image in the
C API reference.
Adds an image source that loads its image from a URL.
See mln_map_add_image_source_url in the
C API reference.
Adds one style layer from a full style-spec layer JSON object.
See mln_map_add_style_layer_json in the
C API reference.
OptionalbeforeLayerId: stringAdds one style source from a style-spec source JSON object.
See mln_map_add_style_source_json in the
C API reference.
Submits one atomic relative camera update.
See mln_map_apply_camera_delta in the
C API reference.
Starts attachment of a ring of caller-owned Metal textures.
See mln_map_attach_metal_borrowed_texture in the
C API reference.
Starts attachment of a session-owned Metal texture ring.
See mln_map_attach_metal_owned_texture in the
C API reference.
Starts attachment of a Metal surface target.
See mln_map_attach_metal_surface in the
C API reference.
Starts attachment of a ring of caller-owned OpenGL textures.
See mln_map_attach_opengl_borrowed_texture in the
C API reference.
Starts attachment of a session-owned OpenGL texture ring.
See mln_map_attach_opengl_owned_texture in the
C API reference.
Starts attachment of an OpenGL surface target.
See mln_map_attach_opengl_surface in the
C API reference.
Starts attachment of a ring of caller-owned Vulkan images.
See mln_map_attach_vulkan_borrowed_texture in the
C API reference.
Starts attachment of a session-owned Vulkan texture ring.
See mln_map_attach_vulkan_owned_texture in the
C API reference.
Starts attachment of a Vulkan surface target.
See mln_map_attach_vulkan_surface in the
C API reference.
Starts attachment of a ring of caller-owned WebGPU textures.
See mln_map_attach_webgpu_borrowed_texture in the
C API reference.
Starts attachment of a session-owned WebGPU texture ring.
See mln_map_attach_webgpu_owned_texture in the
C API reference.
Starts attachment of a WebGPU surface target.
See mln_map_attach_webgpu_surface in the
C API reference.
Begins a command group, which holds this map's render updates until the group ends.
See mln_map_begin_command_group in the
C API reference.
Starts an ordered query for a camera that fits a GeoJSON geometry.
See mln_map_camera_for_geometry in the
C API reference.
OptionalfitOptions: CameraFitOptionsStarts an ordered query for a camera that fits geographic bounds.
See mln_map_camera_for_lat_lng_bounds in the
C API reference.
OptionalfitOptions: CameraFitOptionsStarts an ordered query for a camera that fits geographic coordinates.
See mln_map_camera_for_lat_lngs in the
C API reference.
OptionalfitOptions: CameraFitOptionsCancels the camera transitions of the commands whose animation carried transition_id, and leaves every other transition running.
See mln_map_cancel_camera_transition in the
C API reference.
Cancels the camera transitions running when this command commits.
See mln_map_cancel_transitions in the
C API reference.
Releases a map asynchronously.
See mln_map_release in the
C API reference.
Consumes a map handle without observing its asynchronous retirement.
See mln_map_dispose in the
C API reference.
Submits an ordered debug-log command.
See mln_map_dump_debug_logs in the
C API reference.
Ends the innermost command group that mln_map_begin_command_group()
began.
See mln_map_end_command_group in the
C API reference.
Starts an ordered camera read.
See mln_map_get_camera in the
C API reference.
Starts an ordered read of per-feature state from this map.
See mln_map_get_feature_state in the
C API reference.
Queries the global-state JSON object, including style defaults. Completion
borrows one mln_buffer_view for the duration of the callback.
See mln_map_get_global_state in the
C API reference.
Copies image source coordinates.
See mln_map_get_image_source_coordinates in the
C API reference.
Starts an ordered copy of the last successfully parsed style document.
See mln_map_get_loaded_style_json in the
C API reference.
Copies the map's latest published snapshot.
See mln_map_get_snapshot in the
C API reference.
Copies one complete runtime style image.
See mln_map_get_style_image in the
C API reference.
Copies the complete metadata of one style layer.
See mln_map_get_style_layer in the
C API reference.
Serializes one style layer as a full style-spec layer JSON object.
See mln_map_get_style_layer_json in the
C API reference.
Serializes one layer property as a style-spec JSON value.
See mln_map_get_style_layer_property in the
C API reference.
Serializes one style light property as a style-spec JSON value.
See mln_map_get_style_light_property in the
C API reference.
Copies the complete metadata of one style source.
See mln_map_get_style_source in the
C API reference.
Reads the style's global transition options.
See mln_map_get_style_transition_options in the
C API reference.
Starts an ordered copy of the last requested style URL.
See mln_map_get_style_url in the
C API reference.
Invalidates custom geometry source data inside one geographic region.
See mln_map_invalidate_custom_geometry_source_region in the
C API reference.
Invalidates custom geometry source data for one canonical tile.
See mln_map_invalidate_custom_geometry_source_tile in the
C API reference.
Invalidates custom MVT vector source data for one canonical tile.
See mln_map_invalidate_custom_mvt_vector_source_tile in the
C API reference.
Starts an ordered wrapped-bounds query for a copied camera.
See mln_map_lat_lng_bounds_for_camera in the
C API reference.
Starts an ordered unwrapped-bounds query for a copied camera.
See mln_map_lat_lng_bounds_for_camera_unwrapped in the
C API reference.
Starts an ordered query of every style layer in style order.
See mln_map_list_style_layers in the
C API reference.
Lists every style source in style order.
See mln_map_list_style_sources in the
C API reference.
Moves one style layer before another layer or to the top.
See mln_map_move_style_layer in the
C API reference.
OptionalbeforeLayerId: stringRemoves per-feature state from this map.
See mln_map_remove_feature_state in the
C API reference.
Removes one runtime style image by ID.
See mln_map_remove_style_image in the
C API reference.
Removes one style layer by ID.
See mln_map_remove_style_layer in the
C API reference.
Removes one style source by ID.
See mln_map_remove_style_source in the
C API reference.
Requests a repaint for a continuous map.
See mln_map_request_repaint in the
C API reference.
Requests one still image for a static or tile map.
See mln_map_request_still_image in the
C API reference.
Submits the sole post-creation logical extent update.
See mln_map_resize in the
C API reference.
Submits a copied camera-constraint command.
See mln_map_set_bounds in the
C API reference.
Sets custom geometry source data for one canonical tile.
See mln_map_set_custom_geometry_source_tile_data in the
C API reference.
Reports a custom geometry source error for one canonical tile.
See mln_map_set_custom_geometry_source_tile_error in the
C API reference.
Sets custom MVT vector source data for one canonical tile.
See mln_map_set_custom_mvt_vector_source_tile_data in the
C API reference.
Reports a custom MVT vector source error for one canonical tile.
See mln_map_set_custom_mvt_vector_source_tile_error in the
C API reference.
Submits a debug-overlay command.
See mln_map_set_debug_options in the
C API reference.
Selects which map-originated event types this map queues.
See mln_map_set_event_mask in the
C API reference.
Submits a copied per-feature-state command.
See mln_map_set_feature_state in the
C API reference.
Submits a copied free-camera command.
See mln_map_set_free_camera_options in the
C API reference.
Updates one GeoJSON source with prepared inline data.
See mln_map_set_geojson_source_data in the
C API reference.
Overrides one GeoJSON source's synchronous tiling at runtime.
See mln_map_set_geojson_source_synchronous_tiling in the
C API reference.
Updates one GeoJSON source to load data from a URL.
See mln_map_set_geojson_source_url in the
C API reference.
Submits a global-state JSON value. JSON null restores the style default.
See mln_map_set_global_state_property in the
C API reference.
Updates image source coordinates.
See mln_map_set_image_source_coordinates in the
C API reference.
Updates an image source with inline image pixels.
See mln_map_set_image_source_image in the
C API reference.
Updates an image source to load its image from a URL.
See mln_map_set_image_source_url in the
C API reference.
Submits copied axonometric rendering option fields.
See mln_map_set_projection_mode in the
C API reference.
Submits a rendering-stats visibility command.
See mln_map_set_rendering_stats_view_enabled in the
C API reference.
Sets one runtime style image.
See mln_map_set_style_image in the
C API reference.
Optionaloptions: StyleImageOptionsQueues an inline style JSON command.
See mln_map_set_style_json in the
C API reference.
Sets one layer property using its MapLibre style-spec property name.
See mln_map_set_style_layer_property in the
C API reference.
Sets the style light from a style-spec light JSON object.
See mln_map_set_style_light_json in the
C API reference.
Sets one style light property using its MapLibre style-spec property name.
See mln_map_set_style_light_property in the
C API reference.
Sets whether one style source stores fetched tiles in the persistent cache.
See mln_map_set_style_source_volatile in the
C API reference.
Sets the style's global transition options.
See mln_map_set_style_transition_options in the
C API reference.
Queues a style URL command.
See mln_map_set_style_url in the
C API reference.
Submits a copied tile-options command.
See mln_map_set_tile_options in the
C API reference.
Submits a copied viewport-options command.
See mln_map_set_viewport_options in the
C API reference.
Submits one atomic camera update.
See mln_map_update_camera in the
C API reference.
A map, which holds map state independent of any render target.
See
mln_mapin the C API reference.