Summary
Constructor
new FillWater(options)
水填充要素,即指定一个坐标序列数组,将坐标序列组成的面要素样式设置为水波样式,
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
options |
Object |
|
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值