Help with Cesium Imagery Provider

232 views
Skip to first unread message

Adam

unread,
Apr 7, 2015, 12:22:26 AM4/7/15
to cesiu...@googlegroups.com
Hi All,
I'm struggling getting the right cesium imagery provider to read mapbox tiles( https://www.mapbox.com/developers/api/maps/#tiles )
OSM imagery provider doesn't read these tiles, any recommendation how to get this to work?
Appreciate all the answers...
Adam

Kevin Ring

unread,
Apr 7, 2015, 12:30:25 AM4/7/15
to cesiu...@googlegroups.com
Hi Adam,

I think something like this is close:

var imageryProvider = new Cesium.TileMapServiceImageryProvider({
    tilingScheme : new Cesium.WebMercatorTilingScheme()
});

But it likely won't work because MapBox requires the access_token query parameter, which the TMS provider does not support.

It should be really straightforward to fork TileMapServiceImageryProvider.js and make the necessary modifications, though.  Better yet, a generic "template URL" imagery provider like Leaflet's TileLayer (http://leafletjs.com/reference.html#tilelayer) would be easy to create, and we'd welcome a pull request if someone implements it.

Kevin


Adam

--
You received this message because you are subscribed to the Google Groups "cesium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

osta...@gmail.com

unread,
Apr 7, 2015, 9:28:41 AM4/7/15
to cesiu...@googlegroups.com
Thanks Kevin for your guideline...
Reply all
Reply to author
Forward
0 new messages