var promise = viewer.scene.open(window._CONFIG['QZXY'])
Cesium.when(promise, (layers) => {
var listlayers = layers
window.layers = layers
listlayers.forEach((res, i) => {
res.selectedColor = ''
var hyp = new Cesium.HypsometricSetting()
function setHypsometric(layer) {
hyp.emissionTextureUrl = '/haiyuan/static/img/cai.jpg'
hyp.emissionTexCoordUSpeed = 0.25
layer.hypsometricSetting = {
hypsometricSetting: hyp,
}
}
setHypsometric(res)
var style3D = new Cesium.Style3D()
var color = new Cesium.Color(1.0, 1.0, 1.0,0.5)
style3D.fillForeColor = color
res.style3D = style3D
res.refresh()
})
})
这个没有效果是为什么