是的i,参考代码如下;
function addModel()
{
//往跟踪层添加模型,包括汽车模型
jeepModel = new SuperMap.Web.Core.GeoModel();
var modelurl = htmlUrl + "/RealspaceSample/jeep.zip";
jeepModel.fromModelFile(modelurl);
jeepModel.set_position(new SuperMap.Web.Core.Point3D(position.x, position.y, 6.50));
var style = new SuperMap.Web.Core.Style3D();
style.set_altitudeMode(SuperMap.Web.Realspace.AltitudeMode.RELATIVE_TO_GROUND);
style.set_bottomAltitude("3.5");
var feature = new SuperMap.Web.Core.Feature3D();
feature.set_geometry(jeepModel);
feature.set_style3D(style);
trackingLayer.add(feature,"jeep");
camera.set_longitude(position.x);
camera.set_latitude(position.y+0.0002);
camera.set_altitude(40);
camera.set_tilt(75);
scene.get_flyingOperator().flyTo(camera);
}