Web API Reference | MapGuide Open Source

- Overview
- Modules
- Classes

GetCenter
GetExpandToFit
GetExtent
GetLayout
GetMap
GetMapPlotInstruction
GetPlotSpecification
GetScale
MgMapPlot
MgMapPlot
MgMapPlot
SetCenterAndScale
SetExtent
SetLayout
SetMap
SetMapPlotInstruction
SetPlotSpecification
void MgMapPlot::SetExtent | ( | MgEnvelope * | extent,
|  | bool | expandToFit |
| ) |  |  |
Set the extents of the map. .NET Syntax
`void SetExtent(MgEnvelope extent, bool expandToFit);`
Java Syntax
`void SetExtent(MgEnvelope extent, boolean expandToFit);`
PHP Syntax
`void SetExtent(MgEnvelope extent, bool expandToFit);`
  Parameters:
  | extent | (MgEnvelope) The extents of the map.
  | expandToFit | (boolean/bool) Flag indicating whether the extents should be expanded to fill the space within the page margins.
Returns: Nothing

Comments or suggestions? Send us feedback.