Classes
Type Definitions
-
CartoDBLayerInfo{Object}
-
Properties:
Name Type Description layergroupidstring 图层组 ID
cdn_urlObject CDN URL
-
Options{Object}
-
Properties:
Name Type Description attributionsAttributionLike | undefined 归属信息。
cacheSizenumber | undefined 已弃用。 请改用图层上的 cacheSize 选项。
crossOriginnull | string | undefined 已加载图像的 crossOrigin 属性。注意如果要使用 Canvas 渲染器访问像素数据,必须提供 crossOrigin 值。详见 https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image。 projectionProjectionLike
(defaults to 'EPSG:3857')投影。
maxZoomnumber
(defaults to 18)最大缩放。
minZoomnumber | undefined 最小缩放。
wrapXboolean
(defaults to true)是否水平环绕世界。
configObject | undefined 如果使用匿名地图,要使用的 CartoDB 配置。详见 https://carto.com/developers/maps-api/guides/anonymous-maps/。如果使用命名地图,包含模板参数的键值查找。详见 https://carto.com/developers/maps-api/guides/named-maps/。
mapstring | undefined 如果使用命名地图,这将是要加载的模板名称。详见 https://carto.com/developers/maps-api/guides/named-maps/。
accountstring | undefined 用于访问公共 Carto 仪表板的用户名,地址为 https://{username}.carto.com/。
transitionnumber
(defaults to 250)渲染的不透明度过渡持续时间。要禁用不透明度过渡,请传递
transition: 0。zDirectionnumber | NearestDirection函数
(defaults to 0)选择在整数缩放级别之间使用更高还是更低缩放级别的瓦片。参见
getZForResolution。