Affects Version/s: 2.12-beta
Amazon Linux AMI 2017.03
GeoServer Version 2.12-SNAPSHOT
Git Revision 5bb2f17d83839deb93bdc89e7742cf4bdf22dbfd
Build Date 04-Sep-2017 08:01
GeoTools Version 18-SNAPSHOT (rev d986f3543609a9235a65025070815c3e0f2d6e69)
GeoWebCache Version 1.12-SNAPSHOT
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.