Fx构造函数
# new TiandituMapSource(option)
参数:
名称 | 类型 | 属性 | 默认值 | 描述 |
---|---|---|---|---|
option |
Object | 属性键值对 |
||
attributions |
String |
<optional> |
null | 基本描述内容 |
logo |
String |
<optional> |
null | 基本描述图标Logo |
opaque |
String |
<optional> |
null | 不透明度 |
projection |
String |
<optional> |
null | ol.proj |
state |
String |
<optional> |
状态 |
|
tilePixelRatio = |
String |
<optional> |
瓦片的像素分辨率 |
|
wrapX |
Boolean |
<optional> |
false | 通过wrapX:false限制图层在x轴方向重复 |
crolssOrigin |
String |
<optional> |
nul | crossOrigin="anonymous"为跨域调用 |
成员变量
TiandituType
# layerType
layerType(图层类型),默认情况下为"vec" Zondy.Enum.Map.TiandituType
- Default Value:
- Zondy.Enum.Map.TiandituType.VEC
Number
# resolutions
分辨率数组,根据传入的分辨率或范围计算得到
- See:
-
- Zondy.Source.GaodeMapSource.prototype.getResolutions
Array
# tileExtent
瓦片范围 [-180, -90, 180, 90]
- Default Value:
- [-180, -90, 180, 90] 注意: EPSG:3857 的瓦片范围不是经纬度范围
ol.TileUrlFunctionType
# protected tileUrlFunction
拼接取图地址方法
- Default Value:
- this.tileUrlFunctionExtend