[mapguide-trac] #1886: Maestro API - Can't Open (to Edit) Runtime Map with Base Layers

MapGuide Open Source trac_mapguide at osgeo.org
Mon Dec 12 11:11:17 EST 2011


#1886: Maestro API - Can't Open (to Edit) Runtime Map with Base Layers
----------------------------+-----------------------------------------------
   Reporter:  crispinatime  |       Owner:  jng        
       Type:  defect        |      Status:  new        
   Priority:  high          |   Milestone:  Maestro-4.0
  Component:  Maestro       |     Version:  2.1.0      
   Severity:  major         |    Keywords:             
External_id:                |  
----------------------------+-----------------------------------------------
 When re-opening a previously saved RuntimeMap containing Base Layers there
 is an iterator across RuntimeMapLayers that always tries to set a
 .Visible.  Unfortunately this property is designed to throw an exception
 for base layers and the internal calls need to be safer.

 I added an:

  if (this.Type != kbaseMap)

 around three instances of setting the visibility in "RuntimeMapLayer.cs"
 at/around lines 146, 722 and 764.

 There may be a better way of handling this.

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


More information about the mapguide-trac mailing list