Road Surface
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
- Ice/snow
- Mix water/snow
- Dew
- Melting snow
- Frost
-
Icing rain
Set the visibility of the road surface layer.
myMap.setRoadSurfaceVisibility(true);
Get the visibility of the road surface layer.
const roadSurfaceVisible = myMap.isRoadSurfaceVisible();
Toggle the visibility of the road surface layer.
myMap.toggleRoadSurfaceVisibility();