<template lang="pug" id="districtQuery">

</template>

<script>
export default {
  name: 'sl-map',
  props: {
    mapType: {
      type: String
    }
  },
  data () {
    return {
      hasBmView: false,
      olmap: null
    }
  },
  watch: {
   // 监听地图中心点---
   center (val) {
      const { olmap, center } = this
      olmap.getView().setCenter(center)
    }
  },
  methods: {

  },
  mounted () {
    
  }, 
  destroyed () {
    console.log("destroy map")
    this.olmap = null
  }
}
</script>
<style scoped>
</style>