sceneControl.sceneControlInitedComplete(new SceneControl.SceneControlInitedCallBackListenner() {
@Override
public void onSuccess(String s) {
ColorDictionary colorDictionary = new ColorDictionary();
colorDictionary.setColor(0, new Color(0, 150, 255));
colorDictionary.setColor(10, new Color(50, 150, 255));
colorDictionary.setColor(15, new Color(100, 150, 255));
colorDictionary.setColor(15, new Color(120, 150, 255));
HypsometricSetting mhypsometricSetting = new HypsometricSetting();
mhypsometricSetting.setDisplayMode(HypsometricSettingDisplayMode.HypsometricSettingDisplayModeFace);
mhypsometricSetting.setMinVisibleValue(45);
mhypsometricSetting.setMaxVisibleValue(50);
mhypsometricSetting.setOpacity(50);
mhypsometricSetting.setColorDictionary(colorDictionary);
Layer3Ds layer3ds = mainActivity.getSceneControl().getScene().getLayers();
Layer3D layer3d = layer3ds.get(layerName);
Layer3DOSGBFile layer3dosgbfile = (Layer3DOSGBFile) layer3d;
layer3dosgbfile.setHypsometricSetting(mhypsometricSetting);
}
});
模型高度在32.4m~62.4m之间,这样写分层设色的代码,效果出不来;通过本地masai数据测试那份代码(timeschedule和handler循环),用在本地masai工作空间是可以的,但是用在后台iserver发布的osgb三维模型数据,是没有效果的,能不能帮忙解答一下这个问题。
谢谢!