This package has been deprecated

Author message:

This package has reached end of life and is deprecated. Please refer to our support policy, https://www.itwinjs.org/learning/api-support-policies/, and changelog, https://www.itwinjs.org/v3/changehistory/3.0.0/#package-name-changes.

@bentley/map-layers
TypeScript icon, indicating that this package has built-in type declarations

2.19.53 • Public • Published

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

  1. Select and prepare an iTwin.js host application. You can use the [ui-test-app] to host the extension, for example.

  2. The dependencies are installed as part of "rush install" in the iTwin.js repository.

  3. 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
  1. Copy all the output files in the lib/build directory tree to imjs_extensions/map-layers directory in the web resources of the host application.

Optionally symbolic link files on window. Example below sets up ui-test-app.

cd/d D:\imodeljs\test-apps\ui-test-app\build
md imjs_extensions
cd imjs_extensions
mklink /d map-layers D:\imodeljs\extensions\map-layers\lib\extension\
  1. Start the host application - go to its directory and run:
npm run start:servers
  1. Open a web browser (e.g., Chrome or Edge), and browse to localhost:3000.

  2. Start the extension using the ExtensionTool - ExtensionTool.run("map-layers");

Optionally in ui-test-app use the key-in browser tool and set Key-in to "load extension" and Arguments to "map-layers". Once started look for the "Map Layers" widget in the right panel.

Contributing

Contributing to iTwin.js

Package Sidebar

Install

npm i @bentley/map-layers

Weekly Downloads

0

Version

2.19.53

License

MIT

Unpacked Size

1.79 MB

Total Files

89

Last publish

Collaborators

  • aruniverse
  • colinkerr
  • cshafer
  • imodeljs
  • wgoehrig