new CartoDB(options)
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
CartoDB options.
|
Fires:
-
change
(module:ol/events/Event~Event) - Generic change event. Triggered when the revision counter is increased. -
propertychange
(module:ol/Object.ObjectEvent) - Triggered when a property is changed. -
tileloadend
(module:ol/source/Tile.TileSourceEvent) - Triggered when a tile finishes loading, either when its data is loaded, or when loading was aborted because the tile is no longer needed. -
tileloaderror
(module:ol/source/Tile.TileSourceEvent) - Triggered if tile loading results in an error. -
tileloadstart
(module:ol/source/Tile.TileSourceEvent) - Triggered when a tile starts loading.
Extends
Methods
-
getConfig(){Object}
source/CartoDB.js, line 92 -
Returns the current config.
Returns:
The current configuration.
-
setConfig(config)
source/CartoDB.js, line 114 -
Sets the CartoDB config
Name Type Description config
Object In the case of anonymous maps, a CartoDB configuration object. If using named maps, a key-value lookup with the template parameters.
-
updateConfig(config)
source/CartoDB.js, line 102 -
Updates the carto db config.
Name Type Description config
Object a key-value lookup. Values will replace current values in the config.