Class: BasePlugin

BasePlugin

Abstract base class for plugins used in the 3D map.

new BasePlugin(map, pluginOptions)

GoMap/Plugins/BasePlugin.ts, line 4

Creates an instance of BasePlugin.

Name Type Description
map Go3dMap

The map instance the plugin will interact with.

pluginOptions Go3dPluginsConfig | Go3dWidgetsConfig

Configuration options for the plugin.

Methods

activate()

GoMap/Plugins/BasePlugin.ts, line 41

Activates the plugin, enabling its functionality.

deactivate()

GoMap/Plugins/BasePlugin.ts, line 48

Deactivates the plugin, disabling its functionality.

getMap(){Go3dMap}

GoMap/Plugins/BasePlugin.ts, line 32

Gets the map instance associated with the plugin.

Returns:
Type Description
Go3dMap The map instance.