You must have an AirMap Developer account to use the AirMap Map JS SDK. If you do not have an account, sign up for one at the AirMap Developer Portal.
Since the AirMap Map SDK is built on top of Mapbox, you must also have a Mapbox API Key. You can sign up for a Mapbox API Key here .
The Contextual Airspace plugin is open-source and available from a variety of sources:
<!-- Latest patch release --> <script src="https://cdn.airmap.io/js/contextual-airspace/1.0.0/airmap.contextual-airspace-plugin.min.js"></script> <!-- Latest minor release --> <script src="https://cdn.airmap.io/js/contextual-airspace/v1.0/airmap.contextual-airspace-plugin.min.js"></script>
bower install airmap-contextual-airspace-plugin
npm install airmap-contextual-airspace-plugin
After installing the airmap-auth module, you'll need bundle it up along with all of its dependencies using a tool like webpack or browserify. If you don't have a build process in place for managing dependencies, it is recommended that you use the module via bower or the CDN.
An example of using the Map SDK is included in the Github repository:
localStorage.setItem('AIRMAP_API_KEY', '<your_key>'); localStorage.setItem('MAPBOX_ACCESS_TOKEN', '<your_token>');
Updated 4 days ago
Learn to use the tile server