[mapguide-trac] #1851: Allow runtime layer/group access by name through specialized collections

MapGuide Open Source trac_mapguide at osgeo.org
Wed Nov 16 04:38:14 EST 2011


#1851: Allow runtime layer/group access by name through specialized collections
---------------------------+------------------------------------------------
   Reporter:  jng          |       Owner:  jng        
       Type:  enhancement  |      Status:  new        
   Priority:  low          |   Milestone:  Maestro-4.0
  Component:  Maestro      |     Version:             
   Severity:  trivial      |    Keywords:             
External_id:               |  
---------------------------+------------------------------------------------
 In Maestro 2.1, such code was possible

 {{{
 map.Layers["Parcels"]
 }}}

 or

 {{{
 map.Groups["Base Layer Group"]
 }}}

 This was due to the Layers and Groups properties being specialized
 collections.

 In the move to 3.0, this pattern was no longer possible. Accessing layers
 by name now requires a full loop through the layers collection.

 This ticket will reinstate the specialized layer/group collections making
 the above code pattern once again possible.

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


More information about the mapguide-trac mailing list