[mapguide-internals] Correct legend display behaviour of swatches

Walt Welton-Lair walt.welton-lair at autodesk.com
Fri Nov 15 07:00:44 PST 2013

That sounds right to me.  We need the legend rendering to be consistent with the layer rendering.


-----Original Message-----
From: mapguide-internals-bounces at lists.osgeo.org [mailto:mapguide-internals-bounces at lists.osgeo.org] On Behalf Of Jackie Ng
Sent: Thursday, November 14, 2013 10:38 PM
To: mapguide-internals at lists.osgeo.org
Subject: [mapguide-internals] Correct legend display behaviour of swatches

Hi All,

In the process of fixing up ticket 2379, I noticed some strange behaviour in how the legend in both the AJAX and Fusion viewers handle layers with both composite and non-composite type styles.

It seems for such a layer, it will show the color swatches of all the types\ styles even though if a composite type style exists in a layer definition, it should take precedence over the other feature type styles in that layer definition (Is this correct? This is how the stylizer determines whether to use basic or advanced stylization right?)

So going by that reasoning, if such a layer (having both composite / non-composite styles) is shown on the legend in the AJAX/Fusion viewer, then we should only be showing the swatches from the composite style and disregard the other styles. Does this sound right?

- Jackie

View this message in context: http://osgeo-org.1560.x6.nabble.com/Correct-legend-display-behaviour-of-swatches-tp5089261.html
Sent from the MapGuide Internals mailing list archive at Nabble.com.
mapguide-internals mailing list
mapguide-internals at lists.osgeo.org

More information about the mapguide-internals mailing list