跳到主要内容

Shape

shape 方法用于指定面图层绘制图形的类型,如填充图,填充线,挤出集合体等。

shape(‘fill’)

shape 为 fill 几何图层用于绘制平面的几何图形。

layer.shape('fill');

shape(‘extrude’)

shape 为 extrude 几何图层用于绘制 3D 的几何体。

layer.shape('extrude');

extrusion

extrude 图层的升级版, 支持 extrusionBase(基础高度)数据映射

layer.shape('extrusion');

shape(‘water’)

shape 为 water 几何图层用于绘制平面水体。

layer.shape('water');

shape(‘ocean’)

shape 为 ocean 几何图层用于绘制平面海洋水体。

layer.shape('ocean');

shape(‘line’)

shape 为 line 几何图层用于绘制线。

layer.shape('line');

shape(‘point_fill’)

shape 为 point_fill 几何图层用于绘制填充点。

layer.shape('point_fill');

shape(‘point_image’)

shape 为 point_image 几何图层用于绘制点图标。

layer.shape('point_image');

shape(‘point_extrude’)

shape 为 point_extrude 几何图层用于绘制柱子。

layer.shape('point_extrude');

shape(‘text’)

shape 为 text 几何图层用于绘制文字。

layer.shape('text');
© Copyright 2026 Ant Group Co., Ltd..备案号:京ICP备15032932号-38
全站搜索
文档与示例输入关键词开始搜索

输入关键词,查找文档、API 与示例

↑↓选择↵打开Esc关闭