geoview-core
    Preparing search index...

    Class AbstractPluginAbstract

    Plugin abstract base class.

    Index

    Constructors

    • Creates an instance of the plugin.

      Parameters

      • pluginId: string

        Unique identifier for the plugin instance.

      • mapViewer: MapViewer

        The map viewer

      • props: unknown

        Optional plugin options and properties.

      Returns AbstractPlugin

    Properties

    createRoot: (container: Container, options?: RootOptions) => Root

    Type Declaration

      • (container: Container, options?: RootOptions): Root
      • createRoot lets you create a root to display React components inside a browser DOM node.

        Parameters

        • container: Container
        • Optionaloptions: RootOptions

        Returns Root

    mapViewer: MapViewer
    pluginId: string
    pluginProps?: unknown
    react: __module
    translate?: __module
    useTheme: <T = Theme>() => T

    Methods

    • This function is called when the plugin is added, used for finalizing initialization. See plugin.addPlugin for details.

      Returns void

    • Must override function to get the default config

      Returns unknown

    • Overridable function to get the translations object for the Plugin.

      Returns Record<string, unknown>

      The translations object

    • Returns the language currently used by the 'translate' i18next component used by this Plugin

      Returns string

      string The language, 'en' (English) by default.

    • Gets the config

      Returns unknown

      The config

    • Override this to do the actual adding

      Returns void

    • Optionally override this to do something when done adding

      Returns void

    • Override this to do the actual removal

      Returns void

    • Optionally override this to do something when done being removed

      Returns void

    • This function is called when the plugin is removed, used for clean up. See plugin.addPlugin for details.

      Returns void

    • Must override function to get the schema validator

      Returns unknown

    • Sets the config (which happens post creation)

      Parameters

      • config: unknown

        The config

      Returns void