Map.add

Adds an item to the map. Can also be used to add widgets like ui.Label as well as some non-widget objects like ui.Map.Layer.

Returns the map.

UsageReturns
Map.add(item)ui.Map
ArgumentTypeDetails
itemObject

The item to add.

Examples

JavaScript

// Your example goes here!

Python

# Your example goes here!