Mapbox API down?

70 views
Skip to first unread message

Greg Angevine

unread,
Dec 12, 2016, 8:25:01 PM12/12/16
to cesium-dev

Has the MapboxImageryProvider stopped working? Mapbox Streets and Mapbox Streets Classic basemaps are no longer downloading tiles, even in the Cesium Sandcastle.

Thx
Greg

Erik Andersson

unread,
Dec 13, 2016, 11:31:21 AM12/13/16
to cesium-dev

Hi Greg,

Thanks for reporting this.

The problem seems to be that the Mapbox access token that Cesium uses is now invalid -- we'll look into getting a new one. The token is not intended for extended use, and it's possible that the quota for that token has been exceeded. When using the `MapboxImageryProvider` you can supply your own token from Mapbox. Using your own token will look like this:

// Mapbox tile provider
var mapbox = new Cesium.MapboxImageryProvider({
    mapId: 'mapbox.streets',
    accessToken: 'thisIsMyAccessToken'
});

Erik

Hannah Pinkos

unread,
Dec 13, 2016, 12:20:02 PM12/13/16
to cesium-dev
Hi Greg,

Yes, Erik is correct.  We supply a default API token to preview mapbox tiles, but we require users to generate their own API token for applications they're going to put into production.
You can generate an access token from your account page: https://www.mapbox.com/studio/account/tokens

Best,

Hannah

Greg Angevine

unread,
Dec 13, 2016, 1:19:21 PM12/13/16
to cesium-dev
Thanks Erik and Hannah, that makes sense, we'll setup our own access token.

Cheers,
Greg
Reply all
Reply to author
Forward
0 new messages