MapGuide API Reference
 All Classes Functions Variables Enumerations Enumerator Friends
virtual MgByteReader* MgMappingService::GeneratePlot ( MgMap map,
MgEnvelope extents,
bool  expandToFit,
MgPlotSpecification plotSpec,
MgLayout layout,
MgDwfVersion dwfVersion 
) [pure virtual]

Plot the map to an EPlot DWF using the extent specified in the mapping coordinate space. The center and scale will be computed based on the extent specified. If expandToFit is true, then the extent specified will be expanded in the X or Y direction to fill the space within the page margins. If the layout paramter is null, no adornments will be added to the page.

.NET Syntax
virtual MgByteReader GeneratePlot(MgMap map, MgEnvelope extents, bool expandToFit, MgPlotSpecification plotSpec, MgLayout layout, MgDwfVersion dwfVersion);
Java Syntax
virtual MgByteReader GeneratePlot(MgMap map, MgEnvelope extents, boolean expandToFit, MgPlotSpecification plotSpec, MgLayout layout, MgDwfVersion dwfVersion);
PHP Syntax
virtual MgByteReader GeneratePlot(MgMap map, MgEnvelope extents, bool expandToFit, MgPlotSpecification plotSpec, MgLayout layout, MgDwfVersion dwfVersion);
Parameters:
map(MgMap) Map object describing current state of map.
extents(MgEnvelope) The extents of the map to be plotted..
expandToFit(boolean/bool) Flag indicating whether the extents should be expanded to fill the space withing the page margins.
plotSpec(MgPlotSpecification) Plotting specifications for the generated plot.
layout(MgLayout) Layout specifications to use for the generated plot.
dwfVersion(MgDwfVersion) DWF version required by the client. This determines the schema and file versions used to generate the DWFs sent back to the client.
Returns:
Returns an MgByteReader object containing a DWF in ePlot format.
Exceptions:
MgNullArgumentException