geoview-core
    Preparing search index...

    Class PluginAbstract

    Class to manage plugins

    Index

    Constructors

    Methods

    • Add new plugin

      Parameters

      • pluginId: string

        The plugin id

      • constructor: typeof AbstractPlugin

        The plugin class (React Component)

      • mapId: string

        Id of map to add this plugin to

      • Optionalprops: unknown

        The plugin options

      Returns Promise<AbstractPlugin>

      A Promise which resolves with the Plugin instance.

    • Load a package script on runtime

      Parameters

      • pluginId: string

        the package id to load

      Returns Promise<typeof AbstractPlugin>

    • Delete a specific plugin loaded in 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>

    • Delete 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>