ui.Map.clear

Clears the map by removing all layers, listeners, and widgets and restoring the options to their defaults.

Returns the map.

UsageReturns
Map.clear()ui.Map
ArgumentTypeDetails
this: ui.mapui.Map

The ui.Map instance.

Examples

JavaScript

// Your example goes here!

Python

# Your example goes here!