[Geoserver-devel] [jira] (GEOS-5905) In order to create the states map the stroke and font fill params need to be specified

Andrea Aime created BugGEOS-5905
In order to create the states map the stroke and font fill params need to be specified

Issue Type:

BugBug

Assignee:

David Winslow

Components:

CSS

Created:

19/Jul/13 11:39 AM

Description:

The guide says that the following CSS is sufficient to create the outlines and labels in topp.stats:

* {
  stroke-width: 0.2;
  label: [STATE_ABBR];
  label-anchor: 0.5 0.5;
  font-family: "Times New Roman";
  font-style: normal;
  font-size: 14;
}

however we actually need to specify the stroke color and the font fill:

* {
  stroke-width: 0.2;
  stroke: #000000;
  label: [STATE_ABBR];
  label-anchor: 0.5 0.5;
  font-family: "Times New Roman";
  font-style: normal;
  font-size: 14;
  font-fill: #000000;

This seems inconsistent with the normal SLD behavior, where the stroke is assumed to be black (not transparent) the moment we have anything about a line symbolizer, and the font fill black (not gray) the moment we have anything about a text symbolizer.
I understand this is CSS not SLD, but when specifying a non null stroke width I’d expect to see something, and when specifying a label, same, it would be nice to see it black (why gray?)

Project:

GeoServer

Priority:

MajorMajor

Reporter:

Andrea Aime

This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: [http://www.atlassian.com/software/jira](http://www.atlassian.com/software/jira)