I realized that I can solve the issue of two centred labels obscuring each other by using the VendorOptions maxDisplacement and spaceAround. This may also help with client-side icons being obscured. Although I suspect that one of the labels will still be centred. However, the other label should be visible, which should help.
On Tue, Dec 11, 2018 at 10:40 AM Martin Davis <[email protected]> wrote: > Thanks for the assistance. > > I will look into logging an issue for this. > > For the record, the use cases for this capability are: > - In the case where there are two polygonal coverage layers containing > large jurisdiction boundary polygons, when zoomed far in (so that the map > extent is fully inside the polygons), the polygon labels are both at the > centre of the map image and one is obscured. By offsetting the labels up > and down the goal is to show both > - On a web map where the client displays point features with clients-side > icons, when the map is zoomed to a point feature, the icon is displayed in > the centre of the map extent, and obscures the jurisdiction polygon > label(s) underneath it. Goal is to make the label visible by offsetting it. > > @Ian Turton <[email protected]> Not sure your idea will work because > the label needs to be place dynamically anchored at the centre of the > rendered image (not fixed at the polygon centroid)? > > > On Tue, Dec 11, 2018 at 12:42 AM Ian Turton <[email protected]> wrote: > >> Could you work round it by adding a geom tag with a centroid function to >> get a point? >> >> Ian >> >> On Tue, 11 Dec 2018 at 07:00, Andrea Aime <[email protected]> >> wrote: >> >>> On Mon, Dec 10, 2018 at 9:37 PM Martin Davis <[email protected]> wrote: >>> >>>> Are there any known issues with this? Or is there something wrong with >>>> the style? >>>> >>> >>> No "known issue", the functionality is simply missing. >>> Polygon placement is "put the label something in there", personally >>> never had the need to control >>> displacement on it, can't see an existing feature request for it in the >>> tracker either, but settings >>> are there for polygons too, so they should be honored. >>> >>> Usual two steps: >>> >>> - Feel free to open a ticket for it >>> - PR welcomed (in case you're interested, have a look at >>> LabelCacheImpl in gt-render) >>> >>> 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.* >>> _______________________________________________ >>> 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 >>> >> >> >> -- >> Ian Turton >> >
_______________________________________________ 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
