Web API Reference MapGuide Open Source
virtual void MgMap::Open ( CREFSTRING  mapName  )  [virtual]

Loads the map object from a session repository.

Remarks:
For more information, see Maps and Layers .
.NET Syntax
virtual void Open(string mapName);
Java Syntax
virtual void Open(String mapName);
PHP Syntax
virtual void Open(string mapName);

Parameters:
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 site connection has already been intialized
 $map = new MgMap($site);
 $map->Open('Calgary');


Comments or suggestions? Send us feedback.