passing an access token to mapbox

Hi all,

Is there a way to pass the access token to utilized the mapbox v4 maps ? The zoomlevel and maps must be in the middle in order to get the maps

http://api.tiles.mapbox.com/v4/mapbox.streets/2/0/0.png?access_token=my.token

The problem is that Cesium does this:

http://api.tiles.mapbox.com/v4/mapbox.streets?access_token=my.token/2/0/0.png

which will fail on the access

Thanks,

Jim

Hi, I have the same problem loading the mapbox v4 maps in Cesium, mapbox v3 maps works fine but can not get v4 maps to work, please advise...

Hello, im facing the same situation, have any of you solved??? please let me know!!!

Thank you!!!

Hello, as I recently wrote, I was facing the same situation, but i Fix it using the next code:

var mapBoxImageryProvider = new Cesium.OpenStreetMapImageryProvider({
  url : ‘https://a.tiles.mapbox.com/v4/my.map’,
  fileExtension : ‘png?access_token=my.token’,
  credit : new Cesium.Credit(
      ‘MapBox v4.0’, credit,
      ‘https://www.mapbox.com/’)
});

I use the fileExtension option to pass my token.

It generates the Url like this:
http://api.tiles.mapbox.com/v4/my.map/Z/X/Y.png?access_token=my.token

Hope it helps!!!!