hslayers / hslayers-ng

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

Styler: No text size on init #2645

Closed jmacura closed 2 years ago

jmacura commented 2 years ago

Bug

Describe the bug "Text size" box is empty when styler is opened.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Style layer'
  2. Create or open some Text Symbolizer
  3. See nothing in "text size" box

Expected behavior Current size shall be displayed.

Screenshots obrazek

Additional context Some UX improvements can be also done on this field. Either changing it to slider like it is for e.g. width et al. Or perhaps adding some arrows on the side which would increment/decrement the number in the box by 1. Like this I mean: obrazek or like this: obrazek But that could be another story for another issue and another release 🙂

raitisbe commented 2 years ago

I could only replicate when deleting the previous SLD rules and creating a new Rule for clusters in https://github.com/hslayers/hslayers-ng/pull/2643/commits/9c8a5d597f775103e04c80f41a588f2c40466d8a. When adding Text symbolizers text size is set to 12 for me.

jmacura commented 2 years ago

I could only replicate when deleting the previous SLD rules and creating a new Rule for clusters in 9c8a5d5. When adding Text symbolizers text size is set to 12 for me.

I was experiencing it when opening the styler for "Clusters without SLD". It seems to be OK now after #2643 .