Mapbox GL JS
Mapbox GL JS is a Javascript & WebGL library that renders interactive maps from vector tiles and the [Mapbox GL Style Specification](Style Specification).
It is part of the Mapbox GL ecosystem which includes Mapbox GL Native, a compatible renderer written in C++ with bindings for desktop and mobile platforms.
<script>
tag
Using Mapbox GL JS with a To use the vector tiles and styles hosted on http://mapbox.com, you must create an account and then obtain an access token. You may learn more about access tokens here.
Browserify
Using Mapbox GL JS withTo use the vector tiles and styles hosted on http://mapbox.com, you must create an account and then obtain an access token. You may learn more about access tokens here.
Install the mapbox-gl
npm package
npm install --save mapbox-gl
Instantiate mapboxgl.Map
var mapboxgl = ;mapboxglaccessToken = '<your access token here>';var map = container: '<your HTML element id>' style: 'mapbox://styles/mapbox/streets-v8';
Contributing to Mapbox GL JS
See CONTRIBUTING.md.