new GLTFPlugin(map, pluginOptions)
GoMap/Plugins/GLTFPlugin.ts, line 16
Creates an instance of GLTFPlugin.
| Name | Type | Description |
|---|---|---|
map |
Go3dMap |
The map instance the plugin will interact with. |
pluginOptions |
Go3dPluginsConfig | Go3dWidgetsConfig |
Configuration options for the plugin. |
Extends
- undefined
Methods
-
activate()
GoMap/Plugins/GLTFPlugin.ts, line 42 -
Activates the plugin and loads the GLTF model.
-
deactivate()
GoMap/Plugins/GLTFPlugin.ts, line 58 -
Deactivates the plugin, disabling its functionality.
-
getGLTFMaker(){GLTFMarker}
GoMap/Plugins/GLTFPlugin.ts, line 51 -
Gets the GLTFMarker instance associated with the plugin.
Returns:
Type Description GLTFMarker The GLTFMarker instance. -
getMap(){Go3dMap}
GoMap/Plugins/GLTFPlugin.ts, line 35 -
Gets the map instance associated with the plugin.
Returns:
Type Description Go3dMap The map instance.
