let len = this.viewer.dataSources.length
for (let i = 0; i < len; i++) {
let item = this.viewer.dataSources.get(i)
if (codes.includes(item['code'])) {
item.show = show
let dataSource = item
if (dataSource['code'] === 'one:province') {
dataSource.entities.values.forEach(function (entity) {
if(entity.properties['CODE'].getValue()==='110000000'){
entity.polygon.material = Cesium.Color.RED;
}
});
}
}
}
layer+feature
最新推荐文章于 2024-11-02 08:58:20 发布