南昌市物联网技防平台-前端
liuyg
2021-05-21 bf25145e95e4459b4ebb6aeb9267dbda1b7480ea
public/xcxjingqingmap/js/vueMain.js
@@ -25,7 +25,7 @@
        },
        beginCome() {
            this.getdata = this.getQueryVariable('data');//url解码
            console.log(this.getdata)
            // console.log(this.getdata)
            // this.getdata = [{
            //     jd: 115.91042800000002,
            //     wd: 28.68094757898212,
@@ -57,7 +57,7 @@
            var that = this;
            var center = [data[0].wd,data[0].jd];
            this.seedata = data[0].datas;
            console.log(this.seedata)
            // console.log(this.seedata)
            var createMap = () => {
                map = L.map('map', { //初始化地图
                    center: center,
@@ -96,7 +96,7 @@
                busIcon = new transportIcon({
                    iconUrl: './img/red.png'
                });
            console.log(data, 43545343)
            // console.log(data, 43545343)
            var setData = (a) => {//定义图标
                marker = L.marker([a.wd, a.jd], {
                    icon: a.dtype == 0 ? carIcon : a.dtype == 1 ? planeIcon : a.dtype == 2 ? busIcon : '',