Fx构造函数
# new ArcGISMapSource(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轴方向重复 |
crossOrigin |
String |
<optional> |
null | crossOrigin="anonymous"为跨域调用 |
成员变量
ArcGISLayerType
# layerType
layerType(图层类型),默认情况下为"World_Terrain_Base" Zondy.Enum.Map.ArcGISLayerType.WorldTerrainBase
- Default Value:
- Zondy.Enum.Map.ArcGISLayerType.WorldTerrainBase
Number
# resolutions
分辨率数组,根据传入的分辨率或范围计算得到
- See:
-
- Zondy.Source.ArcGISMapSource.prototype.getResolutions
Array
# tileExtent
瓦片范围 [-20037508.3427892, -20037508.3427892, 20037508.3427892, 20037508.3427892]
- Default Value:
- [-20037508.3427892, -20037508.3427892, 20037508.3427892, 20037508.3427892]
ol.TileUrlFunctionType
# protected tileUrlFunction
拼接取图地址方法
- Default Value:
- this.tileUrlFunctionExtend
方法
# tileUrlFunctionExtend(tileCoord, pixelRatio, projection) → {String}
拼接url取图地址
参数:
名称 | 类型 | 描述 |
---|---|---|
tileCoord |
Array.<number> | 数据格式包含级数、行号、列号. |
pixelRatio |
String | 像素比率 |
projection |
ol.proj.Projection | 投影 |
替换x-y-z后的url地址
String