The @ud-viz/widget_3d_tiles
package provides a customizable widget for interacting with 3D Tiles layers in web applications built with iTowns.
You can install the package via npm:
npm install @ud-viz/widget_3d_tiles
Features:
- Add and Remove 3D Tiles Layers
- Custom Styling
- Layer Visibility Control
- Display Feature Information
Implementation:
import { C3DTiles } from '@ud-viz/widget_3d_tiles';
import * as itowns from 'itowns';
const extent = new itowns.Extent(
... // name,
... // west),
... // east),
... // south),
... // north)
);
// Create an iTowns view
const view = new itowns.PlanarView(document.getElementById('viewerDiv'), extent);
// Initialize the 3D Tiles widget
const tilesWidget = new C3DTiles(view, {
// options
});
// Add the widget to a parent element
document.getElementById('parentElementId').appendChild(tilesWidget.domElement);
You can see an implementation here
Contributions are welcome! Feel free to submit bug reports, feature requests, or pull requests on the GitHub repository. See Contributing.md.
This package is licensed under the GNU Lesser General Public License Version 2.1, with copyright attributed to the University of Lyon.
@ud-viz/widget_3d_tiles
is developed and maintained by VCityTeam. See Contributors.md.