Layers

Add satellite imagery and real-time traffic overlays to your map.

MapSatelliteLayer overlays satellite/aerial imagery on top of the base map. MapTrafficLayer overlays real-time traffic conditions. Both layers can be toggled with the visible prop and combined together.

Example

Switch between normal, satellite, traffic, and combined views using the buttons in the top-left corner.

MapSatelliteLayer

Adds a satellite/aerial imagery tile layer. Must be used inside Map.

PropTypeDefaultDescription
visiblebooleantrueShow or hide the satellite layer.
opacitynumber1Layer opacity (0 to 1).

MapTrafficLayer

Adds a real-time traffic conditions overlay. Must be used inside Map.

PropTypeDefaultDescription
visiblebooleantrueShow or hide the traffic layer.
opacitynumber1Layer opacity (0 to 1).