Hi List, Is there any way to add a second symbol in CSS based on a condition? So by example
[param1 = value1] { mark: symbol(circle); } [param2 = value2] { mark(2): symbol(square); /* around the circle */ } I could define the second rule as: [param2 = value2] { mark: symbol(circle), symbol(square); /* around the circle */ } But in this case I have to know what is the first symbol and it could also depend on a condition, so the below is not working fine: * { mark: symbol(triangle); } [param1 = value1] { mark: symbol(circle); } [param2 = value2] { mark: symbol(circle), symbol(square); /* here I overload the first symbol without knowing if it is a triangle or circle */ } I was considering defining the two symbols in the default rule and use :nth-mark(1) and :nth-mark(2) later but I do not see any was to change the symbol itself this way only its style. I know this can be done in SLD, now we are copying the two CSS generated SLD’s FeatureTypeStyles to one by hand but this is not a nice solution. I was also considering using the z-index property but could not figure out how to achieve the above desired behaviour. Thank you, Laszlo _______________________________________________ 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 Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users