Method
MaplibreNativeFfiMapget_snapshot
Declaration [src]
MaplibreNativeFfiMapSnapshot*
maplibre_native_ffi_map_get_snapshot (
MaplibreNativeFfiMap* self
GError** error
)
Description [src]
Copies the map’s state.
The copy doesn’t wait for pending commands. To read the camera after they
apply, use maplibre_native_ffi_map_get_camera_async().
See mln_map_get_snapshot in the
C API reference.
It fails with these errors:
MAPLIBRE_NATIVE_FFI_ERROR_INVALID_STATEuntilmaplibre_native_ffi_runtime_create_map()completes with0.
Return value
Type: MaplibreNativeFfiMapSnapshot
The value.
| The caller of the method takes ownership of the returned data, and is responsible for freeing it. |