# MapContext.includePoints(Object object)
Start from base library version 1.2.0. Please remaining backward compatible.
with Promise style call: Not supported
Mini Program plugin: Support
Zoom View shows all latitude and longitude
# parameter
# Object object
| attribute | type | Default values | Required | Introductions |
|---|---|---|---|---|
| points | Array.<Object> | yes | List of coordinates to display in the viewable area | |
| padding | Array.<number> | no | The distance, in pixels, of a rectangular edge formed by coordinate points to a map edge. Format is[Up, right, down, left.]Android can only identify the first item in the array, up and down the left and right padding consistent. The developer tool does not support padding parameters for now. | |
| 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.points Structure
| attribute | type | Default values | Required | Introductions |
|---|---|---|---|---|
| longitude | number | yes | longitude | |
| latitude | number | yes | latitude |