Newer
Older
HuangJiPC / src / pages / views / oneMap / components / oneMapDataMap - 副本.vue
@zhangdeliang zhangdeliang on 21 Jun 569 bytes update
<template>
  <div id="oneMapDataMap"></div>
</template>
<script>
import { ref, reactive, toRefs, onMounted } from "vue";
export default {
  name: "oneMapDataMap",
  setup() {
    function initMap() {
      const BMap = window.BMap;
      var map = new BMap.Map("oneMapDataMap");
      map.centerAndZoom("武汉", 15);
      map.enableScrollWheelZoom(true);
    }
    onMounted(() => {
      initMap();
    });
    return { initMap };
  },
  computed: {},
  methods: {},
};
</script>
<style lang="less" scoped>
#oneMapDataMap {
  width: 100%;
  height: 100%;
}
</style>