JavaScript
TileLayer
The tile layer is used with the standalone adapter to add raster tile basemaps to visualizations. See the Tile Layer docs for details.
Creates a new instance of the layer.
Parameters
- def optional
objectThe layer definition object.
data
optionalstringInitial data to load into this layer. Data can be changed after instantiation via layer.data().
id
optionalstringA unique identifier for this layer. If omitted one will be generated automatically.
options
optionalInitial options to set on this layer. Options can be changed after instantiation via layer.options() or layer.resetOptions().
visible
optionalbooleanInitial visibility of this layer. Visibility can be changed after instantiation via layer.visible().
Returns TileLayer
A unique id of the layer.
Gets or sets the current data for this layer.
Parameters
Returns string
A reference to the data object it was most recently passed.
Gets or sets the layer options while preserving any previously set options.
Parameters
Returns object
An object containing all layer options and their current values.
Temporarily overrides the style properties set in the data for the items specified.
Parameters
Returns StyleReset
A reset function that removes the style overrides applied to an item.
Sets the provided layer options while resetting any other previously set options to default values.
Parameters
Returns void
Gets or sets the layer visibility.
Parameters
Returns boolean
accessToken
optionalstringAccess token required for any 3rd party assets (e.g. google maps 3D tiles or Cesium ION).
attribution
optionalstringThe text attribution to be shown in the bottom right corner of the map.
type
optional"raster" | "3d"default: nullThe type of tiles to render. By default this will be inferred from your data.