We're updating the issue view to help you get more done. 

When saving an MBStyle, equivalent SLD does not update.

Description

When using the style editor to edit and preview an MBStyle, changes are sometimes not reflected in the underlying SLD file.
This seems to only occur when "Preview as Style Group" is enabled, and when the (initial) preview layer is different from the layer referenced in the style group.

Additionally, it only seems to happen when certain properties are modified; sometimes the SLD is updated just fine. I have been able to reproduce it when changing "icon-size".

Trying to use a function for icon-size has no effect.

Looking at the generated SLD, it appears this is because the icon-size is passed in as embedded CQL:

1 2 3 4 <sld:ExternalGraphic> <sld:OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://localhost:8080/geoserver/styles/sprites#icon=${strURLEncode('grey_circle')}&size=${strURLEncode(0.5)}"/> <sld:Format>mbsprite</sld:Format> </sld:ExternalGraphic>

We should be able to just pass in the icon, and use the size parameter of the point symbolizer here.

Environment

None

Status

Assignee

John Schulz

Reporter

Torben Barsballe

Triage

None

Fix versions

Affects versions

None

Priority

Medium