Method
MaplibreNativeFfiMapresize_async
Declaration [src]
void
maplibre_native_ffi_map_resize_async (
MaplibreNativeFfiMap* self,
const MaplibreNativeFfiLogicalSize* logical_size,
GAsyncReadyCallback callback,
gpointer user_data
)
Description [src]
Sets the map’s size.
A map with a render session takes its size from the session, so resize the
session with maplibre_native_ffi_render_session_resize_async() instead.
See mln_map_resize in the
C API reference.
It fails with these errors:
MAPLIBRE_NATIVE_FFI_ERROR_INVALID_STATEwhen the map has a render session.MAPLIBRE_NATIVE_FFI_ERROR_INVALID_STATEwhen a render session attached to the map before the resize applied.
Without callback, nothing reports whether the call succeeds.
This method completes asynchronously. Use maplibre_native_ffi_map_resize_finish() inside the GAsyncReadyCallback to obtain the result of the operation.
Parameters
logical_size-
Type:
MaplibreNativeFfiLogicalSizeNo 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.