| | |
| | | |
| | | <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> |
| | | |
| | | |
| | |
| | | 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( |
| | |
| | | // }); |
| | | }) |
| | | }, |
| | | 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; |
| | |
| | | html: |
| | | "<div class='popup-wrapper'>" + |
| | | attr.name + |
| | | '<br/><br/>XXXXXXXX</div>', |
| | | '</div>', |
| | | position: cartesian3, |
| | | anchor: [-170, -80], |
| | | }); |