Module: ol/source/ImageArcGISRest

ol/source/ImageArcGISRest


Classes

ImageArcGISRest

Type Definitions

Options{Object}

Properties:
Name Type Description
attributions AttributionLike | undefined

归属信息。

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

已加载图像的 referrerPolicy 属性。

hidpi boolean
(defaults to true)

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

imageLoad函数 Load函数 | undefined

给定 URL 加载图像的可选函数。

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

projection ProjectionLike | undefined

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

ratio number
(defaults to 1.5)

比率。1 表示图像请求为地图视口的大小,2 表示地图视口大小的两倍,以此类推。

resolutions Array.<number> | undefined

分辨率。如果指定,将仅请求这些分辨率。

url string | undefined

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