-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changing map layer style breaks layer #12752
Comments
@jeff-bradley can you prepare a reproducible setup either on the stable or dev GeoNode demos? |
@giohappy here is a test map on the development site. once I click style settings I get an error |
I have the same problem with a 404 in geoserver logs like :
Whereas the style exists. Btw I think it is not the same issue, it is about uploading an SLD in v1.1.0. Did you upload an SLD before ? If you try with more logs you will see an error during uploading sld 1.1.0 you will see:
Error about SLD in 1.1.0 version is also reported using the rest api here below: SLD 1.1.0 is still not supported: |
Expected Behavior
After changing a layers style in a map, I can click the Layer Settings button and under the Style setting switch between the new style and another style.
Actual Behavior
When clicking the Layer setting button it either instantly fails or the panel opens and when selecting the Style settings dropdown I get this error
Steps to Reproduce the Problem
Specifications
Experienced the same behavior on the demo site
If I remove the styles array from the maps_layer extra params column I am able to get the layer to work again
{
"msId": "9a4e93cb-296e-4086-a18c-9cd5519eacbb",
"styles": [
{
"name": "geonode:e3a7d800-ace9-11ef-bdfa-259dc132ae4c_ms_airports",
"title": "airports",
"format": "sld"
}
]
}
The console log
TypeError: Cannot read properties of undefined (reading 'LAYER')
at visual-style-editor-…ea.chunk.js:1:28531
I do not see any network calls before the error comes up.
The text was updated successfully, but these errors were encountered: