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
optional string The data to load into the layer.
id
optional string A unique id of the layer. If not specified, it will be generated automatically.
options
optionalThe options to set on the layer.
ref
optional RefObject<LayerRefProps> Ref prop for use with React's useRef or createRef. This allows access to the imperative part of the layer's API.
visible
optional boolean Whether the layer is visible.
Returns
ReactNode
accessToken
optional string Access token required for any 3rd party assets (e.g. google maps 3D tiles or Cesium ION).
attribution
optional string The text attribution to be shown in the bottom right corner of the map.
type
optional "raster" | "3d"
default: null The type of tiles to render. By default this will be inferred from your data.