addWidget

open override fun addWidget(widget: Widget)

Add Widget to the map.

Throws

when trying to add the Widget to the MapSurface that does not have MapOptions.contextMode = ContextMode.SHARED as part of MapInitOptions.