geosolution/cell~WaterReflection(options)

数学模型水面倒影模型module:geosolution/math~WaterReflectionModel的组成元素-水面倒影元素

Summary

Methods:
destroy

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

getId

获取水面倒影元素的id值

Constructor

new WaterReflection(options)

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

组成水面倒影元素的坐标序列数组

waterHeight Number

水面高度,默认为0,地图高程单位,可以通过地图对象上的getDegreePerMeter方法,进行地图单位和米的转换。如果元素中设置,将覆盖模型中的设置

Example
let coordseq = new hmap.basetype.CoordSeq([c1,c2,c3,c4]);
let waterReflection = new hmap.geosolution.cell.WaterReflection({
    coordSeqs: [coordseq]
});

Methods

destroy()

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

getId() → {String}

获取水面倒影元素的id值

Returns:
String -

水面倒影元素的id值