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

    Class MapHandle

    A map, which holds map state independent of any render target.

    See mln_map in the C API reference.

    Hierarchy

    • Owner
      • MapHandle
    Index
    addCustomGeometrySource addCustomMvtVectorSource addGeojsonSourceData addGeojsonSourceUrl addImageSourceImage addImageSourceUrl addStyleLayerJson addStyleSourceJson applyCameraDelta attachMetalBorrowedTexture attachMetalOwnedTexture attachMetalSurface attachOpenglBorrowedTexture attachOpenglOwnedTexture attachOpenglSurface attachVulkanBorrowedTexture attachVulkanOwnedTexture attachVulkanSurface attachWebgpuBorrowedTexture attachWebgpuOwnedTexture attachWebgpuSurface beginCommandGroup cameraForGeometry cameraForLatLngBounds cameraForLatLngs cancelCameraTransition cancelTransitions close dispose dumpDebugLogs endCommandGroup getCamera getFeatureState getGlobalState getImageSourceCoordinates getLoadedStyleJson getSnapshot getStyleImage getStyleLayer getStyleLayerJson getStyleLayerProperty getStyleLightProperty getStyleSource getStyleTransitionOptions getStyleUrl invalidateCustomGeometrySourceRegion invalidateCustomGeometrySourceTile invalidateCustomMvtVectorSourceTile latLngBoundsForCamera latLngBoundsForCameraUnwrapped listStyleLayers listStyleSources moveStyleLayer removeFeatureState removeStyleImage removeStyleLayer removeStyleSource requestRepaint requestStillImage resize setBounds setCustomGeometrySourceTileData setCustomGeometrySourceTileError setCustomMvtVectorSourceTileData setCustomMvtVectorSourceTileError setDebugOptions setEventMask setFeatureState setFreeCameraOptions setGeojsonSourceData setGeojsonSourceSynchronousTiling setGeojsonSourceUrl setGlobalStateProperty setImageSourceCoordinates setImageSourceImage setImageSourceUrl setProjectionMode setRenderingStatsViewEnabled setStyleImage setStyleJson setStyleLayerProperty setStyleLightJson setStyleLightProperty setStyleSourceVolatile setStyleTransitionOptions setStyleUrl setTileOptions setViewportOptions updateCamera
    "[asyncDispose]": () => Promise<void>

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

    "[dispose]": () => void

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

    id: bigint

    The native handle ID, which runtime events report as their source. It stays readable after close.

    • Serializes one layer property as a style-spec JSON value.

      See mln_map_get_style_layer_property in the C API reference.

      Parameters

      • layerId: string
      • propertyName: string

      Returns Promise<string | undefined>