# MapContext.eraseLines(Object object)

基础库 2.5.0 开始支持,低版本需做兼容处理

Promise 风格 调用:不支持

小程序插件:支持

相关文档: map

# 功能描述

擦除或置灰已添加到地图中的线段。

# 参数

# Object object

属性 类型 默认值 必填 说明
lines Array.<Object> 要擦除的线段数组。详见 polyline 属性
结构属性 类型 默认值 必填 说明
id number 线段的 id。
index number 指定线段的某一段,线段起点 index 为 0
point Object 指定线段某一段中的点
结构属性 类型 默认值 必填 说明
longitude number 经度
latitude number 纬度
clear boolean true 为 true 时擦除,false 时置灰
success function 接口调用成功的回调函数
fail function 接口调用失败的回调函数
complete function 接口调用结束的回调函数(调用成功、失败都会执行)