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."],[[["`Map.centerObject()` centers the map view on a specified object (geometry, image, or feature)."],["You can optionally set the zoom level and provide a callback function for when the re-centering is complete."],["Providing large or complex collections as input can negatively impact performance."],["Use the smallest necessary collection or geometry for optimal results."]]],[]]