您好,不好意思久等了。请参考如下代码:
var geoEllipsoid = new SuperMap.Web.Core.GeoEllipsoid(5,5,5,0); // 注意将坐标换为您数据所在范围内,否则不容易看见。 geoEllipsoid.set_position(new SuperMap.Web.Core.Point3D(116.386580555556, 39.9921138888889, 10)); // 注意得获取三维模型对象加到Feature3D再加到跟踪层。 var geoModelOfEllipsoid = geoEllipsoid.getGeoModel(100,100); var feature3D = new SuperMap.Web.Core.Feature3D(); feature3D.set_geometry(geoModelOfEllipsoid); var style3D = new SuperMap.Web.Core.Style3D(); style3D.set_altitudeMode(2); // 绝对高度 feature3D.set_style3D(style3D); var trackingLayer3D = scene.get_trackingLayer3D(); trackingLayer3D.add(feature3D,"Ellipsoid1");