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

Custom legend images in workspaces styles directories are ignored

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 2.12-beta
    • Fix Version/s: 2.11.3, 2.12.0
    • Component/s: styling, WMS
    • Labels:
    • Environment:

      Description

      I'm trying to set a custom legend for a vector layer style.
      The style is in a workspace.
      Documentation says that "OnlineResource" is "Path to the custom legend graphic to use. Can be a URL or a local path (relative to the style file path)."

      I'm using a simple file name as OnlineResource : "preview.png"

      If I put the file in /datadir/workspaces/myworkspacename/styles the image is auto-detected and can be previewed.
      A call to GetLegendGraphic gives the auto-generated style instead.

      If I put the file in /datadir/styles the image is still auto-detected, can be previewed and a call to GetLegendGraphic returns it correctly.

        Attachments

          Activity

            People

            • Assignee:
              aaime Andrea Aime
              Reporter:
              Gnafu Gnafu
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Stride room