Classes
Members
-
module:ol/source/OSM.ATTRIBUTION{string}
-
包含 OpenStreetMap 版权和许可页面链接的归属信息。
Type Definitions
-
Options{Object}
-
Properties:
Name Type Description attributionsAttributionLike | undefined 归属信息。
cacheSizenumber | undefined 已弃用。 请改用图层上的 cacheSize 选项。
crossOriginnull | string
(defaults to 'anonymous')已加载图像的 crossOrigin 属性。注意如果要使用 Canvas 渲染器访问像素数据,必须提供 crossOrigin 值。详见 https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image。 referrerPolicyReferrerPolicy
(defaults to 'origin-when-cross-origin')已加载图像的
referrerPolicy属性。interpolateboolean
(defaults to true)重采样时是否使用插值。默认情况下, 重采样时使用线性插值。设置为 false 可使用 the nearest neighbor instead.
maxZoomnumber
(defaults to 19)最大缩放。
reprojectionErrorThresholdnumber
(defaults to 0.5)允许的最大重投影误差(以像素为单位)。 值越高可以提高重投影性能,但会降低精度。
tileLoad函数Load函数 | undefined 给定 URL 加载瓦片的可选函数。默认为
function(imageTile, src) { imageTile.getImage().src = src; };transitionnumber
(defaults to 250)渲染的不透明度过渡持续时间。要禁用不透明度过渡,请传递
transition: 0。urlstring
(defaults to 'https://tile.openstreetmap.org/{z}/{x}/{y}.png')URL 模板。必须包含
{x}、{y}或{-y},以及{z}占位符。wrapXboolean
(defaults to true)是否水平环绕世界。
zDirectionnumber | NearestDirection函数
(defaults to 0)选择在整数缩放级别之间使用更高还是更低缩放级别的瓦片。参见
getZForResolution。