Web API Reference
MapGuide Open Source
Main Page
Modules
Namespaces
Classes
Files
MgMap
Create
Create
GetDataExtent
GetDisplayDpi
GetDisplayHeight
GetDisplayWidth
GetFiniteDisplayScaleAt
GetFiniteDisplayScaleCount
GetLayerGroups
GetLayers
GetMapDefinition
GetMapExtent
GetMapSRS
GetName
GetObjectId
GetSessionId
GetViewCenter
GetViewScale
MgMap
Open
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
.