Skip to main content

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

  • TruckRestriction. this

Overrides

ContentBase.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.

Overrides

ContentBase.isVisible


remove()

remove(): TruckRestriction

Remove the layer from a map.

Returns

TruckRestriction

  • TruckRestriction. this

Overrides

ContentBase.remove


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

  • TruckRestriction. this

Overrides

ContentBase.setVisibility


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

  • TruckRestriction. this

Overrides

ContentBase.toggleVisibility

Last updated August 23, 2024.