Legacy
Mapbox.js is no longer in active development. To learn more about our newer mapping tools see Mapbox GL JS.
Low bandwidth maps
Pass a format value to tileLayers to request a lower quality tiles in areas of low bandwidth. See a full list of supported formats from our Static Tiles API documentation.
Get a free Mapbox account to create your own custom map and use it in this example.
Use this example by copying its source into your own HTML page and
replacing the Map ID
with
one of your own from your projects.
Having trouble with JavaScript? Try out Codecademy
or contact our support team.