Cesium.SuperMapVersion '43249'
加载地块layer模型, 鼠标上移会变紫蓝色。
curLayer.selectedColor = Cesium.Color.WHITE; 用这代码,控制上移地块模型上,还显示原色(灰白色)。
点击地块模型变色, lay.setObjsColor(smids, selectedColor); 这个代码变绿色没有作用,
鼠标上移到模型上,会变这个蓝紫色。
我这边使用代码能够设置颜色。代码如下:
var cbdlayer = scene.layers.find("Building@CBD") cbdlayer.setObjsColor([7,3,236],Cesium.Color.RED)