Support VendorOption Tags
See original GitHub issuePARSER
SLD
FEATUREREQUEST
Description:
I’m creating text symbolizers which look like this:
{
color: "#000",
font: ["Arial"],
fontStyle: "normal",
fontWeight: "bold",
haloColor: "#fff",
haloWidth: 1,
kind: "Text",
label: "{{name}}",
size: 12
}
My backend is a geoserver instance and I need to send along some VendorOption
tags which will control label placement. I know that these tags are not technically part of the SLD spec.
<VendorOption name="spaceAround">-1</VendorOption>
Here are the tags from the geoserver docs which I’m referring to: https://docs.geoserver.org/stable/en/user/styling/sld/reference/labeling.html#overlapping-and-separating-labels-spacearound
Would it be possible to extend text symbolizers so you could pass custom tags through? I would be willing to contribute a PR for this if this is possible and would be merged. I’m open to whatever means the owners think would be best to support this, if at all.
Thanks!
Issue Analytics
- State:
- Created 4 years ago
- Comments:35 (8 by maintainers)
Top Results From Across the Web
Support VendorOption Tags · Issue #1118 - GitHub
My backend is a geoserver instance and I need to send along some VendorOption tags which will control label placement.
Read more >Labeling — GeoServer 2.22.x User Manual
This section discusses the details of controlling label placement via the standard SLD options. It also describes a number of GeoServer enhanced options...
Read more >GeoServer VendorOption for SLD to place labels overlapping ...
GeoServer wants to make your labels look nice. Weird enough: I don't. Using the VendorOptions in the SLD I figured out some of...
Read more >Labeling — GeoServer 2.9.0 User Manual
Controlling where the WMS server places labels with SLD is bit complex. ... Geoserver fully supports the SLD specification plus adds a few...
Read more >Walkthrough: Serving and styling a WMS with GeoServer
Also notice the tags marked VendorOption, which are not part of all SLDs but are supported by GeoServer as a special means of...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I thought I’d update this thread because we created the parser just like we talked about here. We’re currently in the process of getting approval from some internal folks before it can be made public. When it gets approved I’ll post back here.