| | |
| | | |
| | | 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; |
| | |
| | | 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); |