MapGuide API Reference
 All Classes Functions Variables Enumerations Enumerator Friends
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:
siteConnectionAn 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);