您好,1、如果是通过iserver发布的mvt,可以在桌面进行分级配图后再发服务。
2、前端在加载mvt时,通过addLayer对需要分级的图层进行线宽设置,例如:
map.addLayer({
"id": "China_Boundary",
"type": "line",
"source": "vector-tiles",
"source-layer": "China_Boundary_A_ln@China",
"paint": {
"line-color": "hsl(230, 8%, 51%)",
"line-width": {
"base": 1,
"stops": [
[3,6],
[10,6]
]
}
}
});
参考示例:https://iclient.supermap.io/examples/mapboxgl/editor.html#mvtVectorTile