Web API Reference | MapGuide Open Source

- Overview
- Modules
- Classes

Create
Create
Create
MgMap
MgMap
Open
Open
Save
Save
Save
virtual void MgMap::Open | ( | MgResourceService * | resourceService,
|  | CREFSTRING | mapName |
| ) |  |  | `[virtual]`
Loads the map object from a session repository. Remarks: This method has been deprecated. Use the following method: Open(string mapName) . For more information, see Maps and Layers . .NET Syntax
`virtual void Open(MgResourceService resourceService, string mapName);`
Java Syntax
`virtual void Open(MgResourceService resourceService, String mapName);`
PHP Syntax
`virtual void Open(MgResourceService resourceService, string mapName);`
  Parameters:
  | resourceService | An MgResourceService that can be used to retrieve the map.
  | mapName | A string that specifies the name of the map. This is the name that was specified when Create was called to create the map object.
Returns: Returns nothing. Example (PHP)
     // Assuming the resource service has already been initialized
     $map = new MgMap();
     $map->Open($resourceService, 'Calgary');
Reimplemented from MgMapBase.

Comments or suggestions? Send us feedback.