I can't answer #2 for you but for #1 this is an example I have for labeling
at different scales which works as you are describing:
/* @title ats_sec_centroid 20k-40k */
[@sd < 200000]
*{
label-anchor: 0.5 0.5;
font-family: "Arial";
font-fill: #444444;
font-style: normal;
font-weight: bold;
halo-radius: 1;
halo-color: #FFFFFF;
[@sd >= 100000][@sd < 200000] {
label: [sec];
font-size: 10;
};
[@sd >= 25000][@sd < 100000] {
label: [labeltext];
font-size: 12;
};
}
I think the trick is to put the subsets INSIDE the default definition
brackets.
Hope it helps,
Vera
On Sat, Apr 18, 2020 at 9:54 AM Árni Geirsson <[email protected]> wrote:
> Hello fellow Geoserver users
> I have two problems with CSS styling that I have not been able to find a
> solution for:
>
> 1. When I apply a simple rule for the basic style and then a scale
> dependent rule for labeling of the same features, the legend shows two
> entries. Is there a way to suppress the legend entry for the labeling rule?
>
> 2. I have a line stroke rendered with repeated small png external images.
> These are, by default, rotated as the line heading changes but can I
> suppress the rotation and have the images all rendered without any
> rotation, as for a horizontal line?
>
> Any hints are highly appreciated.
>
> Arni Geirsson
> _______________________________________________
> Geoserver-users mailing list
>
> Please make sure you read the following two resources before posting to
> this list:
> - Earning your support instead of buying it, but Ian Turton:
> http://www.ianturton.com/talks/foss4g.html#/
> - The GeoServer user list posting guidelines:
> http://geoserver.org/comm/userlist-guidelines.html
>
> If you want to request a feature or an improvement, also see this:
> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
>
>
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
_______________________________________________
Geoserver-users mailing list
Please make sure you read the following two resources before posting to this
list:
- Earning your support instead of buying it, but Ian Turton:
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines:
http://geoserver.org/comm/userlist-guidelines.html
If you want to request a feature or an improvement, also see this:
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users