Commit 41cec5ae authored by caicaicai's avatar caicaicai

修改

parent 440aebb7
......@@ -163,6 +163,7 @@ export default {
that.allCarInforData.forEach((item,index)=>{
var graphicLayer4 = new mars3d.layer.GraphicLayer();
map.addLayer(graphicLayer4);
that.bindLayerPopup(graphicLayer4)
that.addDemoGraphics(graphicLayer4,item.number,item.equipmentName,item.carclass);
})
......@@ -249,6 +250,12 @@ export default {
}, 4000)
},
// 在图层绑定Popup弹窗
bindLayerPopup(graphicLayer) {
graphicLayer.bindPopup(function (event) {
console.log('fdfdf')
})
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment