lsimkins / mapbox-gl-js

JavaScript library for WebGL-based client-side vector maps

Home Page:https://www.mapbox.com/mapbox-gl/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status

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 tests
  • npm run cov: generate test coverage report - excludes browser tests
  • npm run test-browser: run all tests locally in a browser

npm run docs: generate API docs

Recommended Reading

Learning WebGL

GL performance

Misc

About

JavaScript library for WebGL-based client-side vector maps

https://www.mapbox.com/mapbox-gl/

License:Other


Languages

Language:JavaScript 94.5%Language:GLSL 3.7%Language:CSS 1.0%Language:HTML 0.5%Language:Shell 0.3%