parent
4ca953802c
commit
e2c3d49ca1
@ -0,0 +1,2 @@
|
|||||||
|
|
||||||
|
export { default as MapView } from './map.vue'
|
@ -0,0 +1,23 @@
|
|||||||
|
<template>
|
||||||
|
<div class="marsMap-container">
|
||||||
|
<MarsMap
|
||||||
|
:url="configUrl"
|
||||||
|
:options="mapOptions"
|
||||||
|
map-key="test"
|
||||||
|
@onload="marsOnload"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import MarsMap from "@/components/mars-work/mars-map.vue";
|
||||||
|
import mapOptions from "../mapOptions";
|
||||||
|
const configUrl = "lib/config/config.json";
|
||||||
|
const marsOnload = (map) => {};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.marsMap-container {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
</style>
|
@ -1,22 +1,15 @@
|
|||||||
<template>
|
<template>
|
||||||
<MarsMap :url="configUrl" map-key="test" @onload="marsOnload" />
|
<div class="visualization-container">
|
||||||
</template>
|
<MapView></MapView>
|
||||||
|
</div>
|
||||||
<script setup lang="ts">
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
import MarsMap from '@/components/mars-work/mars-map.vue'
|
import { MapView } from './components/index.js'
|
||||||
|
</script>
|
||||||
const configUrl = "lib/config/config.json";
|
|
||||||
|
<style lang="scss">
|
||||||
|
.visualization-container {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
const marsOnload = (map)=>{
|
</style>
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style></style>
|
|
||||||
|
|
||||||
|
@ -0,0 +1,48 @@
|
|||||||
|
export default {
|
||||||
|
method: {
|
||||||
|
chinaCRS: mars3d.ChinaCRS.GCJ02, // 标识坐标系
|
||||||
|
},
|
||||||
|
scene:{
|
||||||
|
showSun:false,//太阳
|
||||||
|
showMoon:false,//月亮
|
||||||
|
showSkyAtmosphere:false,//大气层外光圈
|
||||||
|
fog:false,//雾化
|
||||||
|
fxaa:false,//快速抗锯齿
|
||||||
|
scene3DOnly: true,
|
||||||
|
requestRenderMode: true,
|
||||||
|
},
|
||||||
|
terrain:{
|
||||||
|
show:false,//地形
|
||||||
|
},
|
||||||
|
control:{
|
||||||
|
toolbar:false,
|
||||||
|
homeButton:false,
|
||||||
|
zoom:false,
|
||||||
|
distanceLegend:false,
|
||||||
|
sceneModePicker:false,
|
||||||
|
locationBar:false,
|
||||||
|
// contextmenu: { preventDefault: false, hasDefault: false },
|
||||||
|
},
|
||||||
|
mouse:{
|
||||||
|
enabledMoveTarget:false
|
||||||
|
},
|
||||||
|
basemaps: [
|
||||||
|
{
|
||||||
|
id: 2017,
|
||||||
|
pid: 10,
|
||||||
|
name: "蓝色底图",
|
||||||
|
icon: "//data.mars3d.cn/img/thumbnail/basemap/bd-c-midnight.png",
|
||||||
|
type: "gaode",
|
||||||
|
layer: "vec",
|
||||||
|
chinaCRS: "GCJ02",
|
||||||
|
invertColor: true,
|
||||||
|
filterColor: "#1D264D",
|
||||||
|
brightness: 0.6,
|
||||||
|
contrast: 1.8,
|
||||||
|
gamma: 0.3,
|
||||||
|
hue: 1,
|
||||||
|
saturation: 0,
|
||||||
|
show:true
|
||||||
|
},
|
||||||
|
],
|
||||||
|
};
|
Loading…
Reference in new issue