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