Skip to content

Commit

Permalink
[GEOS-7698] Raster legend border colour now set by configuration. Do …
Browse files Browse the repository at this point in the history
…not treat legend option keys as case sensitive
  • Loading branch information
aaime committed Sep 30, 2016
1 parent 5d53023 commit 20a36a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Expand Up @@ -24,6 +24,7 @@
import java.util.Queue; import java.util.Queue;
import java.util.logging.Logger; import java.util.logging.Logger;


import org.apache.commons.collections.map.CaseInsensitiveMap;
import org.geoserver.wms.legendgraphic.Cell.ClassesEntryLegendBuilder; import org.geoserver.wms.legendgraphic.Cell.ClassesEntryLegendBuilder;
import org.geoserver.wms.legendgraphic.Cell.ColorMapEntryLegendBuilder; import org.geoserver.wms.legendgraphic.Cell.ColorMapEntryLegendBuilder;
import org.geoserver.wms.legendgraphic.Cell.RampColorMapEntryLegendBuilder; import org.geoserver.wms.legendgraphic.Cell.RampColorMapEntryLegendBuilder;
Expand Down Expand Up @@ -116,7 +117,7 @@ public static class Builder {


private ColorMapEntry previousCMapEntry; private ColorMapEntry previousCMapEntry;


private final Map<String, Object> additionalOptions = new HashMap<String, Object>(); private final CaseInsensitiveMap additionalOptions = new CaseInsensitiveMap();


private Color backgroundColor; private Color backgroundColor;


Expand Down
Expand Up @@ -159,7 +159,7 @@ public void testLegendBorderColour() {


colourToTest = Color.red; colourToTest = Color.red;


legendOptions.put("borderColor", SLD.toHTMLColor(colourToTest)); legendOptions.put("BORDERCOLOR", SLD.toHTMLColor(colourToTest));


request.setLegendOptions(legendOptions); request.setLegendOptions(legendOptions);
helper = new RasterLayerLegendHelper(request, style, null); helper = new RasterLayerLegendHelper(request, style, null);
Expand Down

0 comments on commit 20a36a9

Please sign in to comment.