Skip to main content

ContentBase

Content Layer Base Class

Extended by

Implements

  • ContentInterface

Methods

addTo()

addTo(map: Map): ContentBase

Add the layer to a map.

Parameters

Parameter Type Description
map Map *. The map

Returns

ContentBase

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

ContentBase

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

  • 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

  • ContentBase. this

Implementation of

ContentInterface.toggleVisibility

Last updated August 23, 2024.