hslayers / hslayers-ng

User interface and map building extensions for OpenLayers
https://ng.hslayers.org/
MIT License
37 stars 20 forks source link

Support QML styles (Vector layer added via Layman is not styled) #3513

Open jmacura opened 2 years ago

jmacura commented 2 years ago

Feature Request

Is your feature request related to a problem? Please describe. Related to #3440 Adding a vector file (GeoJSON) with style file directly into a map is OK. Adding a vector file (GeoJSON) with style file while also publishing the layer into Layman results into a layer without styling.

Describe the solution you'd like Also load layer's styles from the Layman.

Describe alternatives you've considered none

Additional context spin-off from #3440 related to #3579

raitisbe commented 1 year ago

@jmacura what is the style definition for that layer in layman in this case? Is it empty or could it be in SLD 1.1 format maybe?

jmacura commented 1 year ago

@raitisbe I have tested now with SLD 1.0 and the styles were loaded indeed... 🤔 image cf. https://hub.lesprojekt.cz/rest/workspaces/macurajan/layers/zones

So, yes, the issue might be related to SLD 1.1 or QML. @fzadrazil Do you have any specific use case when the style upload fails, which you could share with us?

raitisbe commented 1 year ago

@jmacura Please check if https://github.com/hslayers/hslayers-ng/pull/3616 solves it

jmacura commented 1 year ago

Problem is with QML styles.

jmacura commented 1 year ago

We already support QML styles (cf. #3435). Seems like the QML file structure has changed recently and it is not yet reflected by geostyler-qgis-parser.

FilipLeitner commented 4 months ago

Update: https://github.com/geostyler/geostyler-qgis-parser/pull/569

fzadrazil commented 3 weeks ago

Try to finish the referenced PR from Geostyler. If there is no response from its authors, create our own fork.