Geotag Photo Viewer Example Plugin
Copyright © Bentley Systems, Incorporated. All rights reserved.
An iModel.js Plugin that interrogates Project Share for geoTagged jpeg files, displays markers at their position in the iModel, and opens them in another window when the marker is clicked.
This plugin is 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.
Development Setup
-
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 repository.
-
Build the plugin as part of the "rush build" in the iModel.js repository, or separately build using the npm build command.
npm run build
-
Copy all the output files in the lib/build directory tree to imjs_plugins/geoPhoto directory in the web resources 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.
-
Start the plugin using the PluginTool - PluginTool.run("localhost:3000/geoPhoto");