# want to show mvt(.pbf) layer

**URL:** <https://community.cesium.com/t/want-to-show-mvt-pbf-layer/8262>\
**Category:** CesiumJS\
**Created:** [May 16, 2019, 1:40am UTC](https://community.cesium.com/t/want-to-show-mvt-pbf-layer/8262 "2019-05-16T01:40:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sungho\_Yoon](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@Sungho\_Yoon](https://community.cesium.com/u/Sungho_Yoon)\
**Post date:** [May 16, 2019, 1:40am UTC](https://community.cesium.com/t/want-to-show-mvt-pbf-layer/8262/1 "2019-05-16T01:40:00Z")

</div>

**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}](http://localhost:8081/geoserver/gwc/service/wmts?layer=public:sample&tilematrixset=%7BTileMatrixSet%7D&Service=WMTS&Request=GetTile&Version=1.0.0&Format=application/x-protobuf;type=mapbox-vector&TileMatrix=%7BTileMatrixSet%7D:%7BTileMatrix%7D&TileCol=%7BTileCol%7D&TileRow=%7BTileRow%7D)’

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

---

<div class="post-metadata">

**Author:** ![omar](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/omar/32/1999_2.png) [@omar](https://community.cesium.com/u/omar)\
**Post date:** [May 17, 2019, 12:39pm UTC](https://community.cesium.com/t/want-to-show-mvt-pbf-layer/8262/2 "2019-05-17T12:39:32Z")

</div>

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](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](https://cesiumjs.org/Cesium/Build/Apps/Sandcastle/?src=3D%20Tiles%20Terrain%20Classification.html)

---

<div class="post-metadata">

**Author:** ![Sungho\_Yoon](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@Sungho\_Yoon](https://community.cesium.com/u/Sungho_Yoon)\
**Post date:** [May 18, 2019, 2:45am UTC](https://community.cesium.com/t/want-to-show-mvt-pbf-layer/8262/3 "2019-05-18T02:45:42Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![omar](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/omar/32/1999_2.png) [@omar](https://community.cesium.com/u/omar)\
**Post date:** [May 20, 2019, 7:46pm UTC](https://community.cesium.com/t/want-to-show-mvt-pbf-layer/8262/4 "2019-05-20T19:46:24Z")

</div>

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.
