Calls release(), for await using.
Hosts without Symbol.asyncDispose, such as ArkTS, leave it undefined.
Calls release(), for using.
Hosts without Symbol.dispose, such as ArkTS, leave it undefined.
ReadonlyidThe native handle value. It stays readable after release.
Whether a release, dispose, or discard has ended the handle.
Releases an offscreen device.
Render sessions on the device keep working until they detach.
See mln_offscreen_device_release in the
C API reference.
Names the owner's type, its handle ID, and whether it is closed.
StaticcreateCreates a GPU device for rendering maps offscreen.
MapHandle.attachOffscreen() creates a device of its own when it gets
none. Create one to share it among the sessions on many maps, or to pick a
GPU.
In a browser WebGPU build, attach without a device instead.
See mln_offscreen_device_create in the
C API reference.
Errors:
Status.unsupported in a browser WebGPU build, or when the device can't
render with client_api.Status.nativeError when adapter_index names no GPU, or the platform
can't create the device.Optionaloptions: OffscreenDeviceOptions
A GPU device that the library creates to render maps offscreen.
See
mln_offscreen_devicein the C API reference.