geoview-core - v2.2.0
    Preparing search index...

    Class PluginAbstract

    Class to manage plugins.

    Index

    Constructors

    Methods

    • Adds a specific plugin in a map.

      Parameters

      • pluginId: string

        The id of the plugin to add

      • constructor: typeof AbstractPlugin

        The constructor of the plugin

      • mapId: string

        The map id to add the plugin to

      • Optionalprops: unknown

        Optional properties to pass to the plugin

      Returns Promise<AbstractPlugin>

      A promise that resolves with the plugin instance once added

    • Deletes a specific plugin from a map.

      Parameters

      • pluginId: string

        The id of the plugin to delete

      • mapId: string

        The map id to remove the plugin from

      Returns Promise<void>

      A promise that resolves once the plugin is removed

    • Deletes all plugins loaded in a map.

      Parameters

      • mapId: string

        The map id to remove the plugin from (if not provided then plugin will be removed from all maps)

      Returns Promise<void>

      A promise that resolves once the plugins are removed