1.0.1 • Published 1 year ago

@bimangle/cesium-info-accessor v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

cesium-info-accessor

A Cesium plugin for automatically loading and displaying component property data from BimAngle-exported 3D Tiles datasets.

Installation

NPM

bash npm install @bimangle/cesium-info-accessor

CDN

You can also include it directly in your HTML: html

Usage

Browser

html

NPM / ES Modules

javascript import { InfoAccessorMixin } from '@bimangle/cesium-info-accessor'; import as Cesium from 'cesium'; const viewer = new Cesium.Viewer('cesiumContainer'); // Method 1: Use mixin viewer.extend(InfoAccessorMixin); viewer.infoAccessor.attach(tileset); // Method 2: Use helper functions attachTileset(viewer, tileset); // For component-level info attachTilesetX(viewer, tileset, "Model Title", "Model Description"); // For model-level info

Features

  • Highlight and select 3D Tiles features
  • Display feature properties in Cesium's info box
  • Support both component-level and model-level information display
  • Automatically load and display component properties from BimAngle-exported 3D Tiles
  • Compatible with Cesium 1.110.0 and above

License

MIT

1.0.1

1 year ago