可以设置的呢
function displayRain() { //初始化 rainRegion,降雨/降雪粒子关联的 Geometry 必须为 GeoRegion3D 类型 var point3Ds = new SuperMap.Web.Core.Point3Ds(); point3Ds.add(new SuperMap.Web.Core.Point3D(114.5628, 40.272031, 200)); point3Ds.add(new SuperMap.Web.Core.Point3D(120.11412, 40.383005, 200)); point3Ds.add(new SuperMap.Web.Core.Point3D(119.7380, 39.11966, 200)); point3Ds.add(new SuperMap.Web.Core.Point3D(114.5358, 39.15709, 200)); var rainRegion = new SuperMap.Web.Core.GeoRegion3D(); rainRegion.addPart(point3Ds); //初始化 geoParticel,设置粒子效果类型并关联 Gemotry 对象为 rainRegion var rainParticle = new SuperMap.Web.Core.GeoParticle(); rainParticle.set_particleType(SuperMap.Web.Core.ParticleType.Rain); if (rainParticle.makeWithGeometry(rainRegion) == false) { return; } //初始化 rainParticle 持有的 rainPariticleSystem var rainparticleSystem = rainoParticle.getParticleSystemByIndex(0); if (rainparticleSystem == null) { return; } //设置粒子大小、每秒产生的粒子数量 rainparticleSystem.set_particleWidth(500); rainparticleSystem.set_particleHeight(700); rainparticleSystem.set_particleCountPerSecond(13000); //获取 rainStyle3D,设置绝对高度模式属性并定义相应的高度值,用以实现雨从天空缓缓的落下 var rainStyle3D = new SuperMap.Web.Core.Style3D(); rainStyle3D.set_extendHeight(30000); rainStyle3D.set_altitudeMode(SuperMap.Web.Realspace.AltitudeMode.ABSOLUTE); //获取 feature3D,关联 geometry 对象为 rainParticle 并设置 style3D 对象为 rainStyle3D var feature3D = new SuperMap.Web.Core.Feature3D(); feature3D.set_geometry(rainParticle); feature3D.set_style3D(rainStyle3D); //获取 trackingLayer 图层添加要素对象 trackingLayer.add(feature3D, "Rain"); }