Method
MaplibreNativeFfiMapupdate_camera_async
Declaration [src]
void
maplibre_native_ffi_map_update_camera_async (
MaplibreNativeFfiMap* self,
MaplibreNativeFfiCameraUpdate* update,
GAsyncReadyCallback callback,
gpointer user_data
)
Description [src]
Moves the camera, at once or with an animation.
Camera fields that update doesn’t set keep their values, and the update
stops any running animation of the fields it sets. The function finishes when
the map applies the update, before an animation ends. To learn when an
animation ends, set an MaplibreNativeFfiCameraTransitionHandler in its
animation options.
See mln_map_update_camera in the
C API reference.
Without callback, nothing reports whether the call succeeds.
This method completes asynchronously. Use maplibre_native_ffi_map_update_camera_finish() inside the GAsyncReadyCallback to obtain the result of the operation.
Parameters
update-
Type:
MaplibreNativeFfiCameraUpdateNo description available.
The data is owned by the caller of the method. callback-
Type:
GAsyncReadyCallbackThe callback to call when the call finishes.
The argument can be NULL. user_data-
Type:
gpointerThe data to pass to
callback.The argument can be NULL.The data is owned by the caller of the method.