However, if you want to try out the z-index, try adding z-index:1 to all rules for the first symbol, and z-index:2 to all the rules for the second symbol. Does it work then?
Cheers Andrea On Wed, Feb 27, 2019 at 7:34 PM Andrea Aime <andrea.a...@geo-solutions.it> wrote: > Hi László, > I don't think it's doable currently, you'll have to enumerate all > possibilities of the two variables, combine them, > and use mark: symbol(a), symbol(b) in each rule. > > I've been meaning to add the "inherit" keyword support to GeoCSS for this > use case (if you could think of a better one I am all ears), > but so far no sponsored project has been needing it > > Cheers > Andrea > > > On Thu, Feb 21, 2019 at 10:24 AM László Németh <nlaszlo1...@gmail.com> > wrote: > >> 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 >> > > > -- > > Regards, Andrea Aime == GeoServer Professional Services from the experts! > Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime > @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 > Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 > 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it > ------------------------------------------------------- *Con riferimento > alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - > Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni > circostanza inerente alla presente email (il suo contenuto, gli eventuali > allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i > destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per > errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le > sarei comunque grato se potesse darmene notizia. This email is intended > only for the person or entity to which it is addressed and may contain > information that is privileged, confidential or otherwise protected from > disclosure. We remind that - as provided by European Regulation 2016/679 > “GDPR” - copying, dissemination or use of this e-mail or the information > herein by anyone other than the intended recipient is prohibited. If you > have received this email by mistake, please notify us immediately by > telephone or e-mail.* > -- Regards, Andrea Aime == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- *Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.*
_______________________________________________ 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