want to show mvt(.pbf) layer

1. A concise explanation of the problem you’re experiencing.

I want to show MVT(mapbox vector tile)(pbf format) layer.

but When I looked in the documentation, only png or jpeg formats were supported.

I would like to ask you for your help and advice.

2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.

var url = ‘http://localhost:8081/geoserver/gwc/service/wmts?layer=public:sample&tilematrixset={TileMatrixSet}&Service=WMTS&Request=GetTile&Version=1.0.0&Format=application/x-protobuf;type=mapbox-vector&TileMatrix={TileMatrixSet}:{TileMatrix}&TileCol={TileCol}&TileRow={TileRow}

var layer = new Cesium.WebMapTileServiceImageryProvider({

url: url,

layer:‘public:sample’,

format: ‘application/x-protobuf;type=mapbox-vector’,

style:‘polygon’,

tileMatrixSetID:“EPSG:900913”,

});

3. The Cesium version you’re using, your operating system and browser.

Cesium 1.56

Geoserver 2.12.3

What kind of data is it? If you can export it as or convert it to GeoJSON then you can load it in Cesium.

For very large geometries, the long term solution is a vector format for 3D Tiles. You can see the roadmap for that here:

https://github.com/AnalyticalGraphicsInc/3d-tiles/issues/25

It’s currently experimental, but here’s an example of it in Cesium:

https://cesiumjs.org/Cesium/Build/Apps/Sandcastle/?src=3D%20Tiles%20Terrain%20Classification.html

I use 2D polygon data.

More than 10 million pieces of data can be displayed on one screen.

So, geojson or png can not be used because the transfer speed is slow.

As a workaround, you can upload the PNG to Cesium ion to tile it. That’s how the global satellite imagery and the road labels etc. in Cesium are loaded. This does mean that it will no longer be possibly to change the color of individual polygons if that’s important to your use case.