# MapContext.getRegion(Object object)
Start from base library version 1.4.0. Please remaining backward compatible.
with Promise style call: Not supported
Mini Program plugin: Support
Get the field of view of the current map
# parameter
# Object object
attribute | type | Default values | Required | Introductions |
---|---|---|---|---|
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) |
# object.success callback
# parameter
# Object res
attribute | type | Introductions |
---|---|---|
southwest | Object | South-west latitude and longitude |
northeast | Object | Northeast longitude and latitude |
res.southwest Structure
attribute | type | Introductions |
---|---|---|
longitude | number | longitude |
latitude | number | latitude |
res.northeast Structure
attribute | type | Introductions |
---|---|---|
longitude | number | longitude |
latitude | number | latitude |