Clone the git repository:
git clone https://github.com/IndoorAtlas/sdk-cordova-examples
cd sdk-cordova-examples/LeafletExample
Set your API keys in www/js/APIKeys.js
. API keys can be generated at https://app.indooratlas.com/apps.
Get a Mapbox access token from https://mapbox.com.
It is also possible to run this example without a Mabox access token, in which
case no outdoor map is shown under the floor plan images.
Add Android platform
cordova platform add android@^12.0.1
Build the project and run it
cordova build
cordova run
Add iOS platform
cordova platform add ios@^7.0.1
Open project in XCode
open platforms/ios/IACordova.xcworkspace
and build using XCode.
Before using wayfinding part of the example, you need to create a wayfinding graph on https://app.indooratlas.com.
You can select a destination by pressing the screen. The route is updated to start from the current location of you whenever a new location is obtained from the IndoorAtlas platform.