修改地图加载细节

This commit is contained in:
wzy-warehouse
2026-04-09 10:51:58 +08:00
parent 6eb04187d7
commit ced2ead6c1
10 changed files with 14 additions and 21 deletions
+1 -3
View File
@@ -45,13 +45,11 @@ onMounted(() => {
CesiumUtilsSingleton.batchAddGeoJsonLayers(
areasId,
areas,
new Array(areas.length).fill(true),
areas.map((area, index) => {
const areaName = area.features[0].properties.name;
console.log(areaName);
return {
showName: true,
default: true,
isDefault: true,
labelStyle: {
labelText: areaName,
center: [area.features[0].properties.center[0], area.features[0].properties.center[1], 0],