I would like to show overlapping polygons on a single layer.
The polygons are coloured based on a property and labelled according to another property. The problem is then twofold:
- The polygons are rendered in random order in tiles where they overlap, resulting in some small ones to "disappear" under the larger ones (e.g. cities "under" regions), while I would like them to be rendered according to a given property (I was thinking about using Priority but it is available only for TextSymbolizer in geoserver).
- The labels of larger polygons are shown "on top" of smaller polygons, while I would like to have them drawn ( repeated ) only at areas where the two (or more) polygons do not overlap. E.g. State names only to be shown where no other regional surface is being drawn (even if this might result in State names not being shown at all).
Is there a proper way of doing it?