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 a specific zoom level or provide an `onComplete` callback function."],["Providing very large or complex objects may impact performance."],["Use `Map.getBounds()`, `Map.getCenter()`, `Map.getZoom()`, and `Map.getScale()` to retrieve map extent, center, zoom level, and scale respectively."]]],[]]