--- layout: pages class: fill-light options: full ---

Mapbox GL JS

Mapbox GL JS is a JavaScript library that uses WebGL to render interactive maps from vector tiles and Mapbox styles.

It is part of the Mapbox GL ecosystem which includes Mapbox Mobile, a suite of compatible SDKs for native desktop and mobile applications.

Mapbox GL JS gallery
mapbox-gl.js v{{site.data.package.version}} Get started
{% highlight html %} {% endhighlight html %}
Copy code
Include the JavaScript and CSS files in the <head> of your HTML file.
{% capture getting_started_html %}
{% endcapture %} {% highlight html %}{{ getting_started_html | insert_token }}{% endhighlight %}
Copy code
Include this code in the <body> of your HTML file to initialize a map on the page.
{{ content }}