Module: ol/source/ImageWMS

ol/source/ImageWMS


Classes

ImageWMS

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 值。

serverType ServerType | undefined 远程 WMS 服务器的类型:mapserver、geoserver、carmentaserver 或 qgis。仅在 hidpi 为 true 时需要。
imageLoad函数 Load函数 | undefined

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

interpolate boolean
(defaults to true)

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

params 对象。<string, *> | undefined

WMS 请求参数。至少需要 LAYERS 参数。STYLES 默认为 ''VERSION 默认为 1.3.0WIDTHHEIGHTBBOXCRS(WMS 版本 < 1.3.0 时为 SRS)将动态设置。

projection ProjectionLike | undefined

投影。默认为视图投影。

ratio number
(defaults to 1.5)

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

resolutions Array.<number> | undefined

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

url string | undefined

WMS 服务 URL。