diff --git a/src/App.vue b/src/App.vue index 8f4fcce..7d9c103 100644 --- a/src/App.vue +++ b/src/App.vue @@ -32,11 +32,12 @@ border: 0 !important; background-color: transparent !important; } + &:nth-child(9){ + top:10px !important; + } - div { - img { - display: none; - } + img { + display: none; } .BMap_center { diff --git a/src/views/components/pathMap.vue b/src/views/components/pathMap.vue index fbdbb16..d10e86d 100644 --- a/src/views/components/pathMap.vue +++ b/src/views/components/pathMap.vue @@ -159,6 +159,7 @@ export default { // }) this.markList.push(marker); let sContent = `
+
x
${carNo}
${this.locationStatus[res.Data.SbcStatus]}
@@ -174,58 +175,13 @@ export default { document.getElementById('btnPath_' + deviceId).addEventListener('click', () => { this.queryPath(deviceId) }) + document.getElementById('close_' + deviceId).addEventListener('click', () => { + this.baiduMap.closeInfoWindow(); + }) }); marker.addEventListener('click', () => { this.openInfo(infoWindow, pt); }); - //最后一个调用点聚合 - // if (index == this.carList.length - 1) { - // console.log('点聚合') - // let clusterLayer = new mapvgl.ClusterLayer({ - // // minSize: 1, // 聚合点显示的最小直径 - // // maxSize: 15, // 聚合点显示的最大直径 - // // clusterRadius: 150, // 聚合范围半径 - // // gradient: { 0: 'blue', 0.5: 'green', 1.0: 'red' }, // 聚合点颜色梯度 - // // maxZoom: 19, // 聚合的最大级别,当地图放大级别高于此值将不再聚合 - // // minZoom: 5, // 聚合的最小级别,当地图放大级别低于此值将不再聚合 - // // // 是否显示文字 - // // showText: true, - // // // 开始聚合的最少点数,点数多于此值才会被聚合 - // minPoints: 1, - // // 设置非聚合的点的icon - // iconOptions: { - // width: 25, - // height: 25, - // icon: require("@/assets/images/car.png"), - // }, - // enablePicked: true, - // onClick: (e) => { - // if (e.dataItem) { - // // 可通过dataItem下面的children属性拿到被聚合的所有点 - // console.log(e.dataItem); - // if (e.dataItem.children == undefined) { - // let obj = e.dataItem.objdata; - // let lng = obj.resData.BaiduLng; - // let lat = obj.resData.BaiduLat; - // let pt = new BMap.Point(lng, lat); - // let sContent = `
- //
车牌号:${obj.carNo}
- //
设备位置:${obj.res2Data}
- //
最后定位时间:${obj.resData.GPSTimeStamp.replace("T", " ")}
- //
状态:${this.locationStatus[obj.resData.SbcStatus]}
- //
时速:${obj.resData.spd}km/h
- //
行车轨迹
- //
`; - // this.openWindow(sContent, pt, obj.deviceId); - // } - // } - // }, - // }); - - // this.view.addLayer(clusterLayer); - // clusterLayer.setData(this.viewData); - - // } }) })