diff --git a/src/components/Amap/components/bigscLocation/indexV_3.vue b/src/components/Amap/components/bigscLocation/indexV_3.vue index 2baf7e27..988f2971 100644 --- a/src/components/Amap/components/bigscLocation/indexV_3.vue +++ b/src/components/Amap/components/bigscLocation/indexV_3.vue @@ -77,6 +77,7 @@ export default { this.aMap = new AMap.Map("container", { center: [this.mapCenter.lng, this.mapCenter.lat], resizeEnable: true, + viewMode: '3D', // zoom: this.zoom, mapStyle: "amap://styles/" + this.theme, }); @@ -95,6 +96,7 @@ export default { // 地图标点 点击事件 markerClick(e) { // console.log("地图点击标注点!!"); + debugger; if (!this.infoWindow) { this.createInfoWindowO(); } @@ -146,7 +148,10 @@ export default { createMarker() { var markerList = []; var _this = this; - var projectUrl = this.$store.getters.tenantId === 0 ? '/project/project' : '/project_tenant/project_tenant' + var projectUrl = + this.$store.getters.tenantId === 0 + ? "/project/project" + : "/project_tenant/project_tenant"; for (var i = 0; i < this.projectList.length; i++) { if (this.projectList[i].projectLat && this.projectList[i].projectLng) { let marker = new AMap.Marker({ @@ -157,13 +162,22 @@ export default { // map: this.aMap, icon: this.projectList[i].tenantIndexVo["unProcessed"] > 0 - ? markerAlarmIcon - : markerIcon, + ? markerAlarmIcon + : markerIcon, + // icon: + // new AMap.Icon({ + // image: this.projectList[i].tenantIndexVo["unProcessed"] > 0 + // ? markerAlarmIcon + // : markerIcon, + // size: new AMap.Size(80, 80), + // imageSize: new AMap.Size(52, 52), + // }), + offset: new AMap.Pixel(-13, -30), }); var content = []; window["amapObj"] = this.aMap; - window['_this'] = this; + window["_this"] = this; content.push( `