Skip to content

wave

When the animation mode is turned on, the plane point layer is a special layer type: water wave point. The layer is made up of rings that spread outward.

案例

accomplish

A simple water wave point case can be implemented according to the following code.

import { Scene, PointLayer } from '@antv/l7';
import { GaodeMap } from '@antv/l7-maps';
const scene = new Scene({
  id: 'map',
  map: new GaodeMap({
    style: 'light',
    center: [112, 23.69],
    zoom: 2.5,
  }),
});
fetch('https://gw.alipayobjects.com/os/basement_prod/9078fd36-ce8d-4ee2-91bc-605db8315fdf.csv')
  .then((res) => res.text())
  .then((data) => {
    const pointLayer = new PointLayer({})
      .source(data, {
        parser: {
          type: 'csv',
          x: 'Longitude',
          y: 'Latitude',
        },
      })
      .shape('circle')
      .animate(true)
      .size(40)
      .color('#ffa842');
    scene.addLayer(pointLayer);
  });

shape

In order to achieve water wave points, the point layershapeThe parameters only need to becircle、triangle、squareJust wait for the flat graphics.

animate

  • boolean | animateOption
.animate(true)

.animate({
  enable: true
})

Water wave configuration items

  • speedwater wave speed
  • ringsWater wave ring number

size

In the water wave point layer, due to the transparent edges, the size of the points looks smaller than the non-water wave points of the same size.

© Copyright 2026 Ant Group Co., Ltd..备案号:京ICP备15032932号-38
Site search
Documentation and examplesType to start searching

Search documentation, APIs, and examples

↑↓Select↵OpenEscClose