Hi Wayne, Your reasoning makes sense. I believe these exact semantics were implemented because that is the way MapServer does its legend graphic generation.
I would not be against including labels by default. It might be good to see what some of the other folks on this list think. -Justin Wayne Fang wrote: > I was looking into the Legend feature and came across some behaviour > that strikes me as odd. According to the GetLegendGraphic Improvements > document > (http://geoserver.org/display/GEOSDOC/GetLegendGraphic+Improvements) in > section 5: > > * If there's just one Rule for a legend, no label is supplied > * If there is more than one Rule for a legend, labels are supplied > > I'm not clear what the use case is for a legend with a single item with > no label attached to it; it seems to defeat the purpose of a legend. > There's a forceLabels option to force labels on or off, but I would > think the following behaviour is more intuitive: > > * Draw labels by default. > * If forceLabels is set to 'on', then draw labels. > * If forceLabels is set to 'off', then don't draw labels. > > Can somebody explain the reasoning behind this to me? If not, I'd like > to change it. > > Thanks, > Wayne > > -- > Refractions Research > Suite 300 - 1207 Douglas St > Victoria, BC, V8W 2E7, Canada > ph: (250) 383-3022 > fax:(250) 383-2140 > > !DSPAM:4007,48890ed616885210051143! > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > !DSPAM:4007,48890ed616885210051143! > > > ------------------------------------------------------------------------ > > _______________________________________________ > Geoserver-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geoserver-devel > > > !DSPAM:4007,48890ed616885210051143! -- Justin Deoliveira The Open Planning Project [EMAIL PROTECTED] ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Geoserver-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-devel
