[mapguide-trac] #1876: Removing LayerGroups from MapDefinition doesn't work as expected

MapGuide Open Source trac_mapguide at osgeo.org
Wed Nov 30 04:03:05 EST 2011


#1876: Removing LayerGroups from MapDefinition doesn't work as expected
------------------------+---------------------------------------------------
   Reporter:  gBecker   |       Owner:  jng        
       Type:  defect    |      Status:  new        
   Priority:  high      |   Milestone:  Maestro-4.0
  Component:  Maestro   |     Version:  2.2.0      
   Severity:  critical  |    Keywords:             
External_id:            |  
------------------------+---------------------------------------------------
 When removing top level groups from MapDefinition in MapDefinition editor
 only the direct child layer is deleted. All child layergroups and their
 layers are already there. They are not visible at the editor itself but
 you can see them when opening the xml editor.

 Have a look at the attached image:

 When removing "LayerGroup1" and "LayerGroup2" you would expected to have
 removed all layers and layergroups from the MapDefinition. But the xml
 says something different:


 {{{
 <?xml version="1.0" encoding="utf-8"?>
 <MapDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
 xsi:noNamespaceSchemaLocation="MapDefinition-1.0.0.xsd">
   <Name>New Map</Name>
 <CoordinateSystem>PROJCS["DHDN.Gauss3d-3",GEOGCS["DHDN.LL",DATUM["DHDN",SPHEROID["BESSEL",6377397.155,299.15281535],TOWGS84[582.0000,105.0000,414.0000,-1.040000,-0.350000,3.080000,8.30000000]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Transverse_Mercator"],PARAMETER["false_easting",3500000.000],PARAMETER["false_northing",0.000],PARAMETER["scale_factor",1.000000000000],PARAMETER["central_meridian",9.00000000000000],PARAMETER["latitude_of_origin",0.00000000000000],UNIT["Meter",1.00000000000000]]</CoordinateSystem>
   <Extents>
     <MinX>3469000</MinX>
     <MaxX>3484807.5951835942</MaxX>
     <MinY>5547000</MinY>
     <MaxY>5565687.863</MaxY>
   </Extents>
   <BackgroundColor>ffffffff</BackgroundColor>
 <Metadata>&lt;MapDescription&gt;Basiskarten&lt;/MapDescription&gt;</Metadata>
   <MapLayer>
     <Name>Layer3</Name>
 <ResourceId>Library://FFM/CSOGIS/Layer/Erfassen/Hoehenauskunft.LayerDefinition</ResourceId>
     <Selectable>true</Selectable>
     <ShowInLegend>true</ShowInLegend>
     <LegendLabel>Layer3</LegendLabel>
     <ExpandInLegend>true</ExpandInLegend>
     <Visible>true</Visible>
     <Group>LayerGroup3</Group>
   </MapLayer>
   <MapLayer>
     <Name>Layer4</Name>
 <ResourceId>Library://FFM/CSOGIS/Layer/Erfassen/Wolke.LayerDefinition</ResourceId>
     <Selectable>true</Selectable>
     <ShowInLegend>true</ShowInLegend>
     <LegendLabel>Layer4</LegendLabel>
     <ExpandInLegend>true</ExpandInLegend>
     <Visible>true</Visible>
     <Group>LayerGroup4</Group>
   </MapLayer>
   <MapLayerGroup>
     <Name>LayerGroup3</Name>
     <Visible>true</Visible>
     <ShowInLegend>true</ShowInLegend>
     <ExpandInLegend>true</ExpandInLegend>
     <LegendLabel>LayerGroup3</LegendLabel>
     <Group>LayerGroup2</Group>
   </MapLayerGroup>
   <MapLayerGroup>
     <Name>LayerGroup4</Name>
     <Visible>true</Visible>
     <ShowInLegend>true</ShowInLegend>
     <ExpandInLegend>true</ExpandInLegend>
     <LegendLabel>LayerGroup4</LegendLabel>
     <Group>LayerGroup3</Group>
   </MapLayerGroup>
 </MapDefinition>
 }}}

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


More information about the mapguide-trac mailing list