| | |
| | | const lColor = themeStyle?.LCOLOR ?? feature.get('lcolor'); |
| | | const lStyle = themeStyle?.LSTYLE ?? feature.get('lstyle'); |
| | | |
| | | const pSize1 = themeStyle?.PSIZE ?? feature.get('psize'); |
| | | const pcolor1 = themeStyle?.PCOLOR ?? feature.get('pcolor'); |
| | | const pStyle1 = themeStyle?.PSTYLE ?? feature.get('pstyle'); |
| | | |
| | | |
| | | const lineStyle = props.olMap?.getLineStyles({ |
| | | lsize: lSize, |
| | | lcolor: lColor, |
| | | lstyle: lStyle, |
| | | psize: pSize1, |
| | | pcolor: pcolor1, |
| | | pstyle: pStyle1, |
| | | |
| | | }); |
| | | lineStyle && styles.push(...lineStyle); |
| | | |
| | | break; |
| | | case 'Polygon': |
| | | const pColor = feature.get('pcolor'); |
| | | const lSize1 = feature.get('lsize'); |
| | | const lColor1 = feature.get('lcolor'); |
| | | const lstyle1 = feature.get('lstyle'); |
| | | const polygonStyle = props.olMap?.getPolygonStyles({ |
| | | pcolor: pColor, |
| | | lsize: lSize1, |
| | | lcolor: lColor1, |
| | | lstyle: lstyle1, |
| | | }); |
| | | polygonStyle && styles.push(...polygonStyle); |
| | | |
| | | break; |
| | | default: |
| | | break; |