MapGuide API Reference
 All Classes Functions Variables Enumerations Enumerator Friends
virtual MgByteReader* MgMappingService::CreateRuntimeMap ( MgResourceIdentifier mapDefinition,
CREFSTRING  sessionId,
INT32  requestedFeatures,
INT32  iconsPerScaleRange 
) [pure virtual]

Creates a new runtime map from the specified Map Definition resource id and returns an XML-based description of the runtime map.

.NET Syntax
virtual MgByteReader CreateRuntimeMap(MgResourceIdentifier mapDefinition, string sessionId, int requestedFeatures, int iconsPerScaleRange);
Java Syntax
virtual MgByteReader CreateRuntimeMap(MgResourceIdentifier mapDefinition, String sessionId, int requestedFeatures, int iconsPerScaleRange);
PHP Syntax
virtual MgByteReader CreateRuntimeMap(MgResourceIdentifier mapDefinition, string sessionId, int requestedFeatures, int iconsPerScaleRange);
Parameters:
mapDefinition(MgResourceIdentifier) MgResourceIdentifier object identifying the map definition resource.
sessionId(String/string) The session ID
requestedFeatures(int) A bitmask representing the desired information to return in the XML response: 1=Layer/Group structure, 2=Layer Icons, 4=Layer Feature Source Information
iconsPerScaleRange(int) The number of legend icons per scale range to render inline in the XML response as base64 strings. If a scale range contains a number of rules that exceeds this value, only the first and last rules of a type style in the scale range will have inline icons
Remarks:
The bitmask values of 2 (Layer Icons) and 4 (Layer Feature Source Information) have no effect if 1 (Layer/Group structure) is not specified
Returns:
Returns an XML-based description of the runtime map