Class
MaplibreNativeFfiMap
Description [src]
final class MaplibreNativeFfi.Map : GObject.Object
{
/* No available fields */
}
A map, with its style and camera.
See mln_map in the
C API reference.
Instance methods
maplibre_native_ffi_map_add_custom_geometry_source_async
Adds a source whose GeoJSON tiles come from callbacks.
maplibre_native_ffi_map_add_custom_geometry_source_finish
Finishes a call that maplibre_native_ffi_map_add_custom_geometry_source_async started.
maplibre_native_ffi_map_add_custom_vector_source_async
Adds a source whose vector tiles come from callbacks.
maplibre_native_ffi_map_add_custom_vector_source_finish
Finishes a call that maplibre_native_ffi_map_add_custom_vector_source_async started.
maplibre_native_ffi_map_add_geo_json_source_finish
Finishes a call that maplibre_native_ffi_map_add_geo_json_source_async started.
maplibre_native_ffi_map_add_image_source_image_finish
Finishes a call that maplibre_native_ffi_map_add_image_source_image_async started.
maplibre_native_ffi_map_add_style_layer_json_finish
Finishes a call that maplibre_native_ffi_map_add_style_layer_json_async started.
maplibre_native_ffi_map_add_style_source_json_finish
Finishes a call that maplibre_native_ffi_map_add_style_source_json_async started.
maplibre_native_ffi_map_apply_camera_delta_async
Moves the camera relative to where it is, as a gesture does.
maplibre_native_ffi_map_apply_camera_delta_finish
Finishes a call that maplibre_native_ffi_map_apply_camera_delta_async started.
maplibre_native_ffi_map_attach_dma_buf_ring
Creates a session that renders the map into a ring of dmabufs that the library allocates.
maplibre_native_ffi_map_attach_open_gl_borrowed_texture
Creates a session that renders the map into a ring of your OpenGL textures.
maplibre_native_ffi_map_attach_open_gl_surface
Creates a session that renders the map to an OpenGL surface.
maplibre_native_ffi_map_attach_vulkan_borrowed_texture
Creates a session that renders the map into a ring of your Vulkan images.
maplibre_native_ffi_map_attach_vulkan_surface
Creates a session that renders the map to a Vulkan surface.
maplibre_native_ffi_map_attach_wayland_surface
Creates a session that presents the map to a Wayland surface, with a graphics context that the library creates.
maplibre_native_ffi_map_begin_command_group_async
Holds back the map’s changes from rendering until
maplibre_native_ffi_map_end_command_group_async(), so they show in the same frame.
maplibre_native_ffi_map_begin_command_group_finish
Finishes a call that maplibre_native_ffi_map_begin_command_group_async started.
maplibre_native_ffi_map_camera_for_geometry_async
Computes a camera that fits a GeoJSON geometry in the map’s view.
maplibre_native_ffi_map_camera_for_geometry_finish
Finishes a call that maplibre_native_ffi_map_camera_for_geometry_async started.
maplibre_native_ffi_map_camera_for_lat_lng_bounds_async
Computes a camera that fits bounds in the map’s view.
maplibre_native_ffi_map_camera_for_lat_lng_bounds_finish
Finishes a call that maplibre_native_ffi_map_camera_for_lat_lng_bounds_async started.
maplibre_native_ffi_map_camera_for_lat_lngs_async
Computes a camera that fits coordinates in the map’s view.
maplibre_native_ffi_map_camera_for_lat_lngs_finish
Finishes a call that maplibre_native_ffi_map_camera_for_lat_lngs_async started.
maplibre_native_ffi_map_cancel_camera_transitions_async
Stops every running camera animation where it is.
maplibre_native_ffi_map_cancel_camera_transitions_finish
Finishes a call that maplibre_native_ffi_map_cancel_camera_transitions_async started.
maplibre_native_ffi_map_cancel_camera_transitions_with_id_async
Stops the running camera animations whose animation options set
transition_id.
maplibre_native_ffi_map_cancel_camera_transitions_with_id_finish
Finishes a call that maplibre_native_ffi_map_cancel_camera_transitions_with_id_async started.
maplibre_native_ffi_map_dump_debug_logs_async
Logs debugging information about the map’s style and sources.
maplibre_native_ffi_map_dump_debug_logs_finish
Finishes a call that maplibre_native_ffi_map_dump_debug_logs_async started.
maplibre_native_ffi_map_end_command_group_async
Ends the group that maplibre_native_ffi_map_begin_command_group_async()
began.
maplibre_native_ffi_map_end_command_group_finish
Finishes a call that maplibre_native_ffi_map_end_command_group_async started.
maplibre_native_ffi_map_fit_camera_to_geometry_async
Moves the camera to fit a GeoJSON geometry in the map’s view, at once or with an animation.
maplibre_native_ffi_map_fit_camera_to_geometry_finish
Finishes a call that maplibre_native_ffi_map_fit_camera_to_geometry_async started.
maplibre_native_ffi_map_fit_camera_to_lat_lng_bounds_async
Moves the camera to fit bounds in the map’s view, at once or with an animation.
maplibre_native_ffi_map_fit_camera_to_lat_lng_bounds_finish
Finishes a call that maplibre_native_ffi_map_fit_camera_to_lat_lng_bounds_async started.
maplibre_native_ffi_map_fit_camera_to_lat_lngs_async
Moves the camera to fit coordinates in the map’s view, at once or with an animation.
maplibre_native_ffi_map_fit_camera_to_lat_lngs_finish
Finishes a call that maplibre_native_ffi_map_fit_camera_to_lat_lngs_async started.
maplibre_native_ffi_map_get_camera_finish
Finishes a call that maplibre_native_ffi_map_get_camera_async started.
maplibre_native_ffi_map_get_feature_state_finish
Finishes a call that maplibre_native_ffi_map_get_feature_state_async started.
maplibre_native_ffi_map_get_global_state_async
Reads the global state of the map’s style as a JSON object.
maplibre_native_ffi_map_get_global_state_finish
Finishes a call that maplibre_native_ffi_map_get_global_state_async started.
maplibre_native_ffi_map_get_image_source_coordinates_async
Reads the corners of an image source’s image, clockwise from the top left.
maplibre_native_ffi_map_get_image_source_coordinates_finish
Finishes a call that maplibre_native_ffi_map_get_image_source_coordinates_async started.
maplibre_native_ffi_map_get_loaded_style_json_async
Reads the JSON of the style that the map loaded.
maplibre_native_ffi_map_get_loaded_style_json_finish
Finishes a call that maplibre_native_ffi_map_get_loaded_style_json_async started.
maplibre_native_ffi_map_get_style_image_finish
Finishes a call that maplibre_native_ffi_map_get_style_image_async started.
maplibre_native_ffi_map_get_style_layer_finish
Finishes a call that maplibre_native_ffi_map_get_style_layer_async started.
maplibre_native_ffi_map_get_style_layer_json_async
Reads a layer of the map’s style as a [layer](https://maplibre.org/maplibre-style-spec/layers/) object.
maplibre_native_ffi_map_get_style_layer_json_finish
Finishes a call that maplibre_native_ffi_map_get_style_layer_json_async started.
maplibre_native_ffi_map_get_style_layer_property_async
Reads a property of a layer in the map’s style.
maplibre_native_ffi_map_get_style_layer_property_finish
Finishes a call that maplibre_native_ffi_map_get_style_layer_property_async started.
maplibre_native_ffi_map_get_style_light_property_async
Reads a property of the light of the map’s style.
maplibre_native_ffi_map_get_style_light_property_finish
Finishes a call that maplibre_native_ffi_map_get_style_light_property_async started.
maplibre_native_ffi_map_get_style_source_finish
Finishes a call that maplibre_native_ffi_map_get_style_source_async started.
maplibre_native_ffi_map_get_style_transition_options_async
Reads the default transition of the map’s style.
maplibre_native_ffi_map_get_style_transition_options_finish
Finishes a call that maplibre_native_ffi_map_get_style_transition_options_async started.
maplibre_native_ffi_map_get_style_url_finish
Finishes a call that maplibre_native_ffi_map_get_style_url_async started.
maplibre_native_ffi_map_invalidate_custom_geometry_source_region_async
Makes a custom geometry source ask again for the tiles in bounds that the
map still needs.
maplibre_native_ffi_map_invalidate_custom_geometry_source_region_finish
Finishes a call that maplibre_native_ffi_map_invalidate_custom_geometry_source_region_async started.
maplibre_native_ffi_map_invalidate_custom_geometry_source_tile_async
Makes a custom geometry source ask for a tile again when the map needs it.
maplibre_native_ffi_map_invalidate_custom_geometry_source_tile_finish
Finishes a call that maplibre_native_ffi_map_invalidate_custom_geometry_source_tile_async started.
maplibre_native_ffi_map_invalidate_custom_vector_source_region_async
Makes a custom vector source ask again for the tiles in bounds that the map
still needs.
maplibre_native_ffi_map_invalidate_custom_vector_source_region_finish
Finishes a call that maplibre_native_ffi_map_invalidate_custom_vector_source_region_async started.
maplibre_native_ffi_map_invalidate_custom_vector_source_tile_async
Makes a custom vector source ask for a tile again when the map needs it.
maplibre_native_ffi_map_invalidate_custom_vector_source_tile_finish
Finishes a call that maplibre_native_ffi_map_invalidate_custom_vector_source_tile_async started.
maplibre_native_ffi_map_is_event_source
Whether a runtime event comes from this handle. A handle’s ID needs all of
its 64 bits, so compare with this, rather than with
maplibre_native_ffi_map_get_id, where numbers are doubles, as in JavaScript.
maplibre_native_ffi_map_lat_lng_bounds_for_camera_async
Computes the area that the map would show with camera.
maplibre_native_ffi_map_lat_lng_bounds_for_camera_finish
Finishes a call that maplibre_native_ffi_map_lat_lng_bounds_for_camera_async started.
maplibre_native_ffi_map_list_style_layers_async
Lists the layers of the map’s style, from bottom to top.
maplibre_native_ffi_map_list_style_layers_finish
Finishes a call that maplibre_native_ffi_map_list_style_layers_async started.
maplibre_native_ffi_map_list_style_sources_finish
Finishes a call that maplibre_native_ffi_map_list_style_sources_async started.
maplibre_native_ffi_map_move_style_layer_async
Moves a layer of the map’s style below the layer named before_layer_id, or
above every layer when before_layer_id is empty.
maplibre_native_ffi_map_move_style_layer_finish
Finishes a call that maplibre_native_ffi_map_move_style_layer_async started.
maplibre_native_ffi_map_ready_async
Waits until the handle is ready, as the call that created it reports. A handle that a callback lends is ready at once.
maplibre_native_ffi_map_ready_finish
Finishes a wait that maplibre_native_ffi_map_ready_async started.
maplibre_native_ffi_map_release_finish
Finishes a release that maplibre_native_ffi_map_release_async started.
maplibre_native_ffi_map_remove_feature_state_finish
Finishes a call that maplibre_native_ffi_map_remove_feature_state_async started.
maplibre_native_ffi_map_remove_style_image_finish
Finishes a call that maplibre_native_ffi_map_remove_style_image_async started.
maplibre_native_ffi_map_remove_style_layer_finish
Finishes a call that maplibre_native_ffi_map_remove_style_layer_async started.
maplibre_native_ffi_map_remove_style_source_finish
Finishes a call that maplibre_native_ffi_map_remove_style_source_async started.
maplibre_native_ffi_map_request_repaint_async
Renders a new frame of a continuous map, even when nothing changed.
maplibre_native_ffi_map_request_repaint_finish
Finishes a call that maplibre_native_ffi_map_request_repaint_async started.
maplibre_native_ffi_map_request_still_image_finish
Finishes a call that maplibre_native_ffi_map_request_still_image_async started.
maplibre_native_ffi_map_resize_finish
Finishes a call that maplibre_native_ffi_map_resize_async started.
maplibre_native_ffi_map_set_bounds_async
Limits the camera’s center to an area, and its zoom and pitch to ranges.
maplibre_native_ffi_map_set_bounds_finish
Finishes a call that maplibre_native_ffi_map_set_bounds_async started.
maplibre_native_ffi_map_set_custom_geometry_source_tile_data_async
Sets the data of a tile in a custom geometry source.
maplibre_native_ffi_map_set_custom_geometry_source_tile_data_finish
Finishes a call that maplibre_native_ffi_map_set_custom_geometry_source_tile_data_async started.
maplibre_native_ffi_map_set_custom_geometry_source_tile_error_async
Reports that a tile of a custom geometry source failed to load.
maplibre_native_ffi_map_set_custom_geometry_source_tile_error_finish
Finishes a call that maplibre_native_ffi_map_set_custom_geometry_source_tile_error_async started.
maplibre_native_ffi_map_set_custom_vector_source_tile_data_async
Sets the data of a tile in a custom vector source.
maplibre_native_ffi_map_set_custom_vector_source_tile_data_finish
Finishes a call that maplibre_native_ffi_map_set_custom_vector_source_tile_data_async started.
maplibre_native_ffi_map_set_custom_vector_source_tile_error_async
Reports that a tile of a custom vector source failed to load.
maplibre_native_ffi_map_set_custom_vector_source_tile_error_finish
Finishes a call that maplibre_native_ffi_map_set_custom_vector_source_tile_error_async started.
maplibre_native_ffi_map_set_debug_flags_async
Draws debugging overlays, such as tile borders, on the map.
maplibre_native_ffi_map_set_debug_flags_finish
Finishes a call that maplibre_native_ffi_map_set_debug_flags_async started.
maplibre_native_ffi_map_set_event_mask_finish
Finishes a call that maplibre_native_ffi_map_set_event_mask_async started.
maplibre_native_ffi_map_set_feature_state_finish
Finishes a call that maplibre_native_ffi_map_set_feature_state_async started.
maplibre_native_ffi_map_set_free_camera_options_async
Places the camera at a position and orientation in space.
maplibre_native_ffi_map_set_free_camera_options_finish
Finishes a call that maplibre_native_ffi_map_set_free_camera_options_async started.
maplibre_native_ffi_map_set_geo_json_source_data_finish
Finishes a call that maplibre_native_ffi_map_set_geo_json_source_data_async started.
maplibre_native_ffi_map_set_geo_json_source_synchronous_tiling_async
Sets whether a GeoJSON source builds its tiles while the map renders.
maplibre_native_ffi_map_set_geo_json_source_synchronous_tiling_finish
Finishes a call that maplibre_native_ffi_map_set_geo_json_source_synchronous_tiling_async started.
maplibre_native_ffi_map_set_geo_json_source_url_async
Makes a GeoJSON source load its data from url.
maplibre_native_ffi_map_set_geo_json_source_url_finish
Finishes a call that maplibre_native_ffi_map_set_geo_json_source_url_async started.
maplibre_native_ffi_map_set_global_state_property_async
Sets a value that the style’s global-state
[expressions](https://maplibre.org/maplibre-style-spec/expressions/) read.
maplibre_native_ffi_map_set_global_state_property_finish
Finishes a call that maplibre_native_ffi_map_set_global_state_property_async started.
maplibre_native_ffi_map_set_image_source_coordinates_finish
Finishes a call that maplibre_native_ffi_map_set_image_source_coordinates_async started.
maplibre_native_ffi_map_set_image_source_image_finish
Finishes a call that maplibre_native_ffi_map_set_image_source_image_async started.
maplibre_native_ffi_map_set_image_source_url_finish
Finishes a call that maplibre_native_ffi_map_set_image_source_url_async started.
maplibre_native_ffi_map_set_projection_mode_async
Sets whether the map draws in perspective or axonometric projection, and how much it skews the view.
maplibre_native_ffi_map_set_projection_mode_finish
Finishes a call that maplibre_native_ffi_map_set_projection_mode_async started.
maplibre_native_ffi_map_set_rendering_stats_view_enabled_async
Shows or hides an overlay of rendering statistics on the map.
maplibre_native_ffi_map_set_rendering_stats_view_enabled_finish
Finishes a call that maplibre_native_ffi_map_set_rendering_stats_view_enabled_async started.
maplibre_native_ffi_map_set_style_image_async
Adds an image to the map’s style, or replaces the image named image_id.
maplibre_native_ffi_map_set_style_image_finish
Finishes a call that maplibre_native_ffi_map_set_style_image_async started.
maplibre_native_ffi_map_set_style_json_finish
Finishes a call that maplibre_native_ffi_map_set_style_json_async started.
maplibre_native_ffi_map_set_style_layer_property_async
Sets a property of a layer in the map’s style.
maplibre_native_ffi_map_set_style_layer_property_finish
Finishes a call that maplibre_native_ffi_map_set_style_layer_property_async started.
maplibre_native_ffi_map_set_style_light_json_async
Replaces the [light](https://maplibre.org/maplibre-style-spec/light/) of the map’s style.
maplibre_native_ffi_map_set_style_light_json_finish
Finishes a call that maplibre_native_ffi_map_set_style_light_json_async started.
maplibre_native_ffi_map_set_style_light_property_async
Sets a property of the light of the map’s style.
maplibre_native_ffi_map_set_style_light_property_finish
Finishes a call that maplibre_native_ffi_map_set_style_light_property_async started.
maplibre_native_ffi_map_set_style_source_volatile_finish
Finishes a call that maplibre_native_ffi_map_set_style_source_volatile_async started.
maplibre_native_ffi_map_set_style_transition_options_async
Sets the default transition of the map’s style.
maplibre_native_ffi_map_set_style_transition_options_finish
Finishes a call that maplibre_native_ffi_map_set_style_transition_options_async started.
maplibre_native_ffi_map_set_style_url_finish
Finishes a call that maplibre_native_ffi_map_set_style_url_async started.
maplibre_native_ffi_map_set_tile_options_async
Sets how the map chooses which tiles to load, and at what detail.
maplibre_native_ffi_map_set_tile_options_finish
Finishes a call that maplibre_native_ffi_map_set_tile_options_async started.
maplibre_native_ffi_map_set_viewport_options_async
Sets how the map orients and constrains its view.
maplibre_native_ffi_map_set_viewport_options_finish
Finishes a call that maplibre_native_ffi_map_set_viewport_options_async started.
maplibre_native_ffi_map_update_camera_finish
Finishes a call that maplibre_native_ffi_map_update_camera_async started.
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.