# MapContext.setCenterOffset(Object object)

Start from base library version 2.10.0. Please remaining backward compatible.

with Promise style call: Not supported

Mini Program plugin: Support

Set Map Center Point Offset, Back Down for Growth, Screen Scale Range(0.250.75)The default offset is[0.5, 0.5]

# parameter

# Object object

attribute type Default values Required Introductions
offset Array.&ltnumber&gt yes Offset, two-bit array
success function no Interface calls the successful callback function
fail function no Interface calls failed callback functions
complete function no Callback function at the end of an interface call (both successful and unsuccessful calls are executed)