geosolution/cell~FillFilter(options)

地理解决方案图层过滤模型module:geosolution/math~FillFilterModel的组成元素-图层过滤元素

Summary

Methods:
destroy

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

getId

获取图层过滤元素的id值

Constructor

new FillFilter(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 fillFilter = new hmap.geosolution.cell.FillFilter({
    coordSeqs: [coordseq]
});

Methods

destroy()

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

getId() → {String}

获取图层过滤元素的id值

Returns:
String -

图层过滤元素的id值