diff --git a/public/index.html b/public/index.html
index 629936a..d630e76 100644
--- a/public/index.html
+++ b/public/index.html
@@ -7,9 +7,10 @@
//
车牌号:${obj.carNo}
//
设备位置:${obj.res2Data}
@@ -235,7 +233,7 @@ export default {
},
//信息窗口
openWindow(sContent, pt, DeviceNumber) {
- let infoWindow = new BMapGL.InfoWindow(sContent);
+ let infoWindow = new BMap.InfoWindow(sContent);
// marker添加点击事件
infoWindow.addEventListener('open', () => {
document.getElementById('btnPath_' + DeviceNumber).addEventListener('click', () => {
@@ -272,33 +270,33 @@ export default {
}
let point = [];
res.Data.Locations.map(item => {
- point.push(new BMapGL.Point(item.Lng, item.Lat));
+ point.push(new BMap.Point(item.Lng, item.Lat));
});
if (this.polyline) {
this.baiduMap.removeOverlay(this.polyline);
this.polyline = null;
}
- this.polyline = new BMapGL.Polyline(point, { strokeColor: '#ffe954', strokeWeight: 4, strokeOpacity: 1, })
+ this.polyline = new BMap.Polyline(point, { strokeColor: '#ffe954', strokeWeight: 4, strokeOpacity: 1, })
this.baiduMap.addOverlay(this.polyline);
//终点标注maker
if (this.endPointMarker) {
this.baiduMap.removeOverlay(this.endPointMarker);
this.endPointMarker = null;
}
- // var myIcon = new BMapGL.Icon(require("@/assets/images/end_point_icon.png"), new BMapGL.Size(37, 44));
- // this.endPointMarker = new BMapGL.Marker(point[point.length-1], {
+ // var myIcon = new BMap.Icon(require("@/assets/images/end_point_icon.png"), new BMap.Size(37, 44));
+ // this.endPointMarker = new BMap.Marker(point[point.length-1], {
// icon: myIcon
// });
// console.log('最后一个坐标',point[point.length-1])
// this.baiduMap.addOverlay(this.endPointMarker);
this.baiduMap.centerAndZoom(point[0], 15);
this.baiduMap.closeInfoWindow();
- // this.polyline = new BMapGL.Polyline(point, {
+ // this.polyline = new BMap.Polyline(point, {
// strokeColor: '#F5533D',
// strokeWeight: 5,
// strokeOpacity: 1,
// });
- // let trackAni = new BMapGLLib.TrackAnimation(this.baiduMap, this.polyline, {
+ // let trackAni = new BMapLib.TrackAnimation(this.baiduMap, this.polyline, {
// overallView: true,
// tilt: 30,
// duration: 20000,