Copyright © 2019 Bentley Systems, Incorporated. All rights reserved.
An iModel.js example Plugin that demonstrates adding a WMS (Web Map Service) tiled graphics provider to the graphics of a view:
This plugin serves as an example of a plugin that can be added to iModel.js host applications. See http://imodeljs.org for comprehensive documentation on the iModel.js API and the various constructs used in this sample.
-
Select and prepare an iModel.js host application. You can use the Simple Viewer App, for example.
-
The dependencies are installed as part of "rush install" in the iModel.js monorepository.
-
Build the plugin as part of the "rush build" in the iModel.js monorepository, or separtely build using the npm build command.
npm run build
-
Copy the output files in lib/webresource to the corresponding directories in the output directory of the host application.
-
Start the host application - go to its directory and run:
npm run start:servers
- Open a web browser (e.g., Chrome or Edge), and browse to localhost:3000.