TruckRestriction
Truck Restriction Content Layer
Param
Options
Extends
Methods
addTo()
addTo(
map
:Map
):TruckRestriction
Add the layer to a map.
Parameters
Parameter | Type | Description |
---|---|---|
map
| Map
| Map. The map. |
Returns
- TruckRestriction.
this
Overrides
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.
Overrides
remove()
remove():
TruckRestriction
Remove the layer from a map.
Returns
- TruckRestriction.
this
Overrides
setVisibility()
setVisibility(
isVisible
:boolean
):TruckRestriction
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. isVisible A boolean indicating the visibility of the layer. |
Returns
- TruckRestriction.
this
Overrides
toggleVisibility()
toggleVisibility():
TruckRestriction
Toggle the visibility of the layer. Visibility of layer content may be affected by other factors, such as zoom level.
Returns
- TruckRestriction.
this