Skip to content

Shape

shapeMethod used to specify what kind of lines the line layer draws.

shape(‘line’)

Draw a path map.

linePath is the most common line layer, supporting configuration of width and height, texture and animation.

layer.shape('line');

shape(‘arc’)

arcThe arc calculates the path of the arc through the Bezier curve algorithm and supports configuring textures and animations.

layer.shape('arc');

shape(‘arc3d’)

arc3dA 3d arc is an arc between two vertical map points, has a height, and supports configurable textures and animations.

layer.shape('arc3d');

shape(‘greatcircle’)

greatcircleThe great circle route is the closest connection between two points on the map, and supports the configuration of textures and animations.

layer.shape('greatcircle');

shape(‘wall’)

wallIt is a vertical map wall that supports configuration of height, texture and animation.

layer.shape('wall');

shape(‘simple’)

simpleLine layer, width is always1px。

layer.shape('simple');

shape(‘flowline’)

flowlineFlow diagram, new in version 2.17

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

Search documentation, APIs, and examples

↑↓Select↵OpenEscClose