Classes
Type Definitions
-
Options{Object}
-
Properties:
Name Type Description attributionsAttributionLike | undefined 归属信息。
crossOriginnull | string | undefined 已加载图像的 crossOrigin 属性。注意如果要使用 Canvas 渲染器访问像素数据,必须提供 crossOrigin 值。详见 https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image。 referrerPolicyReferrerPolicy | undefined 已加载图像的
referrerPolicy属性。hidpiboolean
(defaults to true)从远程服务器请求图像时使用
ol/Map#pixelRatio值。imageLoad函数Load函数 | undefined 给定 URL 加载图像的可选函数。
interpolateboolean
(defaults to true)重采样时是否使用插值。默认情况下, 重采样时使用线性插值。设置为 false 可使用 the nearest neighbor instead.
params对象。<string, *> | undefined OGC Maps 请求参数。默认不需要任何参数。
width、height、bbox、crs和bbox-crs将动态设置。projectionProjectionLike | undefined 投影。默认为视图投影。
rationumber
(defaults to 1.5)比率。
1表示图像请求为地图视口的大小,2表示地图视口宽高的两倍,以此类推。必须为1或更高。resolutionsArray.<number> | undefined 分辨率列表。 如果指定,则仅对这些分辨率发起请求。
urlstring | undefined OGC Maps 服务 URL。