地图底层加载完成,webgl性能问题遗留
|
|
@ -0,0 +1,35 @@
|
|||
<template>
|
||||
<div class="mars3dContainer" ref="mapRef" id="mars3dContainer"></div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { ms3dConfig } from '@/config/mapConfig'
|
||||
export default {
|
||||
name: "Map",
|
||||
mounted() {
|
||||
this.$nextTick(() => {
|
||||
if (this.$refs.mapRef) {
|
||||
this.initMap()
|
||||
}
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
//创建三维地球场景
|
||||
initMap () {
|
||||
this.map = new mars3d.Map(this.$refs.mapRef, ms3dConfig)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="less">
|
||||
.map-container {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
transform: translateX(-50%);
|
||||
left: 50%;
|
||||
top: 0;
|
||||
z-index: 1;
|
||||
}
|
||||
</style>
|
||||
3018
config/mapConfig.js
|
|
@ -16,10 +16,20 @@ export default {
|
|||
{ name: 'format-detection', content: 'telephone=no' }
|
||||
],
|
||||
link: [
|
||||
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
|
||||
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
|
||||
{ rel: 'stylesheet', href: '/libs/mars3d-cesium/Widgets/widgets.css' },
|
||||
{ rel: 'stylesheet', href: '/libs/mars3d/mars3d.css' },
|
||||
],
|
||||
css: [],
|
||||
js: []
|
||||
css: [
|
||||
],
|
||||
js: [],
|
||||
|
||||
script: [
|
||||
'/libs/mars3d-cesium/Cesium.js',
|
||||
// '/libs/turf.min.js',
|
||||
'/libs/mars3d/mars3d.js',
|
||||
// '/libs/mars3d/plugins/space/mars3d-space.js',
|
||||
].map(src => ({ src }))
|
||||
},
|
||||
|
||||
// Global CSS: https://go.nuxtjs.dev/config-css
|
||||
|
|
|
|||
|
|
@ -1,65 +1,69 @@
|
|||
<template>
|
||||
<div class="peak-coal-content" :style="autoStyle">
|
||||
<div class="header-content">
|
||||
<div class="peak-coal-content">
|
||||
<div class="container">
|
||||
<div class="header-content point">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="body-content">
|
||||
<!-- 左侧内容-->
|
||||
<div class="left-content">
|
||||
<div class="left-data-panel">
|
||||
<a-row :gutter="24">
|
||||
<a-col :span="12">
|
||||
<air-quality/>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<pollutant-trends/>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<overview-pollutants/>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<check-data/>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<div class="body-content point">
|
||||
<!-- 左侧内容-->
|
||||
<div class="left-content point">
|
||||
<div class="left-data-panel">
|
||||
<a-row :gutter="24">
|
||||
<a-col :span="12">
|
||||
<air-quality/>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<pollutant-trends/>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<overview-pollutants/>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<check-data/>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 中间内容-->
|
||||
<div class="center-content point-none">
|
||||
|
||||
</div>
|
||||
<!-- 右侧内容-->
|
||||
<div class="right-content point">
|
||||
<div class="right-data-panel">
|
||||
<a-row :gutter="24">
|
||||
<a-col :span="12">
|
||||
<energy-use/>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<enterprise-operations/>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<device-run/>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<warning-statistics/>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<latest-warning/>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 中间内容-->
|
||||
<div class="center-content">
|
||||
<div class="footer-content point">
|
||||
|
||||
</div>
|
||||
<!-- 右侧内容-->
|
||||
<div class="right-content">
|
||||
<div class="right-data-panel">
|
||||
<a-row :gutter="24">
|
||||
<a-col :span="12">
|
||||
<energy-use/>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<enterprise-operations/>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<device-run/>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<warning-statistics/>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<latest-warning/>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="left-icon point"></div>
|
||||
|
||||
<div class="right-icon point"></div>
|
||||
</div>
|
||||
|
||||
<div class="footer-content">
|
||||
|
||||
</div>
|
||||
|
||||
<div class="left-icon"></div>
|
||||
|
||||
<div class="right-icon"></div>
|
||||
<Map />
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
|
@ -67,6 +71,7 @@
|
|||
<script>
|
||||
export default {
|
||||
name: "PeakCoalView",
|
||||
components: {},
|
||||
data() {
|
||||
return {
|
||||
autoStyle: {}
|
||||
|
|
@ -144,6 +149,22 @@ body, html, #__nuxt, #__layout {
|
|||
overflow: hidden;
|
||||
position: relative;
|
||||
user-select: none;
|
||||
.point-none {
|
||||
pointer-events: none;
|
||||
}
|
||||
.point {
|
||||
pointer-events: auto;
|
||||
}
|
||||
.container {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
z-index: 2;
|
||||
pointer-events: none;
|
||||
|
||||
}
|
||||
|
||||
.header-content {
|
||||
position: absolute;
|
||||
|
|
@ -151,6 +172,7 @@ body, html, #__nuxt, #__layout {
|
|||
height: 507px;
|
||||
width: 100%;
|
||||
background: url("assets/peakCoalImages/header/first-title-bg.png") no-repeat center center;
|
||||
|
||||
}
|
||||
|
||||
.body-content {
|
||||
|
|
@ -201,6 +223,7 @@ body, html, #__nuxt, #__layout {
|
|||
width: 4383px;
|
||||
height: 2628px;
|
||||
background: url("assets/peakCoalImages/center/center-content-bg.png") no-repeat center center;
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 4.1 KiB |
|
After Width: | Height: | Size: 7.5 KiB |
|
After Width: | Height: | Size: 5.9 KiB |
|
After Width: | Height: | Size: 111 KiB |
|
After Width: | Height: | Size: 191 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 7.1 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 9.4 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 8.0 KiB |
|
After Width: | Height: | Size: 9.1 KiB |
|
After Width: | Height: | Size: 7.7 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 7.7 KiB |
|
After Width: | Height: | Size: 6.7 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 9.3 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 8.3 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 7.4 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 6.5 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 8.8 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
|
@ -0,0 +1,14 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TileMap version="1.0.0" tilemapservice="http://tms.osgeo.org/1.0.0">
|
||||
<Title>NE2_HR_LC_SR_W_DR_recolored.tif</Title>
|
||||
<Abstract></Abstract>
|
||||
<SRS>EPSG:4326</SRS>
|
||||
<BoundingBox miny="-90.00000000000000" minx="-180.00000000000000" maxy="90.00000000000000" maxx="180.00000000000000"/>
|
||||
<Origin y="-90.00000000000000" x="-180.00000000000000"/>
|
||||
<TileFormat width="256" height="256" mime-type="image/jpg" extension="jpg"/>
|
||||
<TileSets profile="geodetic">
|
||||
<TileSet href="0" units-per-pixel="0.70312500000000" order="0"/>
|
||||
<TileSet href="1" units-per-pixel="0.35156250000000" order="1"/>
|
||||
<TileSet href="2" units-per-pixel="0.17578125000000" order="2"/>
|
||||
</TileSets>
|
||||
</TileMap>
|
||||
|
After Width: | Height: | Size: 116 KiB |
|
After Width: | Height: | Size: 149 KiB |
|
After Width: | Height: | Size: 164 KiB |
|
After Width: | Height: | Size: 120 KiB |
|
After Width: | Height: | Size: 149 KiB |
|
After Width: | Height: | Size: 149 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 2.5 KiB |
|
After Width: | Height: | Size: 3.1 KiB |
|
After Width: | Height: | Size: 2.7 KiB |
|
After Width: | Height: | Size: 936 B |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 3.9 KiB |
|
After Width: | Height: | Size: 1.7 KiB |