|
@@ -1338,7 +1338,7 @@ export default {
|
|
|
mapDom.entities.removeAll();
|
|
|
// 格式化打点位置信息数据
|
|
|
let data = this.markPoints.map((item) => {
|
|
|
- return [`${item.longitude}, ${item.latitude}`, item, item.categorycode != '1' ? this.dropIcon : require('../assets/offPoint.png'), "10,10"]
|
|
|
+ return [`${item.longitude}, ${item.latitude}`, item, item.list[0].status == '0' ? this.dropIcon : require('../assets/offPoint.png'), "10,10"]
|
|
|
})
|
|
|
// 打点数据信息
|
|
|
let options = {
|
|
@@ -1405,6 +1405,7 @@ export default {
|
|
|
* @param mapDom 地图实例
|
|
|
*/
|
|
|
addPoint(mapDom) {
|
|
|
+ console.log(this.markPoints)
|
|
|
let arr = mapDom.getLayers().array_;
|
|
|
arr = arr.filter((v) => v.className_ && v.className_ === "mark");
|
|
|
// 判断之前是否有打点信息,有打点信息就删掉之前的打点信息
|
|
@@ -1429,7 +1430,7 @@ export default {
|
|
|
offset: [-36, -40],
|
|
|
offsetOrigin: "bottom-right",
|
|
|
size: [100, 100],
|
|
|
- src: v.categorycode != '1' ? this.dropIcon : require('../assets/offPoint.png'),
|
|
|
+ src: v.list[0].status == '0' ? this.dropIcon : require('../assets/offPoint.png'),
|
|
|
}),
|
|
|
})
|
|
|
);
|