new MapboxIFCInteraction(map, options)
MapboxViewer/infrastructure/adapters/interactions/MapboxIFCInteraction.ts, line 14
Creates an instance of MapboxIFCInteraction.
| Name | Type | Description |
|---|---|---|
map |
The Mapbox map instance. |
|
options |
The options for IFC interaction. |
Methods
-
closeIFCModal(ifcId)
MapboxViewer/infrastructure/adapters/interactions/MapboxIFCInteraction.ts, line 120 -
Closes the IFC modal window.
Name Type Description ifcIdThe ID of the IFC modal to close.
-
createIFCModal(ifcId)
MapboxViewer/infrastructure/adapters/interactions/MapboxIFCInteraction.ts, line 75 -
Creates the IFC modal window.
Name Type Description ifcIdThe ID of the IFC to display.
-
disable()
MapboxViewer/infrastructure/adapters/interactions/MapboxIFCInteraction.ts, line 229 -
Disables the IFC interaction by hiding the layer.
-
enable()
MapboxViewer/infrastructure/adapters/interactions/MapboxIFCInteraction.ts, line 133 -
Enables the IFC interaction by adding the source, layer, and event listeners if not already present.
-
setOptions(options)
MapboxViewer/infrastructure/adapters/interactions/MapboxIFCInteraction.ts, line 251 -
Updates the options for the IFC interaction and refreshes the source data if enabled.
Name Type Description optionsThe new options to set.
-
transformCoordinates(coords)
MapboxViewer/infrastructure/adapters/interactions/MapboxIFCInteraction.ts, line 61 -
Transforms projected coordinates to lat/lon.
Name Type Description coordsArray of [x, y] in projected CRS.
Returns:
Array of [lon, lat] in EPSG:4326.
