Hi, some months ago we discussed the idea of having a background color in SLD to replace the need for a "giant layer" crutch, as used by GeoServer NY map as well as MBStyle translator: http://osgeo-org.1560.x6.nabble.com/Setting-the-map-background-color-in-the-style-small-change-from-OGC-Testbed-15-td5415921.html
I did not get to implement it, and now got back as a way to get good support for background in MBStyle. Compared to the thread, Style will contain a single new Background element, which happens to be ... a Fill! It's actually the most natural approach in my opinion, the fill covers all we need, including opacity control, expressions and env variables, backgrounds made of repeated images and so on. Here is a proof of concept PR that I hope to complete in the next few days: https://github.com/geotools/geotools/pull/2775 I believe it slots in quite nicely and simplifies things in MBStyles too. The plan is to complete it, by adding support for the gt-xsd SLD parsers/encoders, and a bit of docs. As a replacement for "giant polygon" I won't be implementing support for interaction with the WMS bgcolor spec, when the background is set, it's solid, as if the source was opaque. Support for eventual interaction and override can be implemented later. Same goes for background support for other styling languages, that will come as the respective module maintainers find time to get it done. Feedback appreciated. Cheers Andrea == 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.*
_______________________________________________ GeoTools-Devel mailing list GeoTools-Devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel