mapbox superset
mapbox super-set is a bunch of functionality used in eegle.io.
mapbox super-set works with mapbog-gl-js.
Install
From npm : npm install mapbox-superset
.
Build from source
Simply run npm install && npm run build
. It will use webpack to bundle ES6 javascript.
Testing
We use Jest for testing our code. Run npm test
to start the test runner.
Script
npm test
: Run the unit tests
npm run build
: bundle the whole library
npm run watch
: bundle the whole library and recompile on file changed
Usage
mapbox-superset use umd modules, you can use :
;
or
const mapboxSuperset = ;
or directly in the html
minified verson
Example
Examples can be found here
Marker
; mapboxglaccessToken = 'MAPBOX_TOKEN'; const map = container: 'map' style: 'mapbox://styles/mapbox/basic-v9'; map;
Contribution
Any contribution is welcome !