hslayers-ng icon indicating copy to clipboard operation
hslayers-ng copied to clipboard

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

Open jmacura opened this issue 3 years ago • 8 comments

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

jmacura avatar Nov 04 '22 09:11 jmacura

@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?

raitisbe avatar Dec 05 '22 12:12 raitisbe

@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?

jmacura avatar Dec 07 '22 21:12 jmacura

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

raitisbe avatar Dec 08 '22 13:12 raitisbe

Problem is with QML styles.

jmacura avatar Jan 13 '23 09:01 jmacura

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.

jmacura avatar Mar 08 '23 22:03 jmacura

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

FilipLeitner avatar Jul 26 '24 07:07 FilipLeitner

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

fzadrazil avatar Nov 11 '24 09:11 fzadrazil

needs to be tested with Layman v 1.23 and Layman 2.0

jmacura avatar Mar 10 '25 16:03 jmacura