wujingjing
2025-02-10 e50196bff10f0196307b2567ed6c0829eadd8ff6
src/components/chat/chatComponents/summaryCom/components/recordSetTable/map/panelTool/ThemeControl.vue
@@ -377,9 +377,7 @@
      return styles;
   };
   const allLayers = props.olMap.layerInfo.value.reduce((preVal, curVal) => {
      return preVal.concat(curVal.children.map((item) => item));
   }, []);
   const allLayers = props.olMap.getAllLayers();
   for (const item of allLayers) {
      if (props.olMap?.unsupportedLayers.includes(item.id)) {
         continue;
@@ -399,9 +397,7 @@
   const ids = allIds.join(',');
   if (!ids) {
      const allLayers = props.olMap.layerInfo.value.reduce((preVal, curVal) => {
         return preVal.concat(curVal.children.map((item) => item.model));
      }, []);
      const allLayers = props.olMap.getAllLayerModels();
      for (const item of allLayers) {
         const originStyle = item.get('originStyle');
         originStyle && item.setStyle(originStyle);