Skip to content

Fix 11749 flatgeobuf styleditor cors#12374

Open
stefanocudini wants to merge 1 commit into
geosolutions-it:masterfrom
stefanocudini:fix-11749-flatgeobuf-styleditor-cors
Open

Fix 11749 flatgeobuf styleditor cors#12374
stefanocudini wants to merge 1 commit into
geosolutions-it:masterfrom
stefanocudini:fix-11749-flatgeobuf-styleditor-cors

Conversation

@stefanocudini
Copy link
Copy Markdown
Member

@stefanocudini stefanocudini commented May 13, 2026

Description

image

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (check one with "x", remove the others)

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

## Issue

What is the current behavior?
styleeditor is loop loading when CORS blocked

What is the new behavior?
styleeditor loaded

Breaking change

Does this PR introduce a breaking change? (check one with "x", remove the other)

  • Yes, and I documented them in migration notes
  • No

Other useful information

This can be quickly tested by inserting a new layer into new.json in layers and open new map like this:

{
                "id": "countries__d29bd060-faa5-11f0-b91d-e14ce6c1c6b8",
                "format": "fgb",
                "name": "countries",
                "style": {
                    "format": "geostyler",
                    "metadata": {
                        "editorType": "visual",
                        "styleJSON": "{\"rules\":[{\"name\":\"Default Polygon Style\",\"ruleId\":\"955ec020-4aca-11f1-94bd-a3ab945c80ee\",\"symbolizers\":[{\"kind\":\"Fill\",\"color\":\"#f2f2f2\",\"fillOpacity\":0.3,\"outlineColor\":\"#3075e9\",\"outlineOpacity\":1,\"outlineWidth\":2,\"symbolizerId\":\"955ec021-4aca-11f1-94bd-a3ab945c80ee\"}]}]}"
                    },
                    "body": {
                        "rules": [
                            {
                                "name": "Default Polygon Style",
                                "ruleId": "955ec020-4aca-11f1-94bd-a3ab945c80ee",
                                "symbolizers": [
                                    {
                                        "kind": "Fill",
                                        "color": "#f2f2f2",
                                        "fillOpacity": 0.3,
                                        "outlineColor": "#3075e9",
                                        "outlineOpacity": 1,
                                        "outlineWidth": 2,
                                        "symbolizerId": "955ec021-4aca-11f1-94bd-a3ab945c80ee"
                                    }
                                ]
                            }
                        ]
                    }
                },
                "title": "countries",
                "type": "flatgeobuf",
                "url": "https://flatgeobuf.org/test/data/countries.fgb",
                "visibility": true,
                "singleTile": false,
                "dimensions": [],
                "hideLoading": false,
                "handleClickOnLayer": false,
                "useForElevation": false,
                "hidden": false,
                "expanded": false
            },

@cla-bot cla-bot Bot added the CLA Ready label May 13, 2026
fix-styleditor-empty

flatgeobuf fallback headers fix catalog fgb

fix tests
@stefanocudini stefanocudini force-pushed the fix-11749-flatgeobuf-styleditor-cors branch from f62a83b to 93a670d Compare May 13, 2026 14:29
@stefanocudini stefanocudini added this to the 2026.02.00 milestone May 13, 2026
@stefanocudini stefanocudini linked an issue May 13, 2026 that may be closed by this pull request
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for FlatGeobuf by MapStore

2 participants