MapContext.eraseLines
以 Promise 风格 调用:不支持
相关文档: map
功能描述
擦除或置灰已添加到地图中的线段。
参数
Object object
| 属性 | 类型 | 默认值 | 必填 | 说明 |
|---|---|---|---|---|
| lines | Array. | 是 | 要擦除的线段数组。详见polyline 属性。 | |
| 结构属性类型默认值必填说明idnumber是线段的 id。indexnumber是指定线段的某一段,线段起点 index 为 0pointObject是指定线段某一段中的点结构属性类型默认值必填说明longitudenumber是经度latitudenumber是纬度clearbooleantrue否为 true 时擦除,false 时置灰 | ||||
| success | function | 否 | 接口调用成功的回调函数 | |
| fail | function | 否 | 接口调用失败的回调函数 | |
| complete | function | 否 | 接口调用结束的回调函数(调用成功、失败都会执行) |