diff --git a/src/views/floodSys/floodYP/riskAsses.vue b/src/views/floodSys/floodYP/riskAsses.vue index e43526a..f28e267 100644 --- a/src/views/floodSys/floodYP/riskAsses.vue +++ b/src/views/floodSys/floodYP/riskAsses.vue @@ -303,8 +303,6 @@ } const mapInit = () => { getZSList(); - // addCityBoundary(); - // newfiberMap_risk.map.moveLayer('xiaoganWater', 'xiaoganCityBoundary'); }; // 暂停模拟 function stopImitate() { @@ -317,35 +315,8 @@ clearInterval(timer.value); } } -//添加孝感城区边界 -const addCityBoundary = () => { - !newfiberMap_risk.map.getSource('xiaoganCityBoundary') && - newfiberMap_risk.map.addSource('xiaoganCityBoundary', { type: 'geojson', data: xiaoganCityBoundary }); - !newfiberMap_risk.map.getLayer('xiaoganCityBoundary') && - !newfiberMap_risk.map.addLayer({ - id: 'xiaoganCityBoundary', - type: 'line', - source: 'xiaoganCityBoundary', - paint: { - 'line-color': 'rgba(255, 175, 71,1)', - 'line-width': 3, - }, - }); - // setTimeout(() => { - // newfiberMap_risk.map.moveLayer('xiaoganWater', 'xiaoganCityBoundary'); - // }, 3000); -}; -onMounted(() => { - // timer.value = setInterval(() => { - // if (!!!newfiberMap_risk) { - // return; - // } else { - // addCityBoundary(); - // // getZSList(); - // clearInterval(timer.value); - // } - // }, 100); -}); + +onMounted(() => {}); onBeforeMount(() => { stopTimer(); });