Module: ol/source/TileArcGISRest

ol/source/TileArcGISRest


Classes

TileArcGISRest

Type Definitions

Options{Object}

Properties:
Name Type Description
attributions AttributionLike | undefined

归属信息。

cacheSize number | undefined

已弃用。 请改用图层上的 cacheSize 选项。

crossOrigin null | string | undefined 已加载图像的 crossOrigin 属性。注意如果要使用 Canvas 渲染器访问像素数据,必须提供 crossOrigin 值。详见 https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image。
referrerPolicy ReferrerPolicy | undefined

已加载图像的 referrerPolicy 属性。

interpolate boolean
(defaults to true)

重采样时是否使用插值。默认情况下, 重采样时使用线性插值。设置为 false 可使用 the nearest neighbor instead.

params 对象。<string, *> | undefined

ArcGIS Rest 参数。此字段可选。未指定的字段将使用服务默认值。FORMAT 默认为 PNG32F 默认为 IMAGETRANSPARENT 默认为 trueBBOXSIZEBBOXSRIMAGESR 将动态设置。设置 LAYERS 可覆盖默认服务图层可见性。详见 https://developers.arcgis.com/rest/services-reference/export-map.htm

hidpi boolean
(defaults to true)

从远程服务器请求图像时使用 ol/Map#pixelRatio 值。

tileGrid TileGrid | undefined

瓦片网格。基于服务器支持的分辨率、瓦片尺寸和范围进行设置。如果未定义,将使用默认网格:如果有投影范围,则基于该范围;否则使用原点为 0,0 的全球范围网格。

projection ProjectionLike | undefined

投影。默认为视图投影。投影代码必须包含以 : 分隔的数字结尾部分,或整个代码必须构成有效的 ArcGIS SpatialReference 定义。

reprojectionErrorThreshold number
(defaults to 0.5)

允许的最大重投影误差(以像素为单位)。 值越高可以提高重投影性能,但会降低精度。

tileLoad函数 Load函数 | undefined

给定 URL 加载瓦片的可选函数。默认为

function(imageTile, src) {
  imageTile.getImage().src = src;
};
url string | undefined

地图服务或影像服务的 ArcGIS Rest 服务 URL。URL 应包含 /MapServer 或 /ImageServer。

wrapX boolean
(defaults to true)

是否水平环绕世界。

transition number | undefined

渲染的不透明度过渡持续时间。要禁用不透明度过渡,请传递 transition: 0

urls Array.<string> | undefined

ArcGIS Rest 服务 URL。当 ArcGIS 服务支持多个导出请求 URL 时,使用此选项代替 url

zDirection number | NearestDirection函数
(defaults to 0)

选择在整数缩放级别之间使用更高还是更低缩放级别的瓦片。参见 getZForResolution