Core: {
    init: ((options?: any) => IMapAdapter | null);
    getMap: (() => IMapAdapter | null);
    getAdapter: (() => IMapAdapter | null);
    setTheme: ((theme: any) => void);
    getTheme: (() => string);
} = ...

Type declaration

  • init: ((options?: any) => IMapAdapter | null)
      • (options?): IMapAdapter | null
      • Initialises the map with the given options. Resolves the container element, creates a MaplibreAdapter, applies the UI theme, and bootstraps the legend.

        Parameters

        • options: any = {}

          Normalised map options.

        Returns IMapAdapter | null

        The active IMapAdapter instance, or null on error.

  • getMap: (() => IMapAdapter | null)
      • (): IMapAdapter | null
      • Returns the current map adapter instance.

        Returns IMapAdapter | null

        The active IMapAdapter, or null if not yet initialised.

  • getAdapter: (() => IMapAdapter | null)

    Alias for getMap — returns the active IMapAdapter (used by POI, Route, GeoJSON modules).

      • (): IMapAdapter | null
      • Returns the current map adapter instance.

        Returns IMapAdapter | null

        The active IMapAdapter, or null if not yet initialised.

  • setTheme: ((theme: any) => void)
      • (theme): void
      • Sets et applique the theme active.

        Parameters

        • theme: any

          "light" | "dark"

        Returns void

  • getTheme: (() => string)
      • (): string
      • Returns the theme active.

        Returns string