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.
Usage | Returns |
---|---|
Map.add(item) | ui.Map |
Argument | Type | Details |
---|---|---|
this: ui.map | ui.Map | The ui.Map instance. |
item | Object | The item to add. |
Examples
JavaScript
// Your example goes here!
Python
# Your example goes here!