Classes
Type Definitions
-
CartoDBLayerInfo{Object}
-
Properties:
Name Type Description layergroupidstring The layer group ID
cdn_urlObject The CDN URL
-
Options{Object}
-
Properties:
Name Type Description attributionsAttributionLike | undefined Attributions.
cacheSizenumber | undefined Deprecated. Use the cacheSize option on the layer instead.
crossOriginnull | string | undefined The
crossOriginattribute for loaded images. Note that you must provide acrossOriginvalue if you want to access pixel data with the Canvas renderer. See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.projectionProjectionLike
(defaults to 'EPSG:3857')Projection.
maxZoomnumber
(defaults to 18)Max zoom.
minZoomnumber | undefined Minimum zoom.
wrapXboolean
(defaults to true)Whether to wrap the world horizontally.
configObject | undefined If using anonymous maps, the CartoDB config to use. See https://carto.com/developers/maps-api/guides/anonymous-maps/ for more detail. If using named maps, a key-value lookup with the template parameters. See https://carto.com/developers/maps-api/guides/named-maps/ for more detail.
mapstring | undefined If using named maps, this will be the name of the template to load. See https://carto.com/developers/maps-api/guides/named-maps/ for more detail.
accountstring | undefined Username as used to access public Carto dashboard at https://{username}.carto.com/.
transitionnumber
(defaults to 250)Duration of the opacity transition for rendering. To disable the opacity transition, pass
transition: 0.zDirectionnumber | NearestDirectionFunction
(defaults to 0)Choose whether to use tiles with a higher or lower zoom level when between integer zoom levels. See
getZForResolution.