3

Been working with GeoServer for some time now. While working with the publishing tab of the layer, I noticed a problem. Every time that I set the default style with a single featured CSS style, the defined title doesn't show. For some clarification I've added some screenshots:

  • The first image shows the desired visualization. Notice the two titles in the legend
  • The second image shows the desired style but not the title, this always happens if a layer is only styled by one feature.

I would like to figure out a way to make my titles visual in all my layers, can anyone help me out?

This image shows the 'good' visualization.

This image shows the good style but not the title like the other image.

  • did you give your rule a title in the 2nd case? – Ian Turton Dec 22 '16 at 14:55
  • Yes, /* @title Telfort-BT Ignite */. Same as any other title. – Douwe Vermeer Dec 22 '16 at 15:38
2

you will have to add a second category with no data to allow geoserver show the legend title, for example in QGIS:Picture 1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.