com.amap.api.maps.model.particle

## 类 ParticleOverlay

- java.lang.Object
- - com.amap.api.maps.model.BaseOverlay
  - - com.amap.api.maps.model.particle.ParticleOverlay

-     public class ParticleOverlay
      extends BaseOverlay

  粒子效果，可以在地图上实现下雨、下雪和雾霾等天气效果，也可以通过开放的接口自定义 建议在`AMap.OnMapLoadedListener` 之后调用
  Particle effects can simulate weather conditions like rain, snow, and haze on the map, and can also be customized through open APIs. It is recommended to call after `AMap.OnMapLoadedListener`.
  从以下版本开始:
    6.5.0

- - ### 字段概要

    - ### 从类继承的字段 com.amap.api.maps.model.BaseOverlay

      `Field1, Field2, overlayName`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `destroy()` 销毁粒子效果 Destroy the particle effect.
    `int` | `getCurrentParticleNum()` 获取当前系统中粒子个数 Get the current number of particles in the system.
    `void` | `setDuration(long duration)` 整个粒子效果存活时间 The lifetime of the entire particle effect.
    `void` | `setLoop(boolean loop)` 整个粒子效果是否循环 Whether the entire particle effect loops.
    `void` | `setMaxParticles(int maxParticles)` 整个粒子效果的粒子最大数量 The maximum number of particles in the entire particle effect.
    `void` | `setParticleEmission(ParticleEmissionModule particleEmission)` 设置发射率，每隔多少时间发射粒子数量，越多会越密集 Set the emission rate, which determines how many particles are emitted over a certain period of time.
    `void` | `setParticleLifeTime(long lifeTime)` 每个粒子的存活时间 The lifetime of each particle.
    `void` | `setParticleOverLifeModule(ParticleOverLifeModule particleOverLifeModule)` 设置每个粒子生命周期过程中状态变化，包含速度、旋转和颜色的变化 Set the state changes during the lifecycle of each particle, including changes in speed, rotation, and color.
    `void` | `setParticleShapeModule(ParticleShapeModule particleShapeModule)` 设置发射模型，比如所有粒子从一个点出来，或者从某个区域出来 Set the emission model, such as all particles emitting from a single point or from a certain area.
    `void` | `setParticleStartSpeed(VelocityGenerate startSpeed)` 每个粒子的初始速度，单位像素/秒 The initial speed of each particle, in pixels per second.
    `void` | `setStartColor(ColorGenerate startColor)` 每个粒子的初始颜色 The initial color of each particle.
    `void` | `setStartParticleSize(int startParticleSizeX, int startParticleSizeY)` 每个粒子的初始大小，单位像素 The initial size of each particle, in pixels.
    `void` | `setVisible(boolean visible)` 设置 覆盖物的可见属性。

    - ### 从类继承的方法 com.amap.api.maps.model.BaseOverlay

      `method1, method2`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 方法详细资料

    - #### setVisible

          public void setVisible(boolean visible)

      设置 覆盖物的可见属性。
      Set the visibility property of the overlay.
      参数:
        `visible` - 一个布尔值，表示覆盖物是否可见，true表示可见，false表示不可见。
        A boolean value indicating whether the overlay is visible, true means visible, false means invisible.
      从以下版本开始:
        6.5.0

    - #### destroy

          public void destroy()

      销毁粒子效果
      Destroy the particle effect.
      从以下版本开始:
        6.5.0

    - #### setStartParticleSize

          public void setStartParticleSize(int startParticleSizeX,
                                           int startParticleSizeY)

      每个粒子的初始大小，单位像素
      The initial size of each particle, in pixels.
      从以下版本开始:
        6.5.0

    - #### setMaxParticles

          public void setMaxParticles(int maxParticles)

      整个粒子效果的粒子最大数量
      The maximum number of particles in the entire particle effect.
      从以下版本开始:
        6.5.0

    - #### setDuration

          public void setDuration(long duration)

      整个粒子效果存活时间
      The lifetime of the entire particle effect.
      从以下版本开始:
        6.5.0

    - #### setParticleLifeTime

          public void setParticleLifeTime(long lifeTime)

      每个粒子的存活时间
      The lifetime of each particle.
      从以下版本开始:
        6.5.0

    - #### setParticleStartSpeed

          public void setParticleStartSpeed(VelocityGenerate startSpeed)

      每个粒子的初始速度，单位像素/秒
      The initial speed of each particle, in pixels per second.
      从以下版本开始:
        6.5.0

    - #### setLoop

          public void setLoop(boolean loop)

      整个粒子效果是否循环
      Whether the entire particle effect loops.
      从以下版本开始:
        6.5.0

    - #### setParticleShapeModule

          public void setParticleShapeModule(ParticleShapeModule particleShapeModule)

      设置发射模型，比如所有粒子从一个点出来，或者从某个区域出来
      Set the emission model, such as all particles emitting from a single point or from a certain area.
      从以下版本开始:
        6.5.0

    - #### setParticleEmission

          public void setParticleEmission(ParticleEmissionModule particleEmission)

      设置发射率，每隔多少时间发射粒子数量，越多会越密集
      Set the emission rate, which determines how many particles are emitted over a certain period of time. The higher the rate, the denser the particles.
      从以下版本开始:
        6.5.0

    - #### getCurrentParticleNum

          public int getCurrentParticleNum()

      获取当前系统中粒子个数
      Get the current number of particles in the system.
      从以下版本开始:
        6.5.0

    - #### setParticleOverLifeModule

          public void setParticleOverLifeModule(ParticleOverLifeModule particleOverLifeModule)

      设置每个粒子生命周期过程中状态变化，包含速度、旋转和颜色的变化
      Set the state changes during the lifecycle of each particle, including changes in speed, rotation, and color.
      从以下版本开始:
        6.5.0

    - #### setStartColor

          public void setStartColor(ColorGenerate startColor)

      每个粒子的初始颜色
      The initial color of each particle.
      从以下版本开始:
        6.5.0