Constructor
new ShotGrid(viewer)
- Description:
构造函数
- Source:
Parameters:
Name | Type | Description |
---|---|---|
viewer |
Viewer | 地图场景 |
Members
img :String
- Description:
场景图片,base64格式
- Source:
场景图片,base64格式
Type:
- String
mapSize :Object
- Description:
地图尺寸
- Source:
地图尺寸
Type:
- Object
scale :Number
- Description:
场景比例尺,指的是场景画布1px的距离,单位m
- Source:
场景比例尺,指的是场景画布1px的距离,单位m
Type:
- Number
viewExtend :Object
- Description:
获取地图四至,最小和最大经纬度,WGS84坐标,例如:{minx:95,miny:25,maxx:125,maxy:35}
- Source:
获取地图四至,最小和最大经纬度,WGS84坐标,例如:{minx:95,miny:25,maxx:125,maxy:35}
Type:
- Object
Methods
calculateCoords(min, max, count) → {Object}
- Description:
获取格网坐标值
- Source:
Parameters:
Name | Type | Description |
---|---|---|
min |
Number | 最小坐标值,经纬度坐标 |
max |
Number | 最大坐标值,经纬度坐标 |
count |
Number | 插值数量 |
Returns:
坐标值及位置
- Type
- Object