修改弹窗完毕

This commit is contained in:
aixianling
2023-09-20 15:06:57 +08:00
parent 068f041b1b
commit c0199b7b27
2 changed files with 80 additions and 30 deletions

View File

@@ -2,6 +2,7 @@
<section class="AiMap" :class="{mask}">
<div ref="amap" class="map"/>
<div v-if="mask" class="mask"/>
<slot/>
</section>
</template>
@@ -25,11 +26,6 @@ export default {
onlyShowArea: Boolean,
satellite: Boolean
},
computed: {
viewMode() {
return this.is3d ? '3D' : '2D'
}
},
data() {
return {
amap: null,
@@ -46,7 +42,7 @@ export default {
},
methods: {
initMap(c = 0) {
let {plugins, viewMode, mapStyle} = this
let {plugins, mapStyle} = this
AMapLoader.load({
key: '54a02a43d9828a8f9cd4f26fe281e74e',
version: '2.0',
@@ -58,7 +54,7 @@ export default {
if (this.$refs.amap) {
this.amap = new AMap.Map(this.$refs.amap, {
mapStyle,
viewMode,
viewMode: "3D",
terrain: true,
resizeEnable: true,
skyColor: "#082243",