new ImageGFSlope(options)
Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/mapboxgl/iclient-mapboxgl.js"></script>
<script>
new mapboxgl.supermap.ImageGFSlope(options);
// 弃用的写法
new SuperMap.ImageGFSlope(options);
</script>
// ES6 Import
import { ImageGFSlope } from '@supermapgis/iclient-mapboxgl';
new ImageGFSlope(options);
common/iServer/ImageGFSlope.js, line 8
Name | Type | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
可选参数。
|
Members
-
Altitudenumber
-
光源高度角。用于确定光源照射的倾斜角度,是光源与目标的方向线与水平面间的夹角,范围为 0-90 度。当光源高度角为 90 度时,光源正射地表。
- Default Value: 45
girdFuncNamestring
栅格函数名称,参数值为:GFSlope。
- Default Value: 'GFSlope'
ZFactornumber
高程缩放系数。如果设置为 1.0,表示不缩放。
- Default Value: 1
Methods
-
constructFromObject(data, obj){ImageGFSlope}
common/iServer/ImageGFSlope.js, line 55 -
目标对象新增该类的可选参数。
Name Type Description data
Object 要转换的数据。
obj
ImageGFSlope 返回的模型。
Returns:
Type Description ImageGFSlope 返回结果。 -
destroy()
common/iServer/ImageGFSlope.js, line 44 -
释放资源,将引用资源的属性置空。