qgis中加载矢量切片
{
"version": 8,
"name": "Dark",
"sprite": "http://100.118.120.15:8086/map/data/sprite",
"glyphs": "http://100.118.120.15:8086/map/data/fonts/{fontstack}/{range}.pbf",
"sources": {
"base-china": {
"type": "vector",
"scheme": "tms",
"tiles": [
"http://localhost:8086/geoserver/gwc/service/tms/1.0.0/sfmap%3Alayer_base@EPSG%3A900913@pbf/{z}/{x}/{y}.pbf"
]
}
},
"layers": [
{
"id": "background",
"type": "background",
"paint": {
"background-color": "rgba(244, 244, 244, 0.05)"
}
},
{
"id": "layer_province",
"type": "line",
"source": "base-china",
"source-layer": "layer_province",
"layout": {
"line-join": "bevel",
"visibility": "visible",
"line-cap": "butt"
},
"paint": {
"line-color": "#fdcda7",
"line-width": 1.6,
"line-opacity": 1
}
},
{
"id": "layer_capital_label",
"type": "symbol",
"source": "base-china",
"source-layer": "layer_capital",
"layout": {
"text-field": [
"get",
"name"
],
"text-font": [
"微软雅黑"
],
"text-size": 12,
"icon-image": "icons_28_15_3",
"icon-size": 1,
"text-offset": [
0,
1.8
],
"text-anchor": "bottom"
},
"paint": {
"text-color": "#8b8b8b"
},
"filter": [
"!=",
"name",
"北京"
]
}
]
}