@maplibre/native-ffi
    Preparing search index...

    Class ResourceTransformRequestHandle

    A URL rewrite that a resource transform answers with the URL to load.

    See mln_resource_transform_request in the C API reference.

    Hierarchy

    • Owner
      • ResourceTransformRequestHandle
    Index
    "[asyncDispose]": () => Promise<void>

    Calls release(), for await using. Hosts without Symbol.asyncDispose, such as ArkTS, leave it undefined.

    "[dispose]": () => void

    Calls release(), for using. Hosts without Symbol.dispose, such as ArkTS, leave it undefined.

    id: bigint

    The native handle value. It stays readable after release.

    • Answers a resource transform request with the URL to load instead.

      url must not be empty. A failed answer fails the request with ResourceErrorReason.other, as ResourceTransformRequestHandle.release() does.

      See mln_resource_transform_request_complete in the C API reference.

      Parameters

      • url: string

      Returns void