ContentBase
Content Layer Base Class
Extended by
CustomRoad
PointsOfInterest
RoadSurface
Traffic
TrafficCamera
TrafficIncident
TruckRestriction
WeatherAlert
WeatherCloud
WeatherRadar
Implements
ContentInterface
Methods
addTo()
addTo(
map
:Map
):ContentBase
Add the layer to a map.
Parameters
Parameter | Type | Description |
---|---|---|
map
| Map
| *. The map |
Returns
this
Implementation of
ContentInterface.addTo
isVisible()
isVisible():
boolean
Returns true if the layer is enabled. Visibility of layer content may be affected by other factors, such as zoom level.
Returns
boolean
- boolean. A boolean indicating the visibility of the layer.
Implementation of
ContentInterface.isVisible
remove()
remove():
ContentBase
Remove the layer from the map.
Returns
this
Implementation of
ContentInterface.remove
setVisibility()
setVisibility(
isVisible
:boolean
):ContentBase
Set the visibility of the layer. Visibility of layer content may be affected by other factors, such as zoom level.
Parameters
Parameter | Type | Description |
---|---|---|
isVisible
| boolean
| boolean. A boolean indicating the visibility of the layer. |
Returns
- ContentBase.
this
Implementation of
ContentInterface.setVisibility
toggleVisibility()
toggleVisibility():
ContentBase
Toggle the visibility of the layer. Visibility of layer content may be affected by other factors, such as zoom level.
Returns
- ContentBase.
this
Implementation of
ContentInterface.toggleVisibility