Classes
Type Definitions
-
Options{Object}
-
Properties:
Name Type Description attributionsAttributionLike | undefined 归属信息。
cacheSizenumber | undefined 已弃用。 请改用图层上的 cacheSize 选项。
crossOriginnull | string | undefined 已加载图像的 crossOrigin 属性。注意如果要使用 Canvas 渲染器访问像素数据,必须提供 crossOrigin 值。详见 https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image。 referrerPolicyReferrerPolicy | undefined 已加载图像的
referrerPolicy属性。interpolateboolean
(defaults to true)重采样时是否使用插值。默认情况下, 重采样时使用线性插值。设置为 false 可使用 the nearest neighbor instead.
params对象。<string, *> | undefined ArcGIS Rest 参数。此字段可选。未指定的字段将使用服务默认值。
FORMAT默认为PNG32。F默认为IMAGE。TRANSPARENT默认为true。BBOX、SIZE、BBOXSR和IMAGESR将动态设置。设置LAYERS可覆盖默认服务图层可见性。详见 https://developers.arcgis.com/rest/services-reference/export-map.htm。hidpiboolean
(defaults to true)从远程服务器请求图像时使用
ol/Map#pixelRatio值。tileGridTileGrid | undefined 瓦片网格。基于服务器支持的分辨率、瓦片尺寸和范围进行设置。如果未定义,将使用默认网格:如果有投影范围,则基于该范围;否则使用原点为 0,0 的全球范围网格。
projectionProjectionLike | undefined 投影。默认为视图投影。投影代码必须包含以 : 分隔的数字结尾部分,或整个代码必须构成有效的 ArcGIS SpatialReference 定义。
reprojectionErrorThresholdnumber
(defaults to 0.5)允许的最大重投影误差(以像素为单位)。 值越高可以提高重投影性能,但会降低精度。
tileLoad函数Load函数 | undefined 给定 URL 加载瓦片的可选函数。默认为
function(imageTile, src) { imageTile.getImage().src = src; };urlstring | undefined 地图服务或影像服务的 ArcGIS Rest 服务 URL。URL 应包含 /MapServer 或 /ImageServer。
wrapXboolean
(defaults to true)是否水平环绕世界。
transitionnumber | undefined 渲染的不透明度过渡持续时间。要禁用不透明度过渡,请传递
transition: 0。urlsArray.<string> | undefined ArcGIS Rest 服务 URL。当 ArcGIS 服务支持多个导出请求 URL 时,使用此选项代替
url。zDirectionnumber | NearestDirection函数
(defaults to 0)选择在整数缩放级别之间使用更高还是更低缩放级别的瓦片。参见
getZForResolution。