1. load
作用: 根据传参初始加载批注列表。即先清空界面上的原有批注列表后再加载传参里的批注信息。
1.1. 参数说明:
名称 |
说明 |
类型 |
是否必填 |
示例 |
postilsArr |
批注信息数组 |
Array对象数组 |
是 |
看调用方式举例 |
返回值说明 |
类型 |
示例 |
无返回值 |
NULL |
NULL |
1.2. 调用方式:
var postilsArr = [{
cameraState: cameraState,
componentState: componentState,
highlightComponentsKeys: highlightComponentsKeys,
imageURL: imgURL,
width: w,
height: h,
num: num,
code: new Date().getTime().toString(),
name: "批注" + num,
},{
cameraState: cameraState,
componentState: componentState,
highlightComponentsKeys: highlightComponentsKeys,
imageURL: imgURL,
width: w,
height: h,
num: num,
code: new Date().getTime().toString(),
name: "批注" + num,
}];
postil.load(postilsArr);