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

    Factory manager for multi-map support.

    Index

    Constructors

    Properties

    isReady: boolean
    mapInstances: Map<string, unknown>
    stats: { mapsCreated: number; errors: number }
    getModule: IModuleAccessFn | null

    Methods

    • Creates a new map instance.

      Parameters

      • targetId: string

        Target element id

      • options: Record<string, unknown>

        Configuration options

      • getModule: IModuleAccessFn

        Module access function

      Returns unknown

      Map instance, or null

    • Returns a map instance by id.

      Parameters

      • targetId: string

        Target element id

      Returns {} | null

      Map instance, or null

    • Removes a map instance by id.

      Parameters

      • targetId: string

        Target element id

      Returns boolean

      Removal success flag

    • Returns the manager statistics.

      Returns {
          mapsCreated: number;
          errors: number;
          activeInstances: number;
          isReady: boolean;
      }