addWidget

abstract fun addWidget(widget: Widget)

Add Widget to the map.

Throws

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