All docschevron-rightHelpchevron-rightarrow-leftGlossarychevron-rightMapbox.js

Mapbox.js

alert
LEGACY

Mapbox.js is no longer in active development. To learn more about our newer mapping tools see Mapbox GL JS.

Mapbox.js, a plugin for Leaflet, is a JavaScript library that allows you to add an interactive map to your website. Mapbox.js is no longer in active development. Mapbox.js natively supports raster tilesets, and can support vector tilesets using L.mapbox.styleLayer.

Creating a new map? Mapbox GL JS is the modern alternative to Mapbox.js. If you're creating a new map today, you should use Mapbox GL JS instead of Mapbox.js.

Related resources: