您想将Geoserver的wmts服务与铯js一起使用。
我正在尝试将其格式化为“ application / x-protobuf; type = mapbox-vector
”。
但它不起作用。
我使用的是Cesium js 1.56,Geoserver 2.12.3
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",
});