Uploaded image for project: 'GeoServer'
  1. GEOS-8403

When saving an MBStyle, equivalent SLD does not update.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.12.2, 2.13-beta
    • Component/s: None
    • Labels:
      None

      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:

      <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.

        Attachments

          Activity

            People

            • Assignee:
              johnschulz John Schulz
              Reporter:
              tbarsballe Torben Barsballe
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Stride room