[mapguide-users] RE: Rendering Pass
Dave Wilson
dave.wilson at autodesk.com
Fri Mar 26 15:20:04 EDT 2010
Labels have a higher draw priority than symbols if I understand things correctly.
I think the simple solution is to render the label for the grid layer as a symbol as well and then your draw order will be preserved if the road layer is on top.
Dave
From: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Martin Morrison
Sent: Friday, March 26, 2010 1:06 PM
To: MapGuide Users Mail List
Subject: [mapguide-users] Rendering Pass
I have an issue with labels drawing on top of symbols. In the attached JPG ( also at http://craig.gis.edsi.com/rendering_error.jpg), the road symbol (617) should be drawn on top of the map label (015). I have my road layer set above the map border layer in Studio, verified it in Maestro via XML.
******XML snippet********
<MapLayer>
<Name>Primary Roads</Name>
<ResourceId>Library://Craig_CO/Layers/Primary_Roads.LayerDefinition</ResourceId>
<Selectable>true</Selectable>
<ShowInLegend>true</ShowInLegend>
<LegendLabel>Primary Roads</LegendLabel>
<ExpandInLegend>true</ExpandInLegend>
<Visible>true</Visible>
<Group>Transportation</Group>
</MapLayer>
<extra layers deleted>
<MapLayer>
<Name>Map Borders</Name>
<ResourceId>Library://Craig_CO/Layers/Map_Borders.LayerDefinition</ResourceId>
<Selectable>true</Selectable>
<ShowInLegend>true</ShowInLegend>
<LegendLabel>Map Borders</LegendLabel>
<ExpandInLegend>true</ExpandInLegend>
<Visible>true</Visible>
<Group>Boundaries</Group>
</MapLayer>
***********************
I looked at RFC 29 via this link:
http://trac.osgeo.org/mapguide/wiki/MapGuideRfc29
The initial value was set to 2.
**********CODE snippet**********
</SimpleSymbolDefinition>
<RenderingPass>2</RenderingPass>
</SimpleSymbol>
</CompoundSymbolDefinition>
*******************************
Setting this to 0 of course sends it behind the line drawn (expected behavior). Setting it to a higher number (went as high as 20) seems to have no effect.
So is this a bug that rendering pass does not work correctly? Or am I missing something? If so, what is the proper usage in this situation?
Thanks
Martin Morrison
Application Engineer
Engineering Design Systems, Inc.
3780 Peters Creek Rd Ext SW
Roanoke, VA 24018
540-345-1410
gis.edsi.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20100326/78d39162/attachment.html
More information about the mapguide-users
mailing list