Summary
Constructor
new FillFilter(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 fillFilter = new hmap.geosolution.cell.FillFilter({
coordSeqs: [coordseq]
});
Methods
-
destroy()
-
销毁对象,如果元素已经添加到其模型,需要先从模型中移除后再销毁
-
getId() → {String}
-
获取图层过滤元素的id值
Returns:
String -图层过滤元素的id值