Module: ol/source/ImageMapGuide

ol/source/ImageMapGuide


Classes

ImageMapGuide

Type Definitions

Options{Object}

Properties:
Name Type Description
url string | undefined

mapagent URL。

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

已加载图像的 referrerPolicy 属性。

displayDpi number
(defaults to 96)

显示分辨率。

metersPerUnit number
(defaults to 1)

每单位米数值。

hidpi boolean
(defaults to true)

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

useOverlay boolean | undefined

如果为 true,将使用 GETDYNAMICMAPOVERLAYIMAGE

projection ProjectionLike | undefined

投影。默认为视图投影。

ratio number
(defaults to 1)

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

resolutions Array.<number> | undefined

分辨率列表。 如果指定,则仅对这些分辨率发起请求。

imageLoad函数 Load函数 | undefined

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

interpolate boolean
(defaults to true)

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

params Object | undefined

附加参数。