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 Map JS SDK is open-source and available from a variety of sources:
<!-- Latest patch release --> <script src="https://cdn.airmap.io/js/maps/2.0.0/airmap.map.min.js"></script> <!-- Latest minor release --> <script src="https://cdn.airmap.io/js/maps/v2.0/airmap.map.min.js"></script>
bower install airmap-maps
npm install airmap-maps
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>');
Learn to create a map with the Map SDK
|Create a Map|