ui.Map.getBounds

Returns the bounds of the current map view, as a list in the format [west, south, east, north] in degrees.

UsageReturns
Map.getBounds(asGeoJSON)GeoJSONGeometry|List|String
ArgumentTypeDetails
this: ui.mapui.Map

The ui.Map instance.

asGeoJSONBoolean, optional

If true, returns map bounds as GeoJSON.

Examples

JavaScript

// Your example goes here!

Python

# Your example goes here!