2025-05-19 14:26:18 +08:00
|
|
|
export default {
|
|
|
|
|
|
|
|
|
|
background: {
|
|
|
|
|
'id': '底色',
|
|
|
|
|
'type': 'fill',
|
|
|
|
|
'source': '县界',
|
|
|
|
|
'layout': {},
|
|
|
|
|
'paint': {
|
|
|
|
|
'fill-opacity': 0.7,
|
|
|
|
|
'fill-color': '#38467f',
|
|
|
|
|
}
|
|
|
|
|
},
|
2025-05-21 09:17:19 +08:00
|
|
|
heatmap: {
|
|
|
|
|
'id': '热力图',
|
|
|
|
|
'type': 'raster',
|
|
|
|
|
'source': 'heatmapImg',
|
|
|
|
|
'layout': {
|
|
|
|
|
'visibility':'none'
|
|
|
|
|
},
|
|
|
|
|
'paint': {
|
|
|
|
|
'raster-opacity': 1,
|
|
|
|
|
}
|
|
|
|
|
},
|
2025-05-19 14:26:18 +08:00
|
|
|
water: {
|
|
|
|
|
'id': '水系',
|
|
|
|
|
'type': 'fill',
|
|
|
|
|
'source': '水系',
|
|
|
|
|
'layout': {},
|
|
|
|
|
'paint': {
|
|
|
|
|
'fill-color': '#135d9a',
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
rivl: {
|
|
|
|
|
'id': '河流',
|
|
|
|
|
'type': 'line',
|
|
|
|
|
'source': '河流',
|
|
|
|
|
'layout': {
|
|
|
|
|
'line-join': 'round'
|
|
|
|
|
},
|
|
|
|
|
'paint': {
|
|
|
|
|
'line-color': '#135d9a',
|
|
|
|
|
'line-width': [
|
|
|
|
|
'case',
|
|
|
|
|
['==', ['get', 'LEVEL'], 1], 2.2,
|
|
|
|
|
['==', ['get', 'LEVEL'], 2], 2.2,
|
|
|
|
|
['==', ['get', 'LEVEL'], 3], 2.2,
|
|
|
|
|
['==', ['get', 'LEVEL'], 4], 1.6,
|
|
|
|
|
['==', ['get', 'LEVEL'], 5], 1.3,
|
|
|
|
|
1
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
rivlLabel: {
|
|
|
|
|
id: '河流-label',
|
|
|
|
|
type: 'symbol',
|
|
|
|
|
source: '河流',
|
|
|
|
|
minzoom: 10,
|
|
|
|
|
layout: {
|
|
|
|
|
"symbol-placement": 'line',
|
|
|
|
|
'text-size': [
|
|
|
|
|
'case',
|
|
|
|
|
['==', ['get', 'LEVEL'], 1], 15,
|
|
|
|
|
['==', ['get', 'LEVEL'], 2], 14,
|
|
|
|
|
['==', ['get', 'LEVEL'], 3], 13,
|
|
|
|
|
['==', ['get', 'LEVEL'], 4], 12,
|
|
|
|
|
['==', ['get', 'LEVEL'], 5], 11,
|
|
|
|
|
10
|
|
|
|
|
],
|
|
|
|
|
'text-font': ['Roboto Black'],
|
|
|
|
|
'text-field': ['get', 'RVNM'],
|
|
|
|
|
'text-anchor': 'center',
|
|
|
|
|
'text-max-width': 6,
|
|
|
|
|
'symbol-sort-key': ['get', 'LEVEL'],
|
|
|
|
|
},
|
|
|
|
|
'paint': {
|
|
|
|
|
'text-color': '#fff',
|
|
|
|
|
'text-halo-color': '#000',
|
|
|
|
|
'text-halo-width': 1
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
plant: {
|
|
|
|
|
'id': '绿地',
|
|
|
|
|
'type': 'fill',
|
|
|
|
|
'source': '绿地',
|
|
|
|
|
'layout': {},
|
|
|
|
|
'paint': {
|
|
|
|
|
'fill-color': '#288a7a',
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
plantZone: {
|
|
|
|
|
'id': '绿色区域',
|
|
|
|
|
'type': 'fill',
|
|
|
|
|
'source': '绿色区域',
|
|
|
|
|
'layout': {},
|
|
|
|
|
'paint': {
|
|
|
|
|
'fill-color': '#288a7a',
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
xj: {
|
|
|
|
|
shape: {
|
|
|
|
|
'id': '县界',
|
|
|
|
|
'type': 'line',
|
|
|
|
|
'source': '县界',
|
|
|
|
|
'layout': {
|
|
|
|
|
'line-join': 'round'
|
|
|
|
|
},
|
|
|
|
|
'paint': {
|
|
|
|
|
'line-color': '#7ce6ca',
|
|
|
|
|
'line-width': {
|
|
|
|
|
'type': 'exponential',
|
|
|
|
|
'base': 2,
|
|
|
|
|
'stops': [
|
|
|
|
|
[10, 3],
|
|
|
|
|
[18, 22]
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
shape2: {
|
|
|
|
|
'id': '县界-dash',
|
|
|
|
|
'type': 'line',
|
|
|
|
|
'source': '县界',
|
|
|
|
|
'layout': {
|
|
|
|
|
'line-join': 'round'
|
|
|
|
|
},
|
|
|
|
|
'paint': {
|
|
|
|
|
'line-dasharray': [3, 3],
|
|
|
|
|
'line-color': '#7ce6ca',
|
|
|
|
|
'line-width': {
|
|
|
|
|
'type': 'exponential',
|
|
|
|
|
'base': 2,
|
|
|
|
|
'stops': [
|
|
|
|
|
[10, 3],
|
|
|
|
|
[18, 22]
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
xzj: {
|
|
|
|
|
shape: {
|
|
|
|
|
'id': '乡镇边界',
|
|
|
|
|
'type': 'line',
|
|
|
|
|
'source': '乡镇边界',
|
|
|
|
|
'layout': {
|
|
|
|
|
'line-join': 'round'
|
|
|
|
|
},
|
|
|
|
|
'paint': {
|
|
|
|
|
'line-color': '#7ce6ca',
|
|
|
|
|
'line-width': {
|
|
|
|
|
'type': 'exponential',
|
|
|
|
|
'base': 2,
|
|
|
|
|
'stops': [
|
|
|
|
|
[10, 0.6],
|
|
|
|
|
[18, 16]
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
};
|