Mapbox and Polymaps

To use Mapbox with Polymaps, you can use the Mapbox Maps API:

var accessToken = <your Mapbox access token>
var po = org.polymaps;
var map = po.map()
    .container(document.getElementById("map").appendChild(po.svg("svg")))
    .add(po.interact())
    .add(po.hash());
map.add(po.image()
    .url(po
        .url("https://api.mapbox.com/v4/mapbox.streets/{z}/{x}/{y}.png?access_token=" + accessToken)));
Next article:

Set the initial position of your map

Additional questions? Ask our support team or learn more about How Mapbox Works.