Using GeoServer CSS extension
mark-rotation: [env('rot',2)];
ends in
<sld:Rotation>
<ogc:Function name="env">
<ogc:Literal>rot</ogc:Literal>
<ogc:Literal>2</ogc:Literal>
</ogc:Function>
</sld:Rotation>
How should my style look like to add a property name to rotation:
<sld:Rotation>
<ogc:Add>
<ogc:PropertyName>mystyle</ogc:PropertyName>
<ogc:Function name="env">
<ogc:Literal>rot</ogc:Literal>
<ogc:Literal>2</ogc:Literal>
</ogc:Function>
</ogc:Add>
</sld:Rotation>
I have tried
mark-rotation: [env('rot',2),mystyle];
mark-rotation: [mystyle],[env('rot',2)];