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

    Module style

    @honua/sdk-js/style — Honua style spec source parsers and validators.

    Translate Source/SourceDescriptor shapes to and from MapLibre-style source specifications, and validate Honua style documents.

    import { createSources, validateHonuaStyle, parseOgcFeaturesUrl } from "@honua/sdk-js/style";

    const sources = createSources(dataset.sourceDescriptors);
    const errors = validateHonuaStyle(myStyle);
    if (errors.length) throw new Error(errors.map(e => e.message).join("\n"));

    const parsed = parseOgcFeaturesUrl("https://example.com/ogc/collections/parcels/items");
    console.log(parsed.collectionId); // "parcels"

    Interfaces

    ClassBreakEntry
    ClassBreaksRenderer
    ClassBreaksRendererDescriptor
    ClassBreaksRendererOptions
    ClusterRenderer
    ClusterRendererDescriptor
    ClusterRendererOptions
    ClusterStep
    HeatmapColorStop
    HeatmapRenderer
    HeatmapRendererDescriptor
    HeatmapRendererOptions
    HonuaWmsSourceSpecification
    HonuaWmtsSourceSpecification
    RendererLayerFragment
    RendererLegendItem
    RendererStyle
    UniqueValueEntry
    UniqueValueRenderer
    UniqueValueRendererDescriptor
    UniqueValueRendererOptions

    Type Aliases

    Renderer
    RendererDescriptor
    RendererGeometryType

    Functions

    classBreaksRenderer
    clusterRenderer
    heatmapRenderer
    isRenderer
    isWmsSource
    isWmtsSource
    rendererFromJSON
    uniqueValueRenderer

    References

    createSources → createSources
    HonuaFeatureServiceSourceSpecification → HonuaFeatureServiceSourceSpecification
    HonuaLayerSpecification → HonuaLayerSpecification
    HonuaMapServiceSourceSpecification → HonuaMapServiceSourceSpecification
    HonuaOgcFeaturesSourceSpecification → HonuaOgcFeaturesSourceSpecification
    HonuaSourceBase → HonuaSourceBase
    HonuaSourceSpecification → HonuaSourceSpecification
    HonuaStyleSpecification → HonuaStyleSpecification
    isFeatureServiceSource → isFeatureServiceSource
    isHonuaSource → isHonuaSource
    isMapServiceSource → isMapServiceSource
    isOgcFeaturesSource → isOgcFeaturesSource
    ParsedOgcFeaturesUrl → ParsedOgcFeaturesUrl
    parseOgcFeaturesUrl → parseOgcFeaturesUrl
    ResolvedSource → ResolvedSource
    StyleValidationError → StyleValidationError
    validateHonuaStyle → validateHonuaStyle