Hi all
I am trying to use 2 numeric attributes called label_lat and label_lng to create a point geometry for the labeling of a polygon.
Can anyone point me to the correct format, if this is indeed possible?
I cannot find the information on https://docs.geoserver.org/latest/en/user/styling/css/index.html
I have tried:
label-geometry: [label_lng], [label_lat];
label-geometry: [(label_lng, label_lat)];
etc
and the reverse coordinate orders
label-geometry: [centroid(geom)]; does work as expected, but I need more control.
I also cannot create a new column in the GeoServer SQL view that is visible in the output e.g. ST_Point (label_lng, label_lat, 4326) as label-geom
i.e. if I create the new column, it must not be visible in the output.
Thanks
Peter