Commit 8ff83326 authored by ninglx's avatar ninglx

调整部分目录结构

parent abe99884
...@@ -5,11 +5,7 @@ ...@@ -5,11 +5,7 @@
</template> </template>
<script> <script>
import {Scene} from "@antv/l7"; let map
import {Mapbox} from "@antv/l7-maps";
let map, scene;
// Point MultiPoint LineString MultiLineString Polygon MultiPolygon
export default { export default {
name: "wMap", name: "wMap",
props: ["mapId"], props: ["mapId"],
...@@ -30,21 +26,8 @@ export default { ...@@ -30,21 +26,8 @@ export default {
maxZoom: map_config.MAX_ZOOM, maxZoom: map_config.MAX_ZOOM,
pitch: map_config.MAP_PITCH, pitch: map_config.MAP_PITCH,
}); });
scene = new Scene({
logoVisible: false,
id: this.mapId,
map: new Mapbox({
mapInstance: map,
}),
});
map.rotateTo(map_config.MAP_ROTATE); map.rotateTo(map_config.MAP_ROTATE);
// map.on('load', () => { return map;
// map.addControl(new mapboxgl.NavigationControl({showZoom: false}), 'top-right');
// })
// setTimeout(() => {
// map.flyTo({zoom: map_config.MAP_ZOOM})
// }, 10000)
return [map, scene];
} }
}, },
computed: {}, computed: {},
......
...@@ -5,11 +5,8 @@ ...@@ -5,11 +5,8 @@
</template> </template>
<script> <script>
import {Scene} from "@antv/l7";
import {Mapbox} from "@antv/l7-maps";
let map, scene; let map;
// Point MultiPoint LineString MultiLineString Polygon MultiPolygon
export default { export default {
name: "modelMapC", name: "modelMapC",
props: ["mapId"], props: ["mapId"],
...@@ -29,21 +26,7 @@ export default { ...@@ -29,21 +26,7 @@ export default {
zoom: 21, zoom: 21,
pitch: 0, pitch: 0,
}); });
scene = new Scene({ return map;
logoVisible: false,
id: this.mapId,
map: new Mapbox({
mapInstance: map,
}),
});
// map.rotateTo(map_config.MAP_ROTATE);
// map.on('load', () => {
// map.addControl(new mapboxgl.NavigationControl({showZoom: false}), 'top-right');
// })
// setTimeout(() => {
// map.flyTo({zoom: map_config.MAP_ZOOM})
// }, 10000)
return [map, scene];
} }
}, },
computed: {}, computed: {},
......
<template>
<div class="map_main">
<div :id="mapId" style="height: 100%;width:100%;"></div>
</div>
</template>
<script>
let map;
// Point MultiPoint LineString MultiLineString Polygon MultiPolygon
export default {
name: "wMap",
props: ["mapId"],
components: {},
data() {
return {};
},
mounted() {},
methods: {
initMap(option) {
let options = Object.assign(
{},
{
container: this.mapId,
style: map_config.MAP_STYLE,
center: map_config.MAP_CENTER,
zoom: map_config.MAP_ZOOM,
maxZoom: map_config.MAX_ZOOM,
pitch: map_config.MAP_PITCH,
},
option
);
map = new mapboxgl.Map(options);
return map;
},
destroyMap() {
map?.remove;
map = null;
},
},
computed: {},
beforeDestroy() {},
};
</script>
<style scoped>
.map_main {
height: 100%;
width: 100%;
position: relative;
background-color: #040d1c
}
</style>
<style>
.mapboxgl-ctrl-attrib {
display: none;
}
</style>
This diff is collapsed.
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
</template> </template>
<script> <script>
import wMap from "../../components/map/index.vue"; import wMap from "../../components/Standard/mapboxMap.vue";
import { initWs } from "../../utils/websocket"; import { initWs } from "../../utils/websocket";
import dict from "../../config/holo/dictionary"; import dict from "../../config/holo/dictionary";
import * as mapTools from "../../utils/mapboxTools"; import * as mapTools from "../../utils/mapboxTools";
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
</template> </template>
<script> <script>
import CesiumMap from "../../../components/Standard/cesiumMap.vue"; import CesiumMap from "../../../components/Standard/mapCesium.vue";
import MsgCard from "../../../components/Standard/msg-card.vue"; import MsgCard from "../../../components/Standard/msg-card.vue";
import CameraVideo from "../../../components/Standard/cameraVideo.vue"; import CameraVideo from "../../../components/Standard/cameraVideo.vue";
import LocalCamera from "../../../components/Standard/localCamera.vue"; import LocalCamera from "../../../components/Standard/localCamera.vue";
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
</template> </template>
<script> <script>
import CesiumMap from "../../../components/Standard/cesiumMap.vue"; import CesiumMap from "../../../components/Standard/mapCesium.vue";
import MsgCard from "../../../components/Standard/msg-card.vue"; import MsgCard from "../../../components/Standard/msg-card.vue";
let topViewer, bottomViewer; let topViewer, bottomViewer;
...@@ -92,10 +92,6 @@ export default { ...@@ -92,10 +92,6 @@ export default {
margin: 0 margin: 0
} }
::v-deep .msg-card-content {
}
.top-left { .top-left {
position: absolute; position: absolute;
left: -1px; left: -1px;
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
</template> </template>
<script> <script>
import wMap from "../../components/map/index.vue"; import wMap from "../../components/Standard/mapboxMap.vue";
import { initWs } from "../../utils/websocket"; import { initWs } from "../../utils/websocket";
import dict from "../../config/holo/dictionary"; import dict from "../../config/holo/dictionary";
import * as mapTools from "../../utils/mapboxTools"; import * as mapTools from "../../utils/mapboxTools";
......
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
</template> </template>
<script> <script>
import CesiumMap from "../../../components/Standard/cesiumMap.vue"; import CesiumMap from "../../../components/Standard/mapCesium.vue";
import MsgCard from "../../../components/Standard/msg-card.vue"; import MsgCard from "../../../components/Standard/msg-card.vue";
import CameraVideo from "../../../components/Standard/cameraVideo.vue"; import CameraVideo from "../../../components/Standard/cameraVideo.vue";
import CrossControl from "../../../components/CrossControl/crossControl.vue"; import CrossControl from "../../../components/CrossControl/crossControl.vue";
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
</template> </template>
<script> <script>
import wMap from "../../components/map/index.vue"; import wMap from "../../components/Standard/mapboxMap.vue";
import { initWs } from "../../utils/websocket"; import { initWs } from "../../utils/websocket";
import dict from "../../config/holo/dictionary"; import dict from "../../config/holo/dictionary";
import * as mapTools from "../../utils/mapboxTools"; import * as mapTools from "../../utils/mapboxTools";
......
...@@ -9,14 +9,14 @@ ...@@ -9,14 +9,14 @@
</template> </template>
<script> <script>
import CesiumMap from "../../../components/Standard/cesiumMap.vue"; import CesiumMap from "../../../components/Standard/mapCesium.vue";
import MsgCard from "../../../components/Standard/msg-card.vue"; import MsgCard from "../../../components/Standard/msg-card.vue";
import CameraVideo from "../../../components/Standard/cameraVideo.vue"; import CameraVideo from "../../../components/Standard/cameraVideo.vue";
import CrossControl from "../../../components/CrossControl/crossControl.vue"; import CrossControl from "../../../components/CrossControl/crossControl.vue";
import LocalCamera from "../../../components/Standard/localCamera.vue"; import LocalCamera from "../../../components/Standard/localCamera.vue";
let topViewer, bottomViewer; let topViewer, bottomViewer;
export default { export default {
name: "homeRight", name: "homeRight",
components: {LocalCamera, CrossControl, CameraVideo, MsgCard, CesiumMap}, components: {LocalCamera, CrossControl, CameraVideo, MsgCard, CesiumMap},
......
...@@ -7,14 +7,14 @@ ...@@ -7,14 +7,14 @@
element-loading-background="rgba(0, 0, 0, 0.8)" element-loading-background="rgba(0, 0, 0, 0.8)"
> >
<div class="shadow-mask"></div> <div class="shadow-mask"></div>
<local-camera <!-- <local-camera
:border="true" :border="true"
ref="groupViewPointCamera" ref="groupViewPointCamera"
video-data="lkqz_0" video-data="lkqz_0"
class="main-cameraVideo" class="main-cameraVideo"
:class="!boxesShow ? 'main-cameraVideoHidden' : ''" :class="!boxesShow ? 'main-cameraVideoHidden' : ''"
> >
</local-camera> </local-camera> -->
<wMap :mapId="'situation-map'" ref="wMap" /> <wMap :mapId="'situation-map'" ref="wMap" />
<!--左右图表组件--> <!--左右图表组件-->
<message-boxes :show="boxesShow" /> <message-boxes :show="boxesShow" />
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
</template> </template>
<script> <script>
import wMap from "../../components/map/index.vue"; import wMap from "../../components/Standard/mapboxMap.vue";
import { initWs } from "../../utils/websocket"; import { initWs } from "../../utils/websocket";
import dict from "../../config/holo/dictionary"; import dict from "../../config/holo/dictionary";
import * as mapTools from "../../utils/mapboxTools"; import * as mapTools from "../../utils/mapboxTools";
...@@ -89,17 +89,6 @@ export default { ...@@ -89,17 +89,6 @@ export default {
}; };
}, },
watch: { watch: {
// boxesShow(val) {
// if (val) {
// document
// .getElementsByClassName("mapboxgl-ctrl-bottom-right")[0]
// .classList.remove("mapboxgl-ctrl-bottom-right-hide-box");
// } else {
// document
// .getElementsByClassName("mapboxgl-ctrl-bottom-right")[0]
// .classList.add("mapboxgl-ctrl-bottom-right-hide-box");
// }
// },
}, },
mounted() { mounted() {
this.initDictAndLoad(); this.initDictAndLoad();
...@@ -721,12 +710,12 @@ export default { ...@@ -721,12 +710,12 @@ export default {
top: 0; top: 0;
z-index: 9; z-index: 9;
pointer-events: none; pointer-events: none;
background: linear-gradient( // background: linear-gradient(
180deg, // 180deg,
rgba(0, 0, 0, 0.01) 0%, // rgba(0, 0, 0, 0.01) 0%,
rgba(0, 0, 0, 0.3) 100% // rgba(0, 0, 0, 0.3) 100%
), // ),
radial-gradient(50% 48.61%, rgba(0, 0, 0, 0.01) 0%, rgba(0, 0, 0, 0.2) 100%); // radial-gradient(50% 48.61%, rgba(0, 0, 0, 0.01) 0%, rgba(0, 0, 0, 0.2) 100%);
} }
.timeCenter { .timeCenter {
......
...@@ -9,18 +9,18 @@ ...@@ -9,18 +9,18 @@
<wMap :mapId="'situation-map'" ref="wMap" /> <wMap :mapId="'situation-map'" ref="wMap" />
<home-left ref="leftVideo" /> <home-left ref="leftVideo" />
<home-right ref="rightVideo" /> <home-right ref="rightVideo" />
<model-map class="modelMap" /> <mobile-model class="modelMap" />
</div> </div>
</template> </template>
<script> <script>
import wMap from "../../components/map/index.vue"; import wMap from "../../components/Standard/mapboxMap.vue";
import { initWs } from "../../utils/websocket"; import { initWs } from "../../utils/websocket";
import dict from "../../config/holo/dictionary"; import dict from "../../config/holo/dictionary";
import * as mapTools from "../../utils/mapboxTools"; import * as mapTools from "../../utils/mapboxTools";
import mapAssets from "../../config/holo/mapAssets"; import mapAssets from "../../config/holo/mapAssets";
import ModelMap from "./left/modelMap.vue"; import MobileModel from "./left/mobileModel.vue";
import HomeLeft from "./left/index.vue"; import HomeLeft from "./left/index.vue";
import HomeRight from "./right/index.vue"; import HomeRight from "./right/index.vue";
...@@ -33,7 +33,7 @@ let map, ...@@ -33,7 +33,7 @@ let map,
export default { export default {
name: "mobileBaseStation", name: "mobileBaseStation",
components: { components: {
ModelMap, MobileModel,
HomeRight, HomeRight,
HomeLeft, HomeLeft,
wMap, wMap,
......
...@@ -13,11 +13,11 @@ ...@@ -13,11 +13,11 @@
import CameraVideo from "../../../components/Standard/cameraVideo.vue"; import CameraVideo from "../../../components/Standard/cameraVideo.vue";
import MsgCard from "../../../components/Standard/msg-card.vue"; import MsgCard from "../../../components/Standard/msg-card.vue";
import {getCameraListByType} from "../../../dao/api"; import {getCameraListByType} from "../../../dao/api";
import WMap from "../../../components/Standard/map/index.vue"; import WMap from "../../../components/Standard/mapboxMap.vue";
import dict from "../../../config/holo/dictionary"; import dict from "../../../config/holo/dictionary";
import LocalCamera from "../../../components/Standard/localCamera.vue"; import LocalCamera from "../../../components/Standard/localCamera.vue";
let map, scene let map
export default { export default {
name: "homeLeft", name: "homeLeft",
components: {LocalCamera, WMap, MsgCard, CameraVideo}, components: {LocalCamera, WMap, MsgCard, CameraVideo},
......
<template> <template>
<div class="model_map"> <div class="model_map">
<model-map-c ref="modelMap" map-id="model_map"/> <model-map ref="modelMap" map-id="model_map"/>
</div> </div>
</template> </template>
<script> <script>
import WMap from "../../../components/Standard/map/index.vue"; import WMap from "../../../components/Standard/mapboxMap.vue";
import dict from "../../../config/holo/dictionary"; import ModelMap from "../../../components/Standard/modelMap.vue";
import ModelMapC from "../../../components/Standard/map/modelMapC.vue";
let scene, map let map
export default { export default {
name: "modelMap", components: {ModelMap, WMap},
components: {ModelMapC, WMap},
computed: {}, computed: {},
data() { data() {
return { return {
...@@ -21,7 +19,7 @@ export default { ...@@ -21,7 +19,7 @@ export default {
}; };
}, },
mounted() { mounted() {
[map, scene] = this.$refs.modelMap.initMap() map = this.$refs.modelMap.initMap()
map.on('load', () => { map.on('load', () => {
map.setCenter([41.00025957469552, 20.999984837534015]) map.setCenter([41.00025957469552, 20.999984837534015])
map.setZoom(18.4818298651229) map.setZoom(18.4818298651229)
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
</template> </template>
<script> <script>
import CesiumMap from "../../../components/Standard/cesiumMap.vue"; import CesiumMap from "../../../components/Standard/mapCesium.vue";
import MsgCard from "../../../components/Standard/msg-card.vue"; import MsgCard from "../../../components/Standard/msg-card.vue";
import CameraVideo from "../../../components/Standard/cameraVideo.vue"; import CameraVideo from "../../../components/Standard/cameraVideo.vue";
import CrossControl from "../../../components/CrossControl/crossControl.vue"; import CrossControl from "../../../components/CrossControl/crossControl.vue";
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
</template> </template>
<script> <script>
import wMap from "../../components/map/index.vue"; import wMap from "../../components/Standard/mapboxMap.vue";
import { initWs } from "../../utils/websocket"; import { initWs } from "../../utils/websocket";
import dict from "../../config/holo/dictionary"; import dict from "../../config/holo/dictionary";
import * as mapTools from "../../utils/mapboxTools"; import * as mapTools from "../../utils/mapboxTools";
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
</template> </template>
<script> <script>
import CesiumMap from "../../../components/Standard/cesiumMap.vue"; import CesiumMap from "../../../components/Standard/mapCesium.vue";
import MsgCard from "../../../components/Standard/msg-card.vue"; import MsgCard from "../../../components/Standard/msg-card.vue";
import CameraVideo from "../../../components/Standard/cameraVideo.vue"; import CameraVideo from "../../../components/Standard/cameraVideo.vue";
import CrossControl from "../../../components/CrossControl/crossControl.vue"; import CrossControl from "../../../components/CrossControl/crossControl.vue";
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
</template> </template>
<script> <script>
import wMap from "../../components/map/index.vue"; import wMap from "../../components/Standard/mapboxMap.vue";
import { initWs } from "../../utils/websocket"; import { initWs } from "../../utils/websocket";
import dict from "../../config/holo/dictionary"; import dict from "../../config/holo/dictionary";
import * as mapTools from "../../utils/mapboxTools"; import * as mapTools from "../../utils/mapboxTools";
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
</template> </template>
<script> <script>
import CesiumMap from "../../../components/Standard/cesiumMap.vue"; import CesiumMap from "../../../components/Standard/mapCesium.vue";
import MsgCard from "../../../components/Standard/msg-card.vue"; import MsgCard from "../../../components/Standard/msg-card.vue";
import CameraVideo from "../../../components/Standard/cameraVideo.vue"; import CameraVideo from "../../../components/Standard/cameraVideo.vue";
import CrossControl from "../../../components/CrossControl/crossControl.vue"; import CrossControl from "../../../components/CrossControl/crossControl.vue";
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
</template> </template>
<script> <script>
import CesiumMap from "../../../components/Standard/cesiumMap.vue"; import CesiumMap from "../../../components/Standard/mapCesium.vue";
import MsgCard from "../../../components/Standard/msg-card.vue"; import MsgCard from "../../../components/Standard/msg-card.vue";
let topViewer, bottomViewer; let topViewer, bottomViewer;
...@@ -92,9 +92,6 @@ export default { ...@@ -92,9 +92,6 @@ export default {
margin: 0 margin: 0
} }
::v-deep .msg-card-content {
}
.top-left { .top-left {
position: absolute; position: absolute;
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
</template> </template>
<script> <script>
import wMap from "../../components/map/index.vue"; import wMap from "../../components/Standard/mapboxMap.vue";
import { initWs } from "../../utils/websocket"; import { initWs } from "../../utils/websocket";
import dict from "../../config/holo/dictionary"; import dict from "../../config/holo/dictionary";
import * as mapTools from "../../utils/mapboxTools"; import * as mapTools from "../../utils/mapboxTools";
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
</template> </template>
<script> <script>
import CesiumMap from "../../../components/Standard/cesiumMap.vue"; import CesiumMap from "../../../components/Standard/mapCesium.vue";
import MsgCard from "../../../components/Standard/msg-card.vue"; import MsgCard from "../../../components/Standard/msg-card.vue";
import CameraVideo from "../../../components/Standard/cameraVideo.vue"; import CameraVideo from "../../../components/Standard/cameraVideo.vue";
import CrossControl from "../../../components/CrossControl/crossControl.vue"; import CrossControl from "../../../components/CrossControl/crossControl.vue";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment