| 123 | To provide these methods with access to a !MgFeatureService instance, the following methods will be added in !MgMap. |
| 124 | |
| 125 | {{{ |
| 126 | /// <summary> |
| 127 | /// Constructor for the MgMap object that takes an MgSiteConnection instance. |
| 128 | /// </summary> |
| 129 | /// <param name="siteConnection"> |
| 130 | /// An MgSiteConnection instance the MgMap object can use to |
| 131 | /// allocate service instances. |
| 132 | /// </param> |
| 133 | MgMap(MgSiteConnection* siteConnection); |
| 134 | |
| 135 | /// <summary> |
| 136 | /// Initializes a new MgMap object given a map definition |
| 137 | /// and a name for the map. This method is used for |
| 138 | /// MapGuide Viewers or for offline map production. |
| 139 | /// </summary> |
| 140 | /// <param name="mapDefinition"> |
| 141 | /// An MgResourceIdentifier that specifies the map definition. |
| 142 | /// </param> |
| 143 | /// <param name="mapName"> |
| 144 | /// A string that specifies a name for the map. |
| 145 | /// allocate service instances. |
| 146 | /// </param> |
| 147 | virtual void Create(MgResourceIdentifier* mapDefinition, CREFSTRING mapName); |
| 148 | |
| 149 | /// <summary> |
| 150 | /// Loads the map object from a session repository. |
| 151 | /// </summary> |
| 152 | /// <param name="mapName"> |
| 153 | /// A string that specifies the name of the map to load. |
| 154 | /// allocate service instances. |
| 155 | /// </param> |
| 156 | virtual void Open(CREFSTRING mapName); |
| 157 | |
| 158 | }}} |
| 159 | |