Legacy
Mapbox.js is no longer in active development. To learn more about our newer mapping tools see Mapbox GL JS.
List markers and pan to clicked items
Shows marker titles in an HTML list and pans to clicked markers when necessary. This example could be modified to support just panning, just opening tooltips, or a different HTML layout for marker contents.
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.