# MapContext.fromScreenLocation(Object object)

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

with Promise style call: Not supported

Mini Program plugin: Support

Gets the latitude and longitude corresponding to the point on the screen. The coordinate origin is the upper-left corner of the 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
latitude number latitude
longitude number longitude