setLayerVisible

open fun setLayerVisible(id: String, visible: Boolean = true)

Toggles visibility of a MapsGL layer by id and triggers a redraw.

Parameters

id

Layer id previously returned by addLayer / addWeatherLayer.

visible

true to draw and participate in tile requests; false to hide.