@itwin/map-layers
v5.6.2
Published
Extension that adds a Map Layers Widget
Downloads
6,865
Readme
MapLayers Extension/Package
Copyright © Bentley Systems, Incorporated. All rights reserved. See LICENSE.md for license terms and full copyright notice.
An iTwin.js Extension that adds a widget for attaching and updating map attachments in a view:
This extension serves as an example of a extension that can be added to iTwin.js host applications. See http://itwinjs.org for comprehensive documentation on the iTwin.js API and the various constructs used in this sample.
This package can also be installed into an application and the method MapLayersUI.initialized() called during the host IModelApps initialize processing.
Development Setup
Select and prepare an iTwin.js host application. You can use the [ui-test-app] to host the extension, for example.
The dependencies are installed as part of "rush install" in the iTwin.js repository.
Build the extension as part of the "rush build" in the iTwin.js repository, or separately build using the npm build command.
npm run build
Start the host application - go to its directory and run:
npm run start:servers
Open a web browser (e.g., Chrome), and browse to http://localhost:3000.