@honua/sdk-js
    Preparing search index...

    Module runtime

    @honua/sdk-js/runtime — MapLibre GL JS-first runtime for Honua HonuaMapDocument. Consumes a server-produced HonuaMapDocument and binds it to a caller-provided MaplibreMap instance.

    import { HonuaClient } from "@honua/sdk-js";
    import { loadMapDocument } from "@honua/sdk-js/runtime";
    import * as maplibregl from "maplibre-gl";

    const map = new maplibregl.Map({ container: "map" });
    const runtime = await loadMapDocument(pkg, map, {
    client: new HonuaClient({ baseUrl: "https://honua.example.com" }),
    popupFactory: () => new maplibregl.Popup(),
    });
    runtime.setLayerVisibility("parcels-fill", false);
    await runtime.updateMapDocument(nextPkg);

    Classes

    BoundedMapDocumentFetchCache
    HonuaExportSafetyError
    HonuaMapDocumentError
    HonuaMapRuntime
    HonuaOnlineBasemapBinding
    HonuaRuntimeDiagnosticError
    OgcStylesClient
    QueryTileRequestController
    QueryTileServerResponseError

    Interfaces

    BindEditSketchSnappingOptions
    BindPopupOptions
    BindTerraDrawSketchOptions
    CreateTerraDrawSketchOptions
    CreateTerraDrawSnappingOptions
    EditSketchSnapIndicatorOptions
    EditSketchSnappingEvents
    EditSketchSnappingHandle
    EnsureOfflineRegionProtocolDeps
    EnsurePmtilesProtocolDeps
    ExportMapDocumentOptions
    FetchMapDocumentOptions
    FetchMapDocumentResult
    FetchQueryTileFeatureDetailOptions
    FetchQueryTileJsonOptions
    HonuaExportRedaction
    HonuaMapDocument
    HonuaMapDocumentAttribution
    HonuaMapDocumentDependency
    HonuaMapDocumentDiagnostic
    HonuaMapDocumentExport
    HonuaMapDocumentInitialView
    HonuaMapDocumentLabelBinding
    HonuaMapDocumentLegendEntry
    HonuaMapDocumentLocator
    HonuaMapDocumentPopupBinding
    HonuaMapDocumentProvenance
    HonuaMapDocumentSourceBinding
    HonuaMapDocumentStyleRef
    HonuaMapDocumentThemeSpec
    HonuaMapDocumentWidget
    HonuaMapRuntimeInternals
    HonuaMapRuntimeReload
    HonuaOnlineBasemapBindingOptions
    HonuaOnlineBasemapMap
    HonuaOnlineBasemapOptions
    HonuaRuntimeDiagnostic
    HonuaRuntimeTelemetry
    HonuaRuntimeTelemetrySpan
    HonuaRuntimeTelemetrySpanResult
    HonuaStyleRefLayerBinding
    HonuaStyleRefLayerOverride
    ImportMapDocumentOptions
    ImportMapDocumentResult
    LegendEntry
    LoadMapDocumentFromIdOptions
    LoadMapDocumentFromIdResult
    LoadMapDocumentOfflineRegion
    LoadMapDocumentOptions
    MapDocumentDiff
    MapDocumentFetchCacheEntry
    MapDocumentFetchCacheState
    MapDocumentRealtimeAdvertisement
    MapDocumentRealtimeCheckpoint
    MapDocumentRealtimeDisconnectedMessage
    MapDocumentRealtimeErrorMessage
    MapDocumentRealtimeEventSource
    MapDocumentRealtimeHeartbeatMessage
    MapDocumentRealtimeMessageBase
    MapDocumentRealtimeObserver
    MapDocumentRealtimeReadyMessage
    MapDocumentRealtimeReconnectOptions
    MapDocumentRealtimeRefetchRequiredMessage
    MapDocumentRealtimeReloadRequiredMessage
    MapDocumentRealtimeStaleMessage
    MapDocumentRealtimeSubscribeRequest
    MapDocumentRealtimeSubscriptionHandle
    MapDocumentRealtimeTransport
    MapDocumentRealtimeUpdatedMessage
    MapDocumentRealtimeWatchOptions
    MapDocumentServerSentEventsTransportOptions
    MapDocumentWatchHandle
    MaplibreMap
    MaplibreProtocolRegistrar
    MapLibreQueryTileSourceSpec
    MapLibreRendererFactoryOptions
    MapLibreRendererMap
    MapLibreRendererOptions
    MapLibreRendererPeer
    NativeMapLibreSourceEntry
    NativeMapLibreSourceSpecification
    OfflineRegionStyleRefusalV1
    OfflineRegionStyleRewriteEntryV1
    OfflineRegionStyleRewriteV1
    OgcStyleList
    OgcStyleListEntry
    OgcStyleRefResolverOptions
    OgcStylesClientOptions
    OgcStylesRequestOptions
    PmtilesProtocolLike
    PmtilesProtocolModuleLike
    PopupBindingHandle
    PopupFeature
    PopupHandle
    PopupRenderContext
    QueryTileCacheSnapshot
    QueryTileDiagnostic
    QueryTileFeatureDetailFetchResult
    QueryTileJsonFetchResult
    QueryTileRequest
    QueryTileRequestControllerOptions
    QueryTileRequestTileOptions
    QueryTileServerFetchOptions
    QueryTileSourceSpecOptions
    QueryTileUrlTemplateOptions
    QueryTileViewport
    QueryTileViewportRequestOptions
    QueryTileViewportRequestResult
    RewriteStyleTilesForOfflineRegionOptions
    RuntimeClickInteractionOptions
    RuntimeExplorationSelectionOptions
    RuntimeFeatureInteractionEvent
    RuntimeFeatureStateTarget
    RuntimeHoverInteractionOptions
    RuntimeLayerOrderOptions
    RuntimeLayerSpecification
    RuntimeLayerUpdate
    RuntimePointerInteractionOptions
    RuntimeSelectionInteractionOptions
    RuntimeStyleSpecValidationOptions
    SetViewStateInput
    SnappingMap
    SourceBridgeProjection
    StyleComposeOptions
    TerraDrawSketchController
    TerraDrawSketchFeature
    TerraDrawSketchFinishContext
    TerraDrawSketchFinishEvent
    TerraDrawSketchHandle
    TerraDrawSketchInstance
    TerraDrawSnapContext
    TerraDrawSnapEvent
    ValidateMapDocumentOptions
    ValidateMapDocumentResult
    WatchMapDocumentOptions

    Type Aliases

    HonuaExportRedactionReason
    HonuaMapDocumentDiagnosticCode
    HonuaMapDocumentDiagnosticSeverity
    HonuaMapDocumentErrorStage
    HonuaMapDocumentFormat
    HonuaMapDocumentProtocol
    HonuaMapDocumentStatus
    HonuaOnlineBasemapTheme
    HonuaRuntimeDiagnosticSeverity
    HonuaRuntimeEvent
    HonuaRuntimeEventListener
    HonuaStyleRefBody
    MapDocumentFetchCache
    MapDocumentFetchCacheStatus
    MapDocumentLocator
    MapDocumentPathResolver
    MapDocumentRealtimeAuth
    MapDocumentRealtimeChannel
    MapDocumentRealtimeEventSourceFactory
    MapDocumentRealtimeFallbackMode
    MapDocumentRealtimeMessage
    MapDocumentRealtimeTransportKind
    MapDocumentRealtimeUpdate
    MapDocumentWatchEvent
    OfflineRegionStyleRefusalReason
    OfflineRegionTileHandler
    PopupFactory
    PopupRenderer
    QueryTileDiagnosticCode
    QueryTileDiagnosticSeverity
    QueryTileFetcher
    QueryTileLifecycleEvent
    QueryTileLifecycleListener
    QueryTileServerFetch
    RuntimeClickInteractionHandler
    RuntimeFilterExpression
    RuntimeHitTestOptions
    RuntimeLayerOrder
    RuntimeLayoutSpecification
    RuntimePaintSpecification
    RuntimePointerInteractionHandler
    RuntimeSourceSpecification
    RuntimeStyleSpecValidationMode
    RuntimeStyleValue
    SourceErrorPolicy
    StyleRefResolver
    TerraDrawSketchFeatureId
    ThemeResolver

    Variables

    DEFAULT_MAP_DOCUMENT_CACHE_LIMIT
    DEFAULT_MAP_DOCUMENT_PATH_PREFIX
    DEFAULT_MAX_EMBEDDED_BYTES
    DEFAULT_MAX_MAP_DOCUMENT_BYTES
    DEFAULT_OGC_STYLES_PATH_PREFIX
    HONUA_MAP_DOCUMENT_EXPORT_KIND_V1
    HONUA_MAP_DOCUMENT_FORMAT_V1
    HONUA_ONLINE_BASEMAP_STYLES
    MAP_DOCUMENT_REALTIME_CHANNEL_V1
    MAPLIBRE_STYLE_MEDIA_TYPE
    OFFLINE_REGION_PROTOCOL_SCHEME
    PMTILES_PROTOCOL_SCHEME
    TERRA_DRAW_SKETCH_TOOL_MODES

    Functions

    applyStyleRefs
    applyTheme
    bindEditSketchSnapping
    bindPopup
    bindTerraDrawSketch
    buildLegend
    buildMapLibreQueryTileSourceSpec
    buildQueryTileJson
    buildQueryTileUrl
    buildQueryTileUrlTemplate
    buildWmsRasterSourceSpec
    buildWmtsRasterSourceSpec
    composeStyle
    createMapDocumentServerSentEventsTransport
    createOgcStyleRefResolver
    createQueryTileRequestController
    createTerraDrawSketch
    createTerraDrawSnapping
    decodeMapDocumentRealtimeMessage
    defaultMapDocumentPath
    defaultPopupRenderer
    diagnoseQueryTileSourceSupport
    diffMapDocuments
    editSketchToolForTerraDrawMode
    encodeMapDocumentRealtimeUrl
    ensureOfflineRegionProtocol
    ensurePmtilesProtocol
    exportMapDocument
    featureStateTargetFromSelection
    featureStateTargetKey
    featureTargetForLayer
    fetchMapDocument
    fetchQueryTileFeatureDetail
    fetchQueryTileJson
    hasMapDocumentDiagnosticErrors
    importMapDocument
    isOfflineRegionProtocolRegistered
    isPmtilesProtocolRegistered
    loadMapDocument
    loadMapDocumentFromId
    mapDocumentFingerprint
    maplibreRenderer
    materializeRuntimeLayer
    materializeRuntimeSource
    materializeStyleValue
    prepareRuntimeStyleSpecValidation
    projectSourceBindings
    protocolForSource
    queryTilesForViewport
    readMapDocumentRealtimeAdvertisement
    rendererRuntimeDiagnosticError
    resetOfflineRegionProtocol
    resetPmtilesProtocol
    resolveFeatureIdFromEventFeature
    resolveHonuaOnlineBasemapStyle
    resolveMapDocumentPath
    resolveRuntimeBeforeId
    revertOfflineRegionStyleRewrite
    rewriteStyleTilesForOfflineRegion
    selectionTargetForLayer
    sourceContextForLayer
    styleDocumentToRefBody
    styleUsesOfflineRegion
    styleUsesPmtiles
    terraDrawSketchToolCapabilities
    throwRuntimeDiagnostics
    toHonuaSourceSpec
    validateMapDocument
    validateRuntimeFilterExpression
    validateRuntimeFilterStyleSpec
    validateRuntimeLayer
    validateRuntimeLayerStyleSpec
    validateRuntimeSource
    validateRuntimeSourceStyleSpec
    validateRuntimeStyleExpression
    validateRuntimeStyleExpressionStyleSpec
    validateRuntimeStyleSpec
    watchMapDocument