Method
MaplibreNativeFfiMapcamera_for_lat_lngs_async
Declaration [src]
void
maplibre_native_ffi_map_camera_for_lat_lngs_async (
MaplibreNativeFfiMap* self,
const MaplibreNativeFfiLatLng* coordinates,
gsize coordinate_count,
MaplibreNativeFfiCameraFitOptions* fit_options,
GAsyncReadyCallback callback,
gpointer user_data
)
Description [src]
Computes a camera that fits coordinates in the map’s view.
coordinates must not be empty. The camera keeps the map’s bearing and pitch unless fit_options sets them, and its zoom stays within the map’s zoom limits.
See mln_map_camera_for_lat_lngs in the
C API reference.
It fails with these errors:
MAPLIBRE_NATIVE_FFI_ERROR_INVALID_ARGUMENTwhen the padding infit_optionsleaves no room for the area.
This method completes asynchronously. Use maplibre_native_ffi_map_camera_for_lat_lngs_finish() inside the GAsyncReadyCallback to obtain the result of the operation.
Parameters
coordinates-
Type: An array of
MaplibreNativeFfiLatLngThe items.
The length of the array is specified in the coordinate_countargument.The data is owned by the caller of the method. coordinate_count-
Type:
gsizeNo description available.
fit_options-
Type:
MaplibreNativeFfiCameraFitOptionsThe value, or
NULL.The argument can be NULL.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.