From d4c8e63d9f4b111d97879b52f327535ef41c5cae Mon Sep 17 00:00:00 2001
From: Your Name <123456>
Date: Fri, 16 Sep 2022 16:28:29 +0800
Subject: [PATCH] 修改
---
src/views/doublePreventAction/riskLevelManage/fourColorMap/sixty/index.vue | 17 +++++++++++++++--
1 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/src/views/doublePreventAction/riskLevelManage/fourColorMap/sixty/index.vue b/src/views/doublePreventAction/riskLevelManage/fourColorMap/sixty/index.vue
index a7c583d..7f2ad45 100644
--- a/src/views/doublePreventAction/riskLevelManage/fourColorMap/sixty/index.vue
+++ b/src/views/doublePreventAction/riskLevelManage/fourColorMap/sixty/index.vue
@@ -2,7 +2,7 @@
<div class="map-layout">
<Map @init="init" :option="option" v-if="option" />
- <Tab v-if="loaded" :type='type' :colorMapList='colorMapList'/>
+ <Tab v-if="loaded" :type='type' :colorMapList='colorMapList' @getList="testLoaded"/>
</div>
@@ -75,6 +75,7 @@
map.addModel({
link: 'http://222.92.213.22:8006/b3dm60/tileset.json',
name: '60万吨模型图',
+ modifyZ: -1340,
callback: tileset => {
var boundingSphere = tileset.boundingSphere;
var cartographic = Cesium.Cartographic.fromCartesian(
@@ -172,6 +173,18 @@
// });
})
},
+ testLoaded() {
+ const map = global.map;
+ if (!map) return;
+ let params = {}
+ params['eType'] = 2
+ getMap(params).then(res => {
+ this.colorMapList = JSON.parse(JSON.stringify(res.data.result))
+ })
+ // $.get('./public/data/plots_namisuo.geojson', res => {
+ // map.loadGeoJSON(res);
+ // });
+ },
initEvent(map) {
let popup = null;
const _this = this;
@@ -196,7 +209,7 @@
html:
"<div class='popup-wrapper'>" +
attr.name +
- '<br/><br/>XXXXXXXX</div>',
+ '</div>',
position: cartesian3,
anchor: [-170, -80],
});
--
Gitblit v1.9.2