models/polygon.ts
constructor(_outerRing: any, _hole: any)
|
Defined in models/polygon.ts:3
|
getPolygonWithoutHoles |
getPolygonWithoutHoles()
|
Defined in models/polygon.ts:14
|
Returns:
void
|
getPolygonWithHoles |
getPolygonWithHoles()
|
Defined in models/polygon.ts:18
|
Returns:
void
|
Public hole |
hole: |
Defined in models/polygon.ts:3
|
Public outerRing |
outerRing: |
Defined in models/polygon.ts:2
|
export class polygon {
public outerRing: Array<Array<number>>;
public hole: Array<Array<number>>;
constructor(_outerRing, _hole) {
if (_outerRing) {
this.outerRing = _outerRing;
if (_hole) {
this.hole = _hole;
}
}
}
getPolygonWithoutHoles() {
return this.outerRing;
}
getPolygonWithHoles() {
let polygon = [];
polygon.push(this.outerRing);
polygon.push(this.hole);
return polygon;
}
}