Newer
Older
KaiFengPC / src / views / floodSys / floodYP / riskGisMap.vue
@zhangdeliang zhangdeliang on 23 May 614 bytes 初始化项目
  1. <template>
  2. <!--内涝风险评估 GIS地图 -->
  3. <div class="riskMapGis">
  4. <MapBox :initJson="`/static/libs/mapbox/style/lateWarn.json`" :loadCallback="loadCallback"></MapBox>
  5. </div>
  6. </template>
  7.  
  8. <script setup name="riskMapGis">
  9. import MapBox from '@/views/gisMapPage/gisMapBox1'; //gis地图
  10. const { proxy } = getCurrentInstance();
  11. const allData = reactive({});
  12. const emits = defineEmits();
  13. const loadCallback = () => {
  14. emits('loadCallback');
  15. };
  16. onMounted(() => {});
  17. </script>
  18. <style lang="scss">
  19. .riskMapGis {
  20. width: 100%;
  21. height: calc(100vh - 120px);
  22. background: rgba(0, 0, 0, 0.05);
  23. }
  24. </style>