Changes between Initial Version and Version 4 of Ticket #1175
- Timestamp:
- Jan 4, 2010, 8:28:19 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #1175
- Property Status new → closed
- Property Resolution → fixed
- Property External ID → 1289006
- Property Milestone → 2.2
-
Ticket #1175 – Description
initial v4 1 a.Assume we have a MapDefinition called “Library://Test/Default.MapDefinition”;[[BR]] 2 b.We create the map using the following code:[[BR]] 1 * Assume we have a !MapDefinition called “Library://Test/Default.MapDefinition” 2 * We create the map using the following code: 3 3 4 4 {{{ … … 8 8 }}} 9 9 10 c.In other code, we want to use this map, so we use this code:[[BR]] 10 * In other code, we want to use this map, so we use this code: 11 11 12 12 {{{ … … 15 15 }}} 16 16 17 d.Now the Name property for map in step c) is supposed to be “Default1234”. However, you’ll find it’s still “Default”, the name of map definition, not the name of map.[[BR]] 17 * Now the Name property for map in step c) is supposed to be “Default1234”. However, you’ll find it’s still “Default”, the name of map definition, not the name of map. 18 18 19 If you open the code of “\\trunk\ MgDev\Common\MapGuideCommon\MapLayer\Map.cpp”, you’ll find the line 504 and 505 is like this:[[BR]]19 If you open the code of “\\trunk\!MgDev\Common\!MapGuideCommon\!MapLayer\Map.cpp”, you’ll find the line 504 and 505 is like this: 20 20 21 21 {{{ … … 24 24 }}} 25 25 26 However, MgResource::Open will use the name of map definition, not the name of map to replace the value of m_name.[[BR]]27 So we should put “m_name = mapName;” behind “MgResource::Open ”.26 However, MgResource::Open() will use the name of map definition, not the name of map to replace the value of m_name. 27 So we should put “m_name = mapName;” behind “MgResource::Open()”.