[mapguide-trac] #173: .Net API for MapGuide 1.2 Beta2 cannot access layers

MapGuide Open Source trac_mapguide at osgeo.org
Fri May 25 08:49:59 EDT 2007


#173: .Net API for MapGuide 1.2 Beta2 cannot access layers
-----------------------------------------+----------------------------------
 Reporter:  ksgeograf                    |         Owner:       
     Type:  defect                       |        Status:  new  
 Priority:  medium                       |     Milestone:  1.2  
Component:  General                      |       Version:  1.2.0
 Severity:  minor                        |    Resolution:       
 Keywords:  API layers GetLayers Unpack  |   External_id:       
-----------------------------------------+----------------------------------
Changes (by ksgeograf):

  * severity:  major => minor

Comment:

 changing a few lines fixes the problem:

 from

 {{{
 MgResourceIdentifier mapID = new MgResourceIdentifier("Session:" +
 sessionID + "//" + mapName + "." + MgResourceType.Map);
 MgMap map = new MgMap();
 map.Open(rs, mapID);

 }}}
 to

 {{{
 MgMap map = new MgMap(con);
 map.Open(mapName);
 }}}

 Perhaps the "old" way of opening a runtime map should just be removed?

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/173#comment:1>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list