Skip to content

水面图层

Geometry layers support a special representation, the water surface layer.

案例

accomplish

Next we will introduce how to draw water surface.

🌟 Simple water surface is supported starting from v2.8.1.
🌟 Supports realistic water surfaces starting from version v2.8.4.

simulated water surface

拟真水面

source

It is recommended to use the standard geometry layerGeoJSONdata.

shape

we need to setshapeforocean。

animate

The settings we need to displayanimatefortrue。

layer.animate(true);

style

  • watercolorThe color of shallow water areas defaults to ‘#6D99A8’.

  • watercolor2The color of deep water areas defaults to ‘#0F121C’.

Online case

simple water surface

简单水面

source

It is recommended to use the standard geometry layerGeoJSONdata.

shape

we need to setshapeforwater。

animate

The settings we need to displayanimatefortrue。

layer.animate(true);

style

  • speedwe can passspeedto control the flow speed of the water surface.
style({
  speed: 0.5,
});

Online case

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

Search documentation, APIs, and examples

↑↓Select↵OpenEscClose