geosolution/cell~FillWater(options)

数学模型水填充模型module:geosolution/math~FillWaterModel的组成元素-水填充元素,要素中的坐标序列数组组成的多边形将被渲染为水波动样式。

Summary

Methods:
destroy

销毁对象,如果元素已经添加到其模型,需要先从模型中移除后再销毁

getId

获取水填充对象的id值

Constructor

new FillWater(options)

水填充要素,即指定一个坐标序列数组,将坐标序列组成的面要素样式设置为水波样式,

Parameters:
Name Type Description
options Object
Name Type Description
coordSeqs Array.<module:basetype~CoordSeq>

组成面要素的坐标序列数组,注意索引0以后的coordSeq为岛洞。

Example
let coordinate1 = new hmap.basetype.Coordinate(120,30,0);
let coordinate2 = new hmap.basetype.Coordinate(121,30,0);
let coordinate3 = new hmap.basetype.Coordinate(121,31,0);
let coordinate4 = new hmap.basetype.Coordinate(120,31,0);
let coordseq = new hmap.basetype.CoordSeq([coordinate1,coordinate2,coordinate3,coordinate4,coordinate1]);
let fillwater = new hmap.geosolution.cell.FillWater({
    coordSeqs: [coordseq]
});

Methods

destroy()

销毁对象,如果元素已经添加到其模型,需要先从模型中移除后再销毁

getId() → {String}

获取水填充对象的id值

Returns:
String -

水填充对象的id值