修改kml图层要素的高度模式为贴对象

0 投票

idesktop可以修改kml要素为贴对象,组件.net怎么实现?

10月 15 分类:  33次浏览 | 用户: Four1 初出茅庐 (25 分)

1个回答

0 投票

修改对象的风格geostyle3d,在geostyle3d里面可以设置

AltitudeMode高度模式就可以了
10月 15 用户: 程逸诗 名扬四海 (3,375 分)
那怎么获取到要素图层对象呢?就是kml要素对应图层

Layer3Dkml layer3dkml = sceneControl1.Scene.Layers[0] as Layer3Dkml;  layer3dkml.Features.FindFeature(id, Feature3DSearchOption.AllFeatures);  Feature3D fes = layer3dkml.Features.FindFeature(id, Feature3DSearchOption.AllFeatures);  

GeoPlacemark geoplace = fes.Geometry as GeoPlacemark;  

Geometry geomod = geoplace.Geometry;

...