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.
- 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.
For the base imagery to appear, you will need to include a
IMJS_BING_MAPS_KEY
to your environment variables.
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.