Constructor
new Viewshed(origin, options)
所有参数支持setter/getter
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
origin |
Coordinate | 观察点坐标 |
||||||||||||||||||||||||||||||
options |
Object |
|
Example
const origin = new hmap.basetype.Coordinate(13373475.24417606, 3546021.213117677, 51.28688707057486)
const target = new hmap.basetype.Coordinate(13373010.735461526, 3545991.690268789, 68.97374183182579)
const viewshed = new hmap.geosolution.view.Viewshed(
origin, //观察点坐标
{
target, //目标点坐标
horizontalFOV: 80, //水平视场角
verticalFOV: 80, //垂直视场角
outerRadius: 200, //最远观察距离
innerRadius: 0.01 //最近观察距离
}
);