by David Crowther
Question:
Is it possible to wrap labels when using GeoServer to style my WMS layers?
Answer:
Yes, this can be done by updating your Style file (SLD).
For example, here is a WMS layer using labels without wrapping.
If you update your Text Symbolizer adding the line highlighted below…
<se:TextSymbolizer>
<se:VendorOption name="autoWrap">10</se:VendorOption>
</se:TextSymbolizer>
…. this will then auto wrap your label. The value of 10, will be the number of characters allowed before wrapping occurs.
Comments
0 comments
Please sign in to leave a comment.