派生自 wuyushui/SewerAndRainNetwork

wangrui
2020-12-16 3f519e47a8248ca240aba8e4459f047bb65bf5af
src/views/MapTemplate.vue
@@ -2,6 +2,7 @@
  <div class="full-screen">
        <div id="map" ref="rootmap"></div>
        <sgis-layer-controller :preset="'warningPreset'"></sgis-layer-controller>
        <monitor-panel></monitor-panel>
  </div>
</template>
@@ -9,11 +10,12 @@
import 'leaflet/dist/leaflet.css'
import Sgis from '@src/Sgis'
import SgisLayerController from '@components/LayerController/LayerController'
import MonitorPanel from '@components/panel/MonitorPanel'
import { mapMutations, mapState } from 'vuex'
export default {
  name: 'MapTemplate',
  components: {SgisLayerController, },
  components: {SgisLayerController, MonitorPanel},
  datas:{
      ...mapState("/",{})
  },
@@ -42,13 +44,17 @@
}
</script>
<style lang="less" scoped>
<style lang="less">
.full-screen{
    width: calc(100vw);
    height: calc(100vh);
    overflow: hidden;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    position: absolute;
  #map{
    height: 100%;
    width: 100%;
  }
}
</style>>