Commit 8c9cb598 authored by caicaicai's avatar caicaicai

修改

parent ac089eb9
...@@ -39,9 +39,10 @@ ...@@ -39,9 +39,10 @@
<span class="el-icon-location"></span> <span class="el-icon-location"></span>
</div> --> </div> -->
<!-- 地图区域 --> <!-- 地图区域 -->
<div id="centerDiv" class="mapcontainer1"> <!-- <div id="centerDiv" class="mapcontainer1">
<mars3dViewerMap :url="configUrl" @onload="onMapload"/> <mars3dViewerMap :url="configUrl" @onload="onMapload"/>
</div> </div> -->
<iframe src="http://8.143.203.103:9092/#/Index" frameborder="0" class="mapcontainer1"></iframe>
</div> </div>
</template> </template>
...@@ -52,7 +53,7 @@ import carManagement from './components/carManagement/index.vue' //车辆管理 ...@@ -52,7 +53,7 @@ import carManagement from './components/carManagement/index.vue' //车辆管理
import intelligentSchedul from './components/intelligentSchedul/index.vue' //智能调度 import intelligentSchedul from './components/intelligentSchedul/index.vue' //智能调度
import dataAnalysis from './components/dataAnalysis/index.vue' //数据分析 import dataAnalysis from './components/dataAnalysis/index.vue' //数据分析
import carSpecificInfor from './components/carSpecificInfor/index.vue' //车辆信息弹框 import carSpecificInfor from './components/carSpecificInfor/index.vue' //车辆信息弹框
import mars3dViewerMap from '../../components/mars3d/Map.vue' //地图 // import mars3dViewerMap from '../../components/mars3d/Map.vue' //地图
import carsEZUIKitJs from '../../components/ezuikit/carsEZUIKitJs.vue'//车辆监控 import carsEZUIKitJs from '../../components/ezuikit/carsEZUIKitJs.vue'//车辆监控
import kaungEZUIKitJs from '../../components/ezuikit/EZUIKitJs.vue'//矿山监控 import kaungEZUIKitJs from '../../components/ezuikit/EZUIKitJs.vue'//矿山监控
...@@ -63,7 +64,7 @@ export default { ...@@ -63,7 +64,7 @@ export default {
intelligentSchedul, intelligentSchedul,
dataAnalysis, dataAnalysis,
carSpecificInfor, carSpecificInfor,
mars3dViewerMap, //mars3dViewerMap,
carsEZUIKitJs, carsEZUIKitJs,
kaungEZUIKitJs, kaungEZUIKitJs,
}, },
...@@ -277,41 +278,41 @@ export default { ...@@ -277,41 +278,41 @@ export default {
this.currentTime = yy + '/' + mm + '/' + dd + ' ' + hou + ':' + min; this.currentTime = yy + '/' + mm + '/' + dd + ' ' + hou + ':' + min;
}, },
// 地图构造完成回调 // 地图构造完成回调
onMapload(map) { // onMapload(map) {
// 以下为演示代码 // // 以下为演示代码
// 创建entity图层 // // 创建entity图层
const graphicLayer = new this.mars3d.layer.GraphicLayer() // const graphicLayer = new this.mars3d.layer.GraphicLayer()
map.addLayer(graphicLayer) // map.addLayer(graphicLayer)
// 2.在layer上绑定监听事件 // // 2.在layer上绑定监听事件
graphicLayer.on(this.mars3d.EventType.click, function (event) { // graphicLayer.on(this.mars3d.EventType.click, function (event) {
console.log('监听layer,单击了矢量对象', event) // console.log('监听layer,单击了矢量对象', event)
}) // })
graphicLayer.on(this.mars3d.EventType.mouseOver, function (event) { // graphicLayer.on(this.mars3d.EventType.mouseOver, function (event) {
console.log('监听layer,鼠标移入了矢量对象', event) // console.log('监听layer,鼠标移入了矢量对象', event)
}) // })
graphicLayer.on(this.mars3d.EventType.mouseOut, function (event) { // graphicLayer.on(this.mars3d.EventType.mouseOut, function (event) {
console.log('监听layer,鼠标移出了矢量对象', event) // console.log('监听layer,鼠标移出了矢量对象', event)
}) // })
// 可在图层上绑定popup,对所有加到这个图层的矢量数据都生效 // // 可在图层上绑定popup,对所有加到这个图层的矢量数据都生效
graphicLayer.bindPopup('我是layer上绑定的Popup', { // graphicLayer.bindPopup('我是layer上绑定的Popup', {
anchor: [0, -10] // anchor: [0, -10]
}) // })
// 可在图层绑定右键菜单,对所有加到这个图层的矢量数据都生效 // // 可在图层绑定右键菜单,对所有加到这个图层的矢量数据都生效
graphicLayer.bindContextMenu([ // graphicLayer.bindContextMenu([
{ // {
text: '删除对象', // text: '删除对象',
iconCls: 'fa fa-trash-o', // iconCls: 'fa fa-trash-o',
callback: function (e) { // callback: function (e) {
const graphic = e.graphic // const graphic = e.graphic
if (graphic) { // if (graphic) {
graphicLayer.removeGraphic(graphic) // graphicLayer.removeGraphic(graphic)
} // }
} // }
} // }
]) // ])
}, // },
}, },
......
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