build(deps): update geostyler-* deps to latest major versions (#38151)

Signed-off-by: hainenber <dotronghai96@gmail.com>
This commit is contained in:
Đỗ Trọng Hải
2026-03-13 15:18:59 +07:00
committed by GitHub
parent 83955e87ac
commit 0b8df8d3f2
7 changed files with 203 additions and 438 deletions

View File

@@ -40,11 +40,11 @@
"@superset-ui/core": "*",
"@apache-superset/core": "*",
"@types/react-redux": "*",
"geostyler": "^14.1.3",
"geostyler": "^18.3.1",
"geostyler-data": "^1.0.0",
"geostyler-openlayers-parser": "^4.0.0",
"geostyler-style": "^7.2.0",
"geostyler-wfs-parser": "^2.0.0",
"geostyler-openlayers-parser": "^5.4.0",
"geostyler-style": "^11.0.2",
"geostyler-wfs-parser": "^3.0.1",
"ol": "^10.8.0",
"polished": "*",
"react": "^17.0.2",

View File

@@ -36,6 +36,7 @@ describe('layerUtil', () => {
describe('createWfsLayer', () => {
test('properly applies style', async () => {
const colorToExpect = '#123456';
const fillColor = '#ff0000';
const wfsLayerConf: WfsLayerConf = {
title: 'osm:osm-fuel',
@@ -61,7 +62,7 @@ describe('layerUtil', () => {
},
{
kind: 'Fill',
color: '#000000',
color: fillColor,
},
],
},
@@ -76,8 +77,8 @@ describe('layerUtil', () => {
expect(style!.length).toEqual(3);
// @ts-expect-error upgrade `ol` package for better type of StyleLike type.
const colorAtLayer = style![1].getImage().getFill().getColor();
expect(colorToExpect).toEqual(colorAtLayer);
const colorAtLayer = style![2].getFill().getColor();
expect(colorAtLayer).toEqual(fillColor);
});
});