React
TileLayer
The tile layer is used with the standalone adapter to add raster tile basemaps to visualizations. See the Tile Layer docs for details.
Parameters
object
data
optionalstringThe data to load into the layer.
id
optionalstringA unique id of the layer. If not specified, it will be generated automatically.
options
optionalThe options to set on the layer.
ref
optionalRefObject<LayerRefProps>Ref prop for use with React's useRef or createRef. This allows access to the imperative part of the layer's API.
visible
optionalbooleanWhether the layer is visible.
Returns ReactNode
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.