Announcement: On November 13, 2024, all users will need to use a Cloud project in order to access Earth Engine. After this date, continued individual access without a Cloud project will require an exception.
An object to center on - a geometry, image or feature.
zoom
Number, optional
The zoom level, from 0 to 24. If unspecified, computed based on the object's bounding box.
onComplete
Function, optional
A callback which is triggered after the recentering completes successfully. Passing this parameter causes the
`centerObject` operation to run asynchronously.
[null,null,["Last updated 2023-10-06 UTC."],[[["`centerObject` centers the map view on a provided geometry, feature, or image."],["It optionally allows specifying a zoom level and an onComplete callback function for asynchronous operations."],["Excessive data in the input object may hinder performance, so it is recommended to use the smallest necessary object for optimal results."],["This method is useful for dynamically adjusting the map's focus to a specific area of interest within the Earth Engine Code Editor."]]],[]]