Module: ol/source/CartoDB

ol/source/CartoDB


Classes

CartoDB

Type Definitions

CartoDBLayerInfo{Object}

Properties:
Name Type Description
layergroupid string

图层组 ID

cdn_url Object

CDN URL

Options{Object}

Properties:
Name Type Description
attributions AttributionLike | undefined

归属信息。

cacheSize number | undefined

已弃用。 请改用图层上的 cacheSize 选项。

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

投影。

maxZoom number
(defaults to 18)

最大缩放。

minZoom number | undefined

最小缩放。

wrapX boolean
(defaults to true)

是否水平环绕世界。

config Object | undefined

如果使用匿名地图,要使用的 CartoDB 配置。详见 https://carto.com/developers/maps-api/guides/anonymous-maps/。如果使用命名地图,包含模板参数的键值查找。详见 https://carto.com/developers/maps-api/guides/named-maps/

map string | undefined

如果使用命名地图,这将是要加载的模板名称。详见 https://carto.com/developers/maps-api/guides/named-maps/

account string | undefined

用于访问公共 Carto 仪表板的用户名,地址为 https://{username}.carto.com/。

transition number
(defaults to 250)

渲染的不透明度过渡持续时间。要禁用不透明度过渡,请传递 transition: 0

zDirection number | NearestDirection函数
(defaults to 0)

选择在整数缩放级别之间使用更高还是更低缩放级别的瓦片。参见 getZForResolution