|
@@ -70,8 +70,6 @@ onMounted(() => {
|
|
|
.then(townshipGeojson => {
|
|
|
L.geoJSON(townshipGeojson, {
|
|
|
style: (feature) => {
|
|
|
- // 关键:从乡镇数据中获取所属区县信息(假设属性字段为county)
|
|
|
- // 请根据你的实际GeoJSON属性字段调整(可能是district、parent等)
|
|
|
const countyName = feature.properties.FXZQMC || '';
|
|
|
|
|
|
return {
|
|
@@ -121,7 +119,7 @@ onMounted(() => {
|
|
|
const emission = props.particulate_emission !== null ? parseFloat(props.particulate_emission) : null;
|
|
|
const formattedEmission = emission === null || isNaN(emission)
|
|
|
? '未知'
|
|
|
- : `${emission.toFixed(3)} t/a`;
|
|
|
+ : `${emission} t/a`;
|
|
|
|
|
|
const marker = L.marker([lat, lng], {
|
|
|
icon: blueTriangle,
|