管道基础大数据平台系统开发-【前端】-新系統界面
Surpriseplus
2023-03-17 9468898e83478c60165b987350f35edb6d1c77f8
src/components/MapDiv.vue
@@ -23,20 +23,25 @@
    >
      <mapol></mapol>
    </div>
    <add-online-map ref="addOnlineMap" />
  </div>
</template>
<script>
import mapsdk from "./mapsdk"
import mapol from "./mapol"
import { transform } from "ol/proj"
import ol from "ol"
import $ from "jquery"
import AddOnlineMap from '../views/Tools/AddOnlineMap.vue'
export default {
  name: "",
  components: {
    mapsdk,
    mapol,
    AddOnlineMap
  },
  data() {
    return {
@@ -222,8 +227,17 @@
      }
      return this.levelArray[this.levelArray.length - 1]
    },
    showBaseMapLayer() {
      this.$refs && this.$refs.addOnlineMap && this.$refs.addOnlineMap.open("地下模式", null);
    }
  },
  mounted() {
    this.$bus.$on("setChangeBaseMapLayer", (res) => {
      this.showBaseMapLayer()
    })
    //
    this.$bus.$on("changemap", e => {
      if (this.isSplitFlag == 1) {
        this.changeMap(3)