GeoLeaf Core API - v3.0.0
    Preparing search index...

    Variable StyleLoaderConst

    StyleLoader: {
        loadAndValidateStyle: (
            profileId: string,
            layerId: string,
            styleId: string,
            styleFileName: string | undefined,
            layerDirectory: string,
            styleDirectory?: string,
        ) => Promise<unknown>;
        extractLabelConfig: (styleData: unknown) => Record<string, unknown> | null;
        clearStyleCache: {};
        styleCache: Map<string, unknown>;
    } = ...

    Module Style Loader — exposes all public functions.

    Type Declaration

    • loadAndValidateStyle: (
          profileId: string,
          layerId: string,
          styleId: string,
          styleFileName: string | undefined,
          layerDirectory: string,
          styleDirectory?: string,
      ) => Promise<unknown>
    • extractLabelConfig: (styleData: unknown) => Record<string, unknown> | null
    • clearStyleCache: {}
    • styleCache: Map<string, unknown>

      In-memory cache for loaded styles. Key: "profileId:layerId:styleId" Value: { styleData, labelConfig, timestamp }