geoview-core
    Preparing search index...

    Class Config

    Class to read and validate the GeoView map features configuration. Will validate every item for structure and valid values. If error found, will replace by default values and sent a message in the console for developers to know something went wrong.

    Config

    Index

    Constructors

    Methods

    • Initializes the map configuration by prevalidating the list of GeoView layer configurations.

      Parameters

      • mapId: string

        The unique identifier for the map instance.

      • listOfGeoviewLayerConfig: MapConfigLayerEntry[]

        The list of layer configurations to validate and initialize.

      • onErrorCallback: ErrorCallbackDelegate

        A callback function invoked when a validation error occurs.

      Returns MapConfigLayerEntry[] | undefined

      The validated list of layer configs, or undefined if invalid.

    • Get a valid map configuration.

      Parameters

      • listOfGeoviewLayerConfig: MapConfigLayerEntry[]

        The list of Geoview layer config to validate.

      • onErrorCallback: ErrorCallbackDelegate

      Returns MapConfigLayerEntry[]

      A valid map config layer entry.