[mapguide-trac] #1607: Server renders composite type style correctly.

MapGuide Open Source trac_mapguide at osgeo.org
Mon Feb 21 01:52:36 EST 2011


#1607: Server renders composite type style correctly.
---------------------------------+------------------------------------------
   Reporter:  Aleck              |       Owner:  suna 
       Type:  defect             |      Status:  new  
   Priority:  medium             |   Milestone:  2.3  
  Component:  Rendering Service  |     Version:  2.2.0
   Severity:  trivial            |    Keywords:       
External_id:                     |  
---------------------------------+------------------------------------------
 This is an edge case that if a composite style contains only labels, it is
 not rendered correctly. All the labels are draws in the bottom-left
 corner.

 This happens because when laying out the labels using eight-surrounding
 algorithm, it calls !GetLastSymbolExtent to get the corresponding symbol
 extent as the base coordinate. However, in the case that this composite
 type style contains only labels, this !LastSymbolExtent was never set.
 Thus, it'll use (0,0) as base coordinate of the algorithm while it should
 use the centroid of the geometry.

 So I made this change that it'll check the returned value of
 !GetLastSymbolExtent. if this value is zero, we'll use the centroid of the
 geometry instead.

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/1607>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list