Package Exports
- mapbox-gl
- mapbox-gl/dist/mapbox-gl.css
- mapbox-gl/js/geo/transform
- mapbox-gl/js/ui/control/control
- mapbox-gl/js/util/ajax.js
- mapbox-gl/js/util/browser.js
- mapbox-gl/js/util/browser/ajax.js
- mapbox-gl/js/util/browser/browser.js
- mapbox-gl/js/util/browser/canvas.js
- mapbox-gl/js/util/browser/dispatcher.js
- mapbox-gl/js/util/canvas.js
- mapbox-gl/js/util/dispatcher.js
- mapbox-gl/js/util/evented
- mapbox-gl/js/util/util
- mapbox-gl/package.json
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (mapbox-gl) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
A WebGL JavaScript interactive maps library that can render Mapbox Vector Tiles.
Setup
To install dependencies and build the source files:
$ npm install
To serve the debug page:
$ npm start &
$ open http://localhost:3000/debug/?access_token=$MapboxAccessToken
This assumes you have the MapboxAccessToken
environment variable set to a Mapbox API token from https://www.mapbox.com/account/apps/.
It will watch the source files and automatically rebuild the browserify bundle whenever a change is detected.
Tests are written in tape
. Most tests run within nodejs, but a few require a browser environment.
npm test
: local tests run in nodejs - excludes browser testsnpm run cov
: generate test coverage report - excludes browser testsnpm run test-browser
: run all tests locally in a browser
API Documentation
npm run docs
: generate API docs
Style Reference
Sprite Generation
./bin/build-sprite.js [outname] [inputdirs]
: generate an image sprite by running this script on one or more directories of PNG images.