Render Mapbox style in CesiumJs. This project is very simple, because the complex rendering task is compeleted by mapbox-gl-js, you should also check Mapbox-vector-tiles-basic-js-renderer for more detail.
Clone the project and then place the file in src to appropriate folder.
- construct ImageryProvider instance
let options = { style: Object // Mapbox Style Object, required. } let provider = new ImageryProvider(options)
- add ImageryProvider instance to Cesium Viewer
cesiumViewer.imageryLayer.addProvider(provider)
There is an simple example, see example folder. run:
git clone https://github.com/kikitte/MVTImageryProvider.git
cd MVTImageryProvider/example
npm i
npm start
- raster layer & background layer are not supported yet.
https://github.com/landtechnologies/Mapbox-vector-tiles-basic-js-renderer