Skip to main content

CustomRoad

Custom Road Content Layer

Param

Options

Extends

Methods

addTo()

addTo(map: Map): CustomRoad

Add the layer to a map.

Parameters

Parameter Type Description
map Map Map. The map.

Returns

CustomRoad

  • CustomRoad. 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(): CustomRoad

Remove the layer from a map.

Returns

CustomRoad

  • CustomRoad. this

Overrides

ContentBase.remove


setVisibility()

setVisibility(isVisible: boolean): CustomRoad

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

CustomRoad

  • CustomRoad. this

Overrides

ContentBase.setVisibility


toggleVisibility()

toggleVisibility(): CustomRoad

Toggle the visibility of the layer. Visibility of layer content may be affected by other factors, such as zoom level.

Returns

CustomRoad

  • CustomRoad. this

Overrides

ContentBase.toggleVisibility

Last updated August 23, 2024.