The road surface layer allows you to display road surface conditions as a map tile overlay. (North America only) Once this layer is added, it will display a road surface data overlay that is color coded to indicate the flow of condition on the roads currently visible in the map.
The color legend for Road Surface map is as follows:
- Not in range
- Dry road
- Wet road
- Mix water/snow
- Melting snow
Set the visibility of the road surface layer.
Get the visibility of the road surface layer.
const roadSurfaceVisible = myMap.isRoadSurfaceVisible();
Toggle the visibility of the road surface layer.