first commit
This commit is contained in:
19
src/components/Map/index.vue
Normal file
19
src/components/Map/index.vue
Normal file
@@ -0,0 +1,19 @@
|
||||
<template>
|
||||
<div id="container" class="map" />
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { onMounted } from 'vue'
|
||||
onMounted(() => {
|
||||
var map = new BMapGL.Map('container')
|
||||
map.centerAndZoom(new BMapGL.Point(106.506299, 29.613929), 18)
|
||||
map.enableScrollWheelZoom(true)
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.map {
|
||||
width: vw(3040);
|
||||
height: vh(1080);
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user