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
INT32
MgMap::GetDisplayWidth
(
)
Returns the current width of the map display in pixels.
Remarks:
The width must be set by the client using the SETDISPLAYWIDTH command as part of a GetMap or GetMapUpdate HTTP request.
.Net Syntax
int
GetDisplayWidth()
;
Java Syntax
int
GetDisplayWidth()
;
PHP Syntax
int
GetDisplayWidth()
;
Returns:
Returns the width of the map display in pixels.
Example (PHP)
See
MgMap Class
.