# MapContext.includePoints(Object object)

> 基础库 1.2.0 开始支持，低版本需做[兼容处理](1003706)。

> __以 [Promise 风格](/miniprogram/dev/framework/app-service/api.md#异步-API-返回-Promise) 调用__：不支持
> 
> __小程序插件__：支持
> 
> __微信 鸿蒙 OS 版__：支持

> 相关文档: [map](https://developers.weixin.qq.com/miniprogram/dev/component/map.html)

## 功能描述

缩放视野展示所有经纬度

## 参数

### Object object


```json
[
  {
    "属性": "points",
    "类型": "Array.<Object>",
    "默认值": "",
    "必填": "是",
    "说明": "要显示在可视区域内的坐标点列表",
    "子项": [
      {
        "结构属性": "longitude",
        "类型": "number",
        "默认值": "",
        "必填": "是",
        "说明": "经度"
      },
      {
        "结构属性": "latitude",
        "类型": "number",
        "默认值": "",
        "必填": "是",
        "说明": "纬度"
      }
    ]
  },
  {
    "属性": "padding",
    "类型": "Array.<number>",
    "默认值": "",
    "必填": "否",
    "说明": "坐标点形成的矩形边缘到地图边缘的距离，单位像素。格式为[上,右,下,左]。开发者工具暂不支持padding参数。"
  },
  {
    "属性": "success",
    "类型": "function",
    "默认值": "",
    "必填": "否",
    "说明": "接口调用成功的回调函数"
  },
  {
    "属性": "fail",
    "类型": "function",
    "默认值": "",
    "必填": "否",
    "说明": "接口调用失败的回调函数"
  },
  {
    "属性": "complete",
    "类型": "function",
    "默认值": "",
    "必填": "否",
    "说明": "接口调用结束的回调函数（调用成功、失败都会执行）"
  }
]
```
