Web API Reference | MapGuide Open Source

- Overview
- Modules
- Classes

Create
Create
Create
MgMap
MgMap
Open
Open
Save
Save
Save
MgMap::MgMap | ( | MgSiteConnection * | siteConnection | ) |
Constructs an MgMap object that takes an MgSiteConnection instance. Remarks: The instance of MgMap cannot be used until either the Create() or Open() method is called. Session ID is required for this constructor. An MgMap object cannot exist in the Library repository. .NET Syntax
`MgMap(MgSiteConnection siteConnection);`
Java Syntax
`MgMap(MgSiteConnection siteConnection);`
PHP Syntax
`MgMap(MgSiteConnection siteConnection);`
  Parameters:
  | siteConnection | An MgSiteConnection instance the MgMap object can use to allocate service instances.
Example (PHP) See Create() .
     $siteConn = new MgSiteConnection();
     $userInfo = new MgUserInformation();
     $userInfo->SetMgSessionId('abc123-xxx-yyy');
     $siteConn->Open($userInfo);
     $map = new MgMap($siteConn);

Comments or suggestions? Send us feedback.