Web API Reference MapGuide Open Source

MgPoint* MgMap::GetViewCenter  ) 
 

Gets the current center point of the map, in the spatial reference system of the map.

.Net Syntax
MgPoint GetViewCenter();
Java Syntax
MgPoint GetViewCenter();
PHP Syntax
MgPoint GetViewCenter();

Returns:
Returns an MgPoint that specifies the center of the map.
Example (PHP)
See MgMap Class .