wiki:MapGuideRfc134

Version 12 (modified by jng, 11 years ago) ( diff )

--

MapGuide RFC 134 - HTTP Runtime Map Creation

This page contains a change request (RFC) for the MapGuide Open Source project. More MapGuide RFCs can be found on the RFCs page.

Status

RFC Template Version(1.0)
Submission Date13 May 2013
Last Modified6 June 2013
AuthorJackie Ng
RFC Statusimplemented
Implementation Statuscompleted
Proposed Milestone2.6
Assigned PSC guide(s)(when determined)
Voting History(vote date)
+1Jackie,Zac,Trevor,Haris
+0
-0
-1
no votePaul,Tom,Bob,Bruce

Overview

This RFC proposes to add support for creating Runtime Maps via the mapagent

Motivation

It is currently not possible for a client-side application to be able to create a Runtime Map without assistance from the Web Extensions API or through knowledge of how the runtime map state is stored server-side. Current methods include:

a) Implementing a helper script via the Web Extensions API to return the key pieces of information needed to work and interact with a runtime map. The MapGuide OpenLayers sample requires the client application specify key missing information that only the Web Extensions API can provide:

  • Session ID
  • Map Name
  • Coordinate System (WKT/EPSG code)
  • Meters-Per-Unit

b) Using the Maestro API in .net to construct the Runtime Map client-side by building the expected binary blob (that will be saved server-side) containing the initial runtime map state. This is somewhat of a hack as it relies on undocumented internals of the runtime map blob being serialized that could change with any new release of MapGuide.

There is no way to build a Runtime Map client-side without the assistance of the Web Extensions API or a hacky solution like Maestro. This RFC addresses this shortcoming.

Proposed Solution

We'll introduce new APIs for MgMappingService:

class MG_MAPGUIDE_API MgMappingService : public MgService
{
PUBLISHED_API:
    ////////////////////////////////////////////////////////////////////////////////
    /// \brief
    /// Creates a new runtime map from the specified Map Definition resource id and returns an XML-based description of the runtime
    /// map
    ///
    /// <!-- Syntax in .Net, Java, and PHP -->
    /// \htmlinclude DotNetSyntaxTop.html
    /// virtual MgByteReader CreateRuntimeMap(MgResourceIdentifier mapDefinition, int requestedFeatures, int iconsPerScaleRange);
    /// \htmlinclude SyntaxBottom.html
    /// \htmlinclude JavaSyntaxTop.html
    /// virtual MgByteReader CreateRuntimeMap(MgResourceIdentifier mapDefinition, int requestedFeatures, int iconsPerScaleRange);
    /// \htmlinclude SyntaxBottom.html
    /// \htmlinclude PHPSyntaxTop.html
    /// virtual MgByteReader CreateRuntimeMap(MgResourceIdentifier mapDefinition, int requestedFeatures, int iconsPerScaleRange);
    /// \htmlinclude SyntaxBottom.html
    ///
    /// \param mapDefinition (MgResourceIdentifier)
    /// MgResourceIdentifier object identifying the map definition resource.
    /// \param 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
    /// \param 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
    ///
    /// \return
    /// Returns an XML-based description of the runtime map
    ///
    virtual MgByteReader* CreateRuntimeMap(MgResourceIdentifier* mapDefinition,
                                           CREFSTRING sessionId,
                                           INT32 requestedFeatures,
                                           INT32 iconsPerScaleRange) = 0;

    ////////////////////////////////////////////////////////////////////////////////
    /// \brief
    /// Creates a new runtime map from the specified Map Definition resource id and returns an XML-based description of the runtime
    /// map
    ///
    /// <!-- Syntax in .Net, Java, and PHP -->
    /// \htmlinclude DotNetSyntaxTop.html
    /// virtual MgByteReader CreateRuntimeMap(MgResourceIdentifier mapDefinition, int iconWidth, int iconHeight, int requestedFeatures, int iconsPerScaleRange);
    /// \htmlinclude SyntaxBottom.html
    /// \htmlinclude JavaSyntaxTop.html
    /// virtual MgByteReader CreateRuntimeMap(MgResourceIdentifier mapDefinition, int iconWidth, int iconHeight, int requestedFeatures, int iconsPerScaleRange);
    /// \htmlinclude SyntaxBottom.html
    /// \htmlinclude PHPSyntaxTop.html
    /// virtual MgByteReader CreateRuntimeMap(MgResourceIdentifier mapDefinition, int iconWidth, int iconHeight, int requestedFeatures, int iconsPerScaleRange);
    /// \htmlinclude SyntaxBottom.html
    ///
    /// \param mapDefinition (MgResourceIdentifier)
    /// MgResourceIdentifier object identifying the map definition resource.
    /// \param targetMapName (String/string)
    /// The desired name of the runtime map
    /// \param sessionId (String/string)
    /// The session ID
    /// \param iconFormat (String/string)
    /// The desired image format for icons (from MgImageFormats)
    /// \param iconWidth (int)
    /// The width of each individual inline legend icons. Has no effect if icons was not requested in the response.
    /// \param iconHeight (int)
    /// The height of each individual inline legend icons. Has no effect if icons was not requested in the response.
    /// \param 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
    /// \param 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
    ///
    /// \return
    /// Returns an XML-based description of the runtime map
    ///
    /// \exception MgInvalidArgumentException
    /// \exception MgNullArgumentException
    ///
    virtual MgByteReader* CreateRuntimeMap(MgResourceIdentifier* mapDefinition,
                                           CREFSTRING targetMapName,
                                           CREFSTRING sessionId,
                                           CREFSTRING iconFormat,
                                           INT32 iconWidth,
                                           INT32 iconHeight,
                                           INT32 requestedFeatures,
                                           INT32 iconsPerScaleRange) = 0;
};

The ability to create MgSelection objects on the server-tier is actually not a supported usage scenario. MgSelection objects are usually created on the web-tier (as part of AJAX/Fusion viewer initialization). To support server-tier creation of MgSelection objects, we need a new supporting API in MgSelection that allows direct plugging of the session id, instead of letting it try to fetch a non-existent MgUserInformation from our *server-based* MgResourceService. We need to create a MgSelection server-side that complements the created MgMap, so that selection operations from client-side applications will work:

class MG_MAPGUIDE_API MgSelection : public MgSelectionBase
{
INTERNAL_API:
    void Save(MgResourceService* resourceService, CREFSTRING sessionId, CREFSTRING mapName);
};

We'll also introduce a new operation to the mapagent: CREATERUNTIMEMAP

This new operation has the following parameters (in addition to the standard OPERATION, VERSION, LOCALE, SESSION, USERNAME, PASSWORD and FORMAT parameters)

NameDescriptionRequired
MAPDEFINITIONThe resource id of the Map Definition to create a Runtime Map fromYes
REQUESTEDFEATURESA bitmask specifying what pieces of information to includein the CREATERUNTIMEMAP responseNo
ICONSPERSCALERANGEThe number of icons to render inline (as base64 images) per scale range in each layer of the mapNo
ICONFORMATThe icon image format (default: PNG)No
ICONWIDTHThe width of each inline icon that will be rendered (default: 16)No
ICONHEIGHTThe height of each inline icon that will be rendered (default: 16)No

The REQUESTEDFEATURES parameters can be logically ORed with the following values:

  • 1 - The basic layer and group structure is returned.
  • 2 - Associated style icons are returned with each layer. This value only takes effect if (1) was logically ORed into the mask.
  • 4 - Feature Source information is included with each layer. This value only takes effect if (1) was logically ORed into the mask.

The ICONSPERSCALERANGE parameter is used to apply "theme compression". If a given layer contains a scale range whose number of rules exceeds the given number, only the first and last rule items will have icons rendered inline, with the assumption that a client-application will "compress" the remaining rules when displaying in an interactive legend control. This is what the AJAX and Fusion viewers both currently do. If this parameter is not specified, and the REQUESTEDFEATURES include a request for icons (2), then a default value of 25 will be used (same value we currently use for LoadMap.php and LoadScaleRanges.php for Fusion).

Inline icons are rendered as base64 strings. With an associated mime type included in the top-level IconMimeType element, allowing for browsers to construct the relevant data URIs client-side. Non-browser clients can use this mime type to determine how the base64 content should be read into an image.

The REQUESTDFEATURES parameter allows for scalable CREATERUNTIMEMAP responses depending on the needs of the client application.

JSON output format is supported, and provides the same benefits as other operations that support JSON output.

As part of this RFC, Fusion will be modified use CREATERUNTIMEMAP for its map initialization if it determined that the server support is there, allowing it to bypass the asynchronous call chain to LoadMap.php and LoadScaleRanges.php. Based on tests against various maps of various sizes, CREATERUNTIMEMAP beats the LoadMap.php/LoadScaleRanges.php combination in both response size and time/latency (and these performance gains increase with map size!), with only small additional client-side overhead in re-shaping the CREATERUNTIMEMAP response to suit the existing Fusion map initialization code.

Some example responses below (all using the Sheboygan Map Definition):

A CREATERUNTIMEMAP request without the REQUESTEDFEATURES looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<RuntimeMap xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="RuntimeMap-2.6.0.xsd">
  <SiteVersion>2.6.0.0</SiteVersion>
  <SessionId>82a71582-befa-11e2-8000-080027004461_en_MTI3LjAuMC4x0B060B050B04</SessionId>
  <Name>Sheboygan</Name>
  <MapDefinition>Library://Samples/Sheboygan/Maps/Sheboygan.MapDefinition</MapDefinition>
  <BackgroundColor>ffcdbd9c</BackgroundColor>
  <DisplayDpi>96</DisplayDpi>
  <CoordinateSystem>
    <Wkt>GEOGCS["WGS84 Lat/Long's, Degrees, -180 ==&gt; +180",DATUM["D_WGS_1984",SPHEROID["World_Geodetic_System_of_1984",6378137,298.257222932867]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]</Wkt>
    <MentorCode>LL84</MentorCode>
    <EpsgCode>4326</EpsgCode>
    <MetersPerUnit>111319.49079327358</MetersPerUnit>
  </CoordinateSystem>
  <Extents>
    <LowerLeftCoordinate>
      <X>-87.764986990962839</X>
      <Y>43.691398128787782</Y>
    </LowerLeftCoordinate>
    <UpperRightCoordinate>
      <X>-87.695521510899724</X>
      <Y>43.797520000480347</Y>
    </UpperRightCoordinate>
  </Extents>
</RuntimeMap>

And a minimal request for a tiled map looks like this. Note that despite the layer/group structure request bit not being set, we will still get back any base layer groups in the response. This is because the base layer group name is required (in addition to the Map Definition) in order for a client application to be able to issue GETTILEIMAGE requests for tiles.

<?xml version="1.0" encoding="UTF-8"?>
<RuntimeMap xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="RuntimeMap-2.6.0.xsd">
  <SiteVersion>2.6.0.0</SiteVersion>
  <SessionId>ccfb2298-c45b-11e2-8000-080027004461_en_MTI3LjAuMC4x0B060B050B04</SessionId>
  <Name>Sheboygan</Name>
  <MapDefinition>Library://Samples/Sheboygan/MapsTiled/Sheboygan.MapDefinition</MapDefinition>
  <BackgroundColor>FFCDBD9C</BackgroundColor>
  <DisplayDpi>96</DisplayDpi>
  <CoordinateSystem>
    <Wkt>GEOGCS["WGS84 Lat/Long's, Degrees, -180 ==&gt; +180",DATUM["D_WGS_1984",SPHEROID["World_Geodetic_System_of_1984",6378137,298.257222932867]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]</Wkt>
    <MentorCode>LL84</MentorCode>
    <EpsgCode>4326</EpsgCode>
    <MetersPerUnit>111319.49079327358</MetersPerUnit>
  </CoordinateSystem>
  <Extents>
    <LowerLeftCoordinate>
      <X>-87.764986990962839</X>
      <Y>43.691398128787782</Y>
    </LowerLeftCoordinate>
    <UpperRightCoordinate>
      <X>-87.695521510899724</X>
      <Y>43.797520000480347</Y>
    </UpperRightCoordinate>
  </Extents>
  <Group>
    <Name>Base Layer Group</Name>
    <Type>2</Type>
    <LegendLabel>Tiled Layers</LegendLabel>
    <ObjectId>ccff8f90-c45b-11e2-8000-080027004461</ObjectId>
    <DisplayInLegend>true</DisplayInLegend>
    <ExpandInLegend>true</ExpandInLegend>
    <Visible>true</Visible>
    <ActuallyVisible>true</ActuallyVisible>
  </Group>
  <FiniteDisplayScale>1000</FiniteDisplayScale>
  <FiniteDisplayScale>1930.6977300000001</FiniteDisplayScale>
  <FiniteDisplayScale>3727.5937199999998</FiniteDisplayScale>
  <FiniteDisplayScale>7196.8567300000004</FiniteDisplayScale>
  <FiniteDisplayScale>13894.95494</FiniteDisplayScale>
  <FiniteDisplayScale>26826.95795</FiniteDisplayScale>
  <FiniteDisplayScale>51794.746789999997</FiniteDisplayScale>
  <FiniteDisplayScale>100000</FiniteDisplayScale>
</RuntimeMap>

This response contains the minimal information required for a client mapping library like OpenLayers to build a basic map viewer out of. It also contains the required session id and map name needed to dispatch additional mapagent requests for other operations that operate against the runtime map like rendering (GETDYNAMICMAPOVERLAYIMAGE) and feature selection (QUERYMAPFEATURES). The MapGuide Site Version is included so the client application can make (generally safe) assumptions about what level of API/operation support is available from the mapagent.

The session id is either passed in via the SESSION request parameter, or generated via the USERNAME/PASSWORD request parameters or a successful HTTP basic authentication challenge. Therefore, CREATERUNTIMEMAP serves the same function as the CREATESESSION operation, negating the need to fire off this request first beforehand by the client application.

The various permutations of the REQUESTEDFEATURES bitmask extend upon the basic minimal XML response with additional information, all detailed below.

REQUESTEDFEATURES = 1 (with basic layer/group structure):

<?xml version="1.0" encoding="UTF-8"?>
<RuntimeMap xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="RuntimeMap-2.6.0.xsd">
  <SiteVersion>2.6.0.0</SiteVersion>
  <SessionId>7fdaa490-befa-11e2-8000-080027004461_en_MTI3LjAuMC4x0B060B050B04</SessionId>
  <Name>Sheboygan</Name>
  <MapDefinition>Library://Samples/Sheboygan/Maps/Sheboygan.MapDefinition</MapDefinition>
  <BackgroundColor>ffcdbd9c</BackgroundColor>
  <DisplayDpi>96</DisplayDpi>
  <CoordinateSystem>
    <Wkt>GEOGCS["WGS84 Lat/Long's, Degrees, -180 ==&gt; +180",DATUM["D_WGS_1984",SPHEROID["World_Geodetic_System_of_1984",6378137,298.257222932867]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]</Wkt>
    <MentorCode>LL84</MentorCode>
    <EpsgCode>4326</EpsgCode>
    <MetersPerUnit>111319.49079327358</MetersPerUnit>
  </CoordinateSystem>
  <Extents>
    <LowerLeftCoordinate>
      <X>-87.764986990962839</X>
      <Y>43.691398128787782</Y>
    </LowerLeftCoordinate>
    <UpperRightCoordinate>
      <X>-87.695521510899724</X>
      <Y>43.797520000480347</Y>
    </UpperRightCoordinate>
  </Extents>
  <Group>
    <Name>Base Map</Name>
    <Type>1</Type>
    <LegendLabel>Base Map</LegendLabel>
    <ObjectId>7fdeea64-befa-11e2-8000-080027004461</ObjectId>
    <DisplayInLegend>true</DisplayInLegend>
    <ExpandInLegend>true</ExpandInLegend>
    <Visible>true</Visible>
    <ActuallyVisible>true</ActuallyVisible>
  </Group>
  <Group>
    <Name>Municipal</Name>
    <Type>1</Type>
    <LegendLabel>Municipal</LegendLabel>
    <ObjectId>7fdeea64-befa-11e2-8001-080027004461</ObjectId>
    <DisplayInLegend>true</DisplayInLegend>
    <ExpandInLegend>true</ExpandInLegend>
    <Visible>true</Visible>
    <ActuallyVisible>true</ActuallyVisible>
  </Group>
  <Group>
    <Name>Transportation</Name>
    <Type>1</Type>
    <LegendLabel>Transportation</LegendLabel>
    <ObjectId>7fdeea64-befa-11e2-8002-080027004461</ObjectId>
    <DisplayInLegend>true</DisplayInLegend>
    <ExpandInLegend>true</ExpandInLegend>
    <Visible>true</Visible>
    <ActuallyVisible>true</ActuallyVisible>
  </Group>
  <Layer>
    <Name>Roads</Name>
    <Type>1</Type>
    <LegendLabel>Roads</LegendLabel>
    <ObjectId>7fdeea64-befa-11e2-8003-080027004461</ObjectId>
    <ParentId>7fdeea64-befa-11e2-8002-080027004461</ParentId>
    <Selectable>false</Selectable>
    <DisplayInLegend>true</DisplayInLegend>
    <ExpandInLegend>true</ExpandInLegend>
    <Visible>true</Visible>
    <ActuallyVisible>true</ActuallyVisible>
    <LayerDefinition>Library://Samples/Sheboygan/Layers/Roads.LayerDefinition</LayerDefinition>
    <ScaleRange/>
  </Layer>
  <Layer>
    <Name>Rail Lines</Name>
    <Type>1</Type>
    <LegendLabel>Rail Lines</LegendLabel>
    <ObjectId>7fdf1174-befa-11e2-8000-080027004461</ObjectId>
    <ParentId>7fdeea64-befa-11e2-8002-080027004461</ParentId>
    <Selectable>false</Selectable>
    <DisplayInLegend>true</DisplayInLegend>
    <ExpandInLegend>true</ExpandInLegend>
    <Visible>false</Visible>
    <ActuallyVisible>false</ActuallyVisible>
    <LayerDefinition>Library://Samples/Sheboygan/Layers/Tracks.LayerDefinition</LayerDefinition>
    <ScaleRange/>
  </Layer>
  <Layer>
    <Name>Districts</Name>
    <Type>1</Type>
    <LegendLabel>Districts</LegendLabel>
    <ObjectId>7fdf1174-befa-11e2-8001-080027004461</ObjectId>
    <ParentId>7fdeea64-befa-11e2-8001-080027004461</ParentId>
    <Selectable>false</Selectable>
    <DisplayInLegend>true</DisplayInLegend>
    <ExpandInLegend>true</ExpandInLegend>
    <Visible>true</Visible>
    <ActuallyVisible>false</ActuallyVisible>
    <LayerDefinition>Library://Samples/Sheboygan/Layers/Districts.LayerDefinition</LayerDefinition>
    <ScaleRange/>
  </Layer>
  <Layer>
    <Name>Buildings</Name>
    <Type>1</Type>
    <LegendLabel>Buildings</LegendLabel>
    <ObjectId>7fdf1174-befa-11e2-8002-080027004461</ObjectId>
    <ParentId>7fdeea64-befa-11e2-8001-080027004461</ParentId>
    <Selectable>false</Selectable>
    <DisplayInLegend>true</DisplayInLegend>
    <ExpandInLegend>true</ExpandInLegend>
    <Visible>true</Visible>
    <ActuallyVisible>true</ActuallyVisible>
    <LayerDefinition>Library://Samples/Sheboygan/Layers/Buildings.LayerDefinition</LayerDefinition>
    <ScaleRange/>
  </Layer>
  <Layer>
    <Name>Parcels</Name>
    <Type>1</Type>
    <LegendLabel>Parcels</LegendLabel>
    <ObjectId>7fdf1174-befa-11e2-8003-080027004461</ObjectId>
    <ParentId>7fdeea64-befa-11e2-8001-080027004461</ParentId>
    <Selectable>true</Selectable>
    <DisplayInLegend>true</DisplayInLegend>
    <ExpandInLegend>true</ExpandInLegend>
    <Visible>true</Visible>
    <ActuallyVisible>true</ActuallyVisible>
    <LayerDefinition>Library://Samples/Sheboygan/Layers/Parcels.LayerDefinition</LayerDefinition>
    <ScaleRange/>
  </Layer>
  <Layer>
    <Name>Islands</Name>
    <Type>1</Type>
    <LegendLabel>Islands</LegendLabel>
    <ObjectId>7fdf1174-befa-11e2-8004-080027004461</ObjectId>
    <ParentId>7fdeea64-befa-11e2-8000-080027004461</ParentId>
    <Selectable>false</Selectable>
    <DisplayInLegend>true</DisplayInLegend>
    <ExpandInLegend>true</ExpandInLegend>
    <Visible>true</Visible>
    <ActuallyVisible>true</ActuallyVisible>
    <LayerDefinition>Library://Samples/Sheboygan/Layers/Islands.LayerDefinition</LayerDefinition>
    <ScaleRange/>
  </Layer>
  <Layer>
    <Name>Hydrography</Name>
    <Type>1</Type>
    <LegendLabel>Hydrography</LegendLabel>
    <ObjectId>7fdf1174-befa-11e2-8005-080027004461</ObjectId>
    <ParentId>7fdeea64-befa-11e2-8000-080027004461</ParentId>
    <Selectable>false</Selectable>
    <DisplayInLegend>true</DisplayInLegend>
    <ExpandInLegend>true</ExpandInLegend>
    <Visible>true</Visible>
    <ActuallyVisible>true</ActuallyVisible>
    <LayerDefinition>Library://Samples/Sheboygan/Layers/Hydrography.LayerDefinition</LayerDefinition>
    <ScaleRange/>
  </Layer>
  <Layer>
    <Name>CityLimits</Name>
    <Type>1</Type>
    <LegendLabel>CityLimits</LegendLabel>
    <ObjectId>7fdf1174-befa-11e2-8006-080027004461</ObjectId>
    <ParentId>7fdeea64-befa-11e2-8000-080027004461</ParentId>
    <Selectable>false</Selectable>
    <DisplayInLegend>true</DisplayInLegend>
    <ExpandInLegend>true</ExpandInLegend>
    <Visible>true</Visible>
    <ActuallyVisible>true</ActuallyVisible>
    <LayerDefinition>Library://Samples/Sheboygan/Layers/CityLimits.LayerDefinition</LayerDefinition>
    <ScaleRange/>
  </Layer>
</RuntimeMap>

The layers and groups are presented in the response as a flat list (like the Map Definition). Client applications can use the parent ObjectId -> Group ObjectID relationship to construct the appropriate parent-child relationships and hierarchy.

REQUESTEDFEATURES = 3 (Basic layer/group structure with inline icons)

<?xml version="1.0" encoding="UTF-8"?>
<RuntimeMap xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="RuntimeMap-2.6.0.xsd">
  <SiteVersion>2.6.0.0</SiteVersion>
  <SessionId>cc47aa6c-befa-11e2-8000-080027004461_en_MTI3LjAuMC4x0B060B050B04</SessionId>
  <Name>Sheboygan</Name>
  <MapDefinition>Library://Samples/Sheboygan/Maps/Sheboygan.MapDefinition</MapDefinition>
  <BackgroundColor>ffcdbd9c</BackgroundColor>
  <DisplayDpi>96</DisplayDpi>
  <IconMimeType>image/png</IconMimeType>
  <CoordinateSystem>
    <Wkt>GEOGCS["WGS84 Lat/Long's, Degrees, -180 ==&gt; +180",DATUM["D_WGS_1984",SPHEROID["World_Geodetic_System_of_1984",6378137,298.257222932867]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]</Wkt>
    <MentorCode>LL84</MentorCode>
    <EpsgCode>4326</EpsgCode>
    <MetersPerUnit>111319.49079327358</MetersPerUnit>
  </CoordinateSystem>
  <Extents>
    <LowerLeftCoordinate>
      <X>-87.764986990962839</X>
      <Y>43.691398128787782</Y>
    </LowerLeftCoordinate>
    <UpperRightCoordinate>
      <X>-87.695521510899724</X>
      <Y>43.797520000480347</Y>
    </UpperRightCoordinate>
  </Extents>
  <Group>
    <Name>Base Map</Name>
    <Type>1</Type>
    <LegendLabel>Base Map</LegendLabel>
    <ObjectId>cc4b53f6-befa-11e2-8001-080027004461</ObjectId>
    <DisplayInLegend>true</DisplayInLegend>
    <ExpandInLegend>true</ExpandInLegend>
    <Visible>true</Visible>
    <ActuallyVisible>true</ActuallyVisible>
  </Group>
  <Group>
    <Name>Municipal</Name>
    <Type>1</Type>
    <LegendLabel>Municipal</LegendLabel>
    <ObjectId>cc4b53f6-befa-11e2-8002-080027004461</ObjectId>
    <DisplayInLegend>true</DisplayInLegend>
    <ExpandInLegend>true</ExpandInLegend>
    <Visible>true</Visible>
    <ActuallyVisible>true</ActuallyVisible>
  </Group>
  <Group>
    <Name>Transportation</Name>
    <Type>1</Type>
    <LegendLabel>Transportation</LegendLabel>
    <ObjectId>cc4b53f6-befa-11e2-8003-080027004461</ObjectId>
    <DisplayInLegend>true</DisplayInLegend>
    <ExpandInLegend>true</ExpandInLegend>
    <Visible>true</Visible>
    <ActuallyVisible>true</ActuallyVisible>
  </Group>
  <Layer>
    <Name>Roads</Name>
    <Type>1</Type>
    <LegendLabel>Roads</LegendLabel>
    <ObjectId>cc4b7b06-befa-11e2-8000-080027004461</ObjectId>
    <ParentId>cc4b53f6-befa-11e2-8003-080027004461</ParentId>
    <Selectable>false</Selectable>
    <DisplayInLegend>true</DisplayInLegend>
    <ExpandInLegend>true</ExpandInLegend>
    <Visible>true</Visible>
    <ActuallyVisible>true</ActuallyVisible>
    <LayerDefinition>Library://Samples/Sheboygan/Layers/Roads.LayerDefinition</LayerDefinition>
    <ScaleRange>
      <MinScale>0</MinScale>
      <MaxScale>10000</MaxScale>
      <FeatureStyle>
        <Type>2</Type>
        <Rule>
          <LegendLabel/>
          <Filter/>
          <Icon>iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAA3NCSVQICAjb4U/gAAAAIklEQVQokWP8//8/AymAiSTVI1UDS3t7O21tYByNOFpoAAAJdQewcVU/XQAAAABJRU5ErkJggg==</Icon>
        </Rule>
      </FeatureStyle>
    </ScaleRange>
    <ScaleRange>
      <MinScale>10000</MinScale>
      <MaxScale>24000</MaxScale>
      <FeatureStyle>
        <Type>2</Type>
        <Rule>
          <LegendLabel/>
          <Filter/>
          <Icon>iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAA3NCSVQICAjb4U/gAAAAIklEQVQokWP8//8/AymAiSTVI1UDS3t7O21tYByNOFpoAAAJdQewcVU/XQAAAABJRU5ErkJggg==</Icon>
        </Rule>
      </FeatureStyle>
    </ScaleRange>
  </Layer>
  <Layer>
    <Name>Rail Lines</Name>
    <Type>1</Type>
    <LegendLabel>Rail Lines</LegendLabel>
    <ObjectId>cc4b7b06-befa-11e2-8001-080027004461</ObjectId>
    <ParentId>cc4b53f6-befa-11e2-8003-080027004461</ParentId>
    <Selectable>false</Selectable>
    <DisplayInLegend>true</DisplayInLegend>
    <ExpandInLegend>true</ExpandInLegend>
    <Visible>false</Visible>
    <ActuallyVisible>false</ActuallyVisible>
    <LayerDefinition>Library://Samples/Sheboygan/Layers/Tracks.LayerDefinition</LayerDefinition>
    <ScaleRange>
      <MinScale>0</MinScale>
      <MaxScale>24000</MaxScale>
      <FeatureStyle>
        <Type>2</Type>
        <Rule>
          <LegendLabel/>
          <Filter/>
          <Icon>iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAA3NCSVQICAjb4U/gAAAAb0lEQVQokc2SwQnAIBAE15AmbMpSfdiIWIR3YAn62Dwur0AECULmtY9ZjoVzJLHCsWR/KIwxSilz1Zy70FqLMc4L5uzfcKaUAIiIiFh+oKoAvPfmrF8IIQCotaqq5TfM2T8aJEn23nPOnGKO+9/zXc8lZ5XdLNzmAAAAAElFTkSuQmCC</Icon>
        </Rule>
      </FeatureStyle>
    </ScaleRange>
  </Layer>
  <Layer>
    <Name>Districts</Name>
    <Type>1</Type>
    <LegendLabel>Districts</LegendLabel>
    <ObjectId>cc4b7b06-befa-11e2-8002-080027004461</ObjectId>
    <ParentId>cc4b53f6-befa-11e2-8002-080027004461</ParentId>
    <Selectable>false</Selectable>
    <DisplayInLegend>true</DisplayInLegend>
    <ExpandInLegend>true</ExpandInLegend>
    <Visible>true</Visible>
    <ActuallyVisible>false</ActuallyVisible>
    <LayerDefinition>Library://Samples/Sheboygan/Layers/Districts.LayerDefinition</LayerDefinition>
    <ScaleRange>
      <MinScale>10000</MinScale>
      <MaxScale>1000000000000</MaxScale>
      <FeatureStyle>
        <Type>3</Type>
        <Rule>
          <LegendLabel/>
          <Filter/>
          <Icon>iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAA3NCSVQICAjb4U/gAAAAOUlEQVQokWPcs6JOTFabgTjw6vFVhktHV/4nGlw6upKJSLPhYFTDqAZqaWB59fjq5WOriFT96vFVACkEOt/4XD28AAAAAElFTkSuQmCC</Icon>
        </Rule>
      </FeatureStyle>
    </ScaleRange>
  </Layer>
  <Layer>
    <Name>Buildings</Name>
    <Type>1</Type>
    <LegendLabel>Buildings</LegendLabel>
    <ObjectId>cc4ba216-befa-11e2-8000-080027004461</ObjectId>
    <ParentId>cc4b53f6-befa-11e2-8002-080027004461</ParentId>
    <Selectable>false</Selectable>
    <DisplayInLegend>true</DisplayInLegend>
    <ExpandInLegend>true</ExpandInLegend>
    <Visible>true</Visible>
    <ActuallyVisible>true</ActuallyVisible>
    <LayerDefinition>Library://Samples/Sheboygan/Layers/Buildings.LayerDefinition</LayerDefinition>
    <ScaleRange>
      <MinScale>0</MinScale>
      <MaxScale>1500</MaxScale>
      <FeatureStyle>
        <Type>3</Type>
        <Rule>
          <LegendLabel/>
          <Filter/>
          <Icon>iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAA3NCSVQICAjb4U/gAAAAOklEQVQokWM8evToy5cvGYgD4uLiLC9fvrx06RKRGvT09JiIVAoHoxpGNVBLA4u4uLienh6RqsXFxQHMyAxCMWcM4QAAAABJRU5ErkJggg==</Icon>
        </Rule>
      </FeatureStyle>
    </ScaleRange>
  </Layer>
  <Layer>
    <Name>Parcels</Name>
    <Type>1</Type>
    <LegendLabel>Parcels</LegendLabel>
    <ObjectId>cc4ba216-befa-11e2-8001-080027004461</ObjectId>
    <ParentId>cc4b53f6-befa-11e2-8002-080027004461</ParentId>
    <Selectable>true</Selectable>
    <DisplayInLegend>true</DisplayInLegend>
    <ExpandInLegend>true</ExpandInLegend>
    <Visible>true</Visible>
    <ActuallyVisible>true</ActuallyVisible>
    <LayerDefinition>Library://Samples/Sheboygan/Layers/Parcels.LayerDefinition</LayerDefinition>
    <ScaleRange>
      <MinScale>0</MinScale>
      <MaxScale>10000</MaxScale>
      <FeatureStyle>
        <Type>3</Type>
        <Rule>
          <LegendLabel>Zone:  AGR</LegendLabel>
          <Filter>RTYPE = 'AGR'</Filter>
          <Icon>iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAA3NCSVQICAjb4U/gAAAAOklEQVQokWOc0F4lwPGbgTjw4QcriwDHb0X+r0RquM/AzUSkUjgY1TCqgVoaWD78YL3PwE2k6g8/WAEoyAybnvNMrwAAAABJRU5ErkJggg==</Icon>
        </Rule>
        <Rule>
          <LegendLabel>Zone:  EXM</LegendLabel>
          <Filter>RTYPE = 'EXM'</Filter>
          <Icon>iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAA3NCSVQICAjb4U/gAAAAOklEQVQokWPs66zh4/rDQBz49I2FhY/rj6zwDyI1PGbgYCJSKRyMahjVQC0NLJ++sTxm4CBS9advLAA9KgyhkvW9tQAAAABJRU5ErkJggg==</Icon>
        </Rule>
        <Rule>
          <LegendLabel>Zone:  MER</LegendLabel>
          <Filter>RTYPE = 'MER'</Filter>
          <Icon>iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAA3NCSVQICAjb4U/gAAAAOklEQVQokWPs6a7l5fnHQBz4/IWJhZfnn6T4HyI1MDCwMBGtFApGNYxqoJYGls9fmBgYWIhU/fkLEwC9qwrV+OtROgAAAABJRU5ErkJggg==</Icon>
        </Rule>
        <Rule>
          <LegendLabel>Zone:  MFG</LegendLabel>
          <Filter>RTYPE = 'MFG'</Filter>
          <Icon>iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAA3NCSVQICAjb4U/gAAAAOUlEQVQokWPs6q3n5mMgEnz9xMDCzccgJv2fSA2vGBiZiDUcBkY1jGqglgaWr58YXjEwEqn66ycGAIUGCqdLv0I4AAAAAElFTkSuQmCC</Icon>
        </Rule>
        <Rule>
          <LegendLabel>Zone:  RES</LegendLabel>
          <Filter>RTYPE = 'RES'</Filter>
          <Icon>iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAA3NCSVQICAjb4U/gAAAAO0lEQVQokWPs7G/kFGBkIA58//CfhVOAUUiemUgN7xj+MhGpFA5GNYxqoJYGlu8f/r9j+Euk6u8f/gMArKMOreezChMAAAAASUVORK5CYII=</Icon>
        </Rule>
        <Rule>
          <LegendLabel>Zone:  S&amp;W</LegendLabel>
          <Filter>RTYPE = 'S&amp;W'</Filter>
          <Icon>iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAA3NCSVQICAjb4U/gAAAAO0lEQVQokWNsn9jMLsTMQBz4+e4vC7sQM78yG5EaPjL8YiJSKRyMahjVQC0NLD/f/f3I8ItI1T/f/QUAw9kOsaqrjjYAAAAASUVORK5CYII=</Icon>
        </Rule>
        <Rule>
          <LegendLabel>Zone:  WTC</LegendLabel>
          <Filter>RTYPE = 'WTC'</Filter>
          <Icon>iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAA3NCSVQICAjb4U/gAAAAOklEQVQokWNsndzCJsLKQBz49eY3C5sIK7c6F5EaGBi+MRGtFApGNYxqoJYGll9vfjMwfCNS9a83vwEcRQzJpppspAAAAABJRU5ErkJggg==</Icon>
        </Rule>
        <Rule>
          <LegendLabel>Zone:  Other</LegendLabel>
          <Filter/>
          <Icon>iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAA3NCSVQICAjb4U/gAAAAMUlEQVQokWM0NTU1NTVlIA6cPn2axdTUNCsri0gN06ZNYyJSKRyMahjVQC0NjKQmbwAmVgr+9vodNwAAAABJRU5ErkJggg==</Icon>
        </Rule>
      </FeatureStyle>
    </ScaleRange>
  </Layer>
  <Layer>
    <Name>Islands</Name>
    <Type>1</Type>
    <LegendLabel>Islands</LegendLabel>
    <ObjectId>cc4ba216-befa-11e2-8002-080027004461</ObjectId>
    <ParentId>cc4b53f6-befa-11e2-8001-080027004461</ParentId>
    <Selectable>false</Selectable>
    <DisplayInLegend>true</DisplayInLegend>
    <ExpandInLegend>true</ExpandInLegend>
    <Visible>true</Visible>
    <ActuallyVisible>true</ActuallyVisible>
    <LayerDefinition>Library://Samples/Sheboygan/Layers/Islands.LayerDefinition</LayerDefinition>
    <ScaleRange>
      <MinScale>0</MinScale>
      <MaxScale>1000000000000</MaxScale>
      <FeatureStyle>
        <Type>3</Type>
        <Rule>
          <LegendLabel/>
          <Filter/>
          <Icon>iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAA3NCSVQICAjb4U/gAAAAGUlEQVQokWO8emINAymAiSTVoxpGNQwpDQAvoAJpPgoElwAAAABJRU5ErkJggg==</Icon>
        </Rule>
      </FeatureStyle>
    </ScaleRange>
  </Layer>
  <Layer>
    <Name>Hydrography</Name>
    <Type>1</Type>
    <LegendLabel>Hydrography</LegendLabel>
    <ObjectId>cc4ba216-befa-11e2-8003-080027004461</ObjectId>
    <ParentId>cc4b53f6-befa-11e2-8001-080027004461</ParentId>
    <Selectable>false</Selectable>
    <DisplayInLegend>true</DisplayInLegend>
    <ExpandInLegend>true</ExpandInLegend>
    <Visible>true</Visible>
    <ActuallyVisible>true</ActuallyVisible>
    <LayerDefinition>Library://Samples/Sheboygan/Layers/Hydrography.LayerDefinition</LayerDefinition>
    <ScaleRange>
      <MinScale>0</MinScale>
      <MaxScale>1000000000000</MaxScale>
      <FeatureStyle>
        <Type>3</Type>
        <Rule>
          <LegendLabel/>
          <Filter/>
          <Icon>iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAA3NCSVQICAjb4U/gAAAAGUlEQVQokWNcffwlAymAiSTVoxpGNQwpDQBmNQJ7CUalHwAAAABJRU5ErkJggg==</Icon>
        </Rule>
      </FeatureStyle>
    </ScaleRange>
  </Layer>
  <Layer>
    <Name>CityLimits</Name>
    <Type>1</Type>
    <LegendLabel>CityLimits</LegendLabel>
    <ObjectId>cc4ba216-befa-11e2-8004-080027004461</ObjectId>
    <ParentId>cc4b53f6-befa-11e2-8001-080027004461</ParentId>
    <Selectable>false</Selectable>
    <DisplayInLegend>true</DisplayInLegend>
    <ExpandInLegend>true</ExpandInLegend>
    <Visible>true</Visible>
    <ActuallyVisible>true</ActuallyVisible>
    <LayerDefinition>Library://Samples/Sheboygan/Layers/CityLimits.LayerDefinition</LayerDefinition>
    <ScaleRange>
      <MinScale>0</MinScale>
      <MaxScale>10000</MaxScale>
      <FeatureStyle>
        <Type>3</Type>
        <Rule>
          <LegendLabel/>
          <Filter/>
          <Icon>iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAA3NCSVQICAjb4U/gAAAAGUlEQVQokWM8cOAAAymAiSTVoxpGNQwpDQAT+QJghokBTgAAAABJRU5ErkJggg==</Icon>
        </Rule>
      </FeatureStyle>
    </ScaleRange>
    <ScaleRange>
      <MinScale>10000</MinScale>
      <MaxScale>1000000000000</MaxScale>
      <FeatureStyle>
        <Type>3</Type>
        <Rule>
          <LegendLabel/>
          <Filter/>
          <Icon>iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAA3NCSVQICAjb4U/gAAAAGUlEQVQokWO8emINAymAiSTVoxpGNQwpDQAvoAJpPgoElwAAAABJRU5ErkJggg==</Icon>
        </Rule>
      </FeatureStyle>
    </ScaleRange>
  </Layer>
</RuntimeMap>

REQUESTEDFEATURES = 7 (Basic layer/group structure with inline icons and Feature Source information)

<?xml version="1.0" encoding="UTF-8"?>
<RuntimeMap xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="RuntimeMap-2.6.0.xsd">
  <SiteVersion>2.6.0.0</SiteVersion>
  <SessionId>af95896c-bef9-11e2-8000-080027004461_en_MTI3LjAuMC4x0B060B050B04</SessionId>
  <Name>Sheboygan</Name>
  <MapDefinition>Library://Samples/Sheboygan/Maps/Sheboygan.MapDefinition</MapDefinition>
  <BackgroundColor>ffcdbd9c</BackgroundColor>
  <DisplayDpi>96</DisplayDpi>
  <IconMimeType>image/png</IconMimeType>
  <CoordinateSystem>
    <Wkt>GEOGCS["WGS84 Lat/Long's, Degrees, -180 ==&gt; +180",DATUM["D_WGS_1984",SPHEROID["World_Geodetic_System_of_1984",6378137,298.257222932867]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]</Wkt>
    <MentorCode>LL84</MentorCode>
    <EpsgCode>4326</EpsgCode>
    <MetersPerUnit>111319.49079327358</MetersPerUnit>
  </CoordinateSystem>
  <Extents>
    <LowerLeftCoordinate>
      <X>-87.764986990962839</X>
      <Y>43.691398128787782</Y>
    </LowerLeftCoordinate>
    <UpperRightCoordinate>
      <X>-87.695521510899724</X>
      <Y>43.797520000480347</Y>
    </UpperRightCoordinate>
  </Extents>
  <Group>
    <Name>Base Map</Name>
    <Type>1</Type>
    <LegendLabel>Base Map</LegendLabel>
    <ObjectId>af9bcb1a-bef9-11e2-8000-080027004461</ObjectId>
    <DisplayInLegend>true</DisplayInLegend>
    <ExpandInLegend>true</ExpandInLegend>
    <Visible>true</Visible>
    <ActuallyVisible>true</ActuallyVisible>
  </Group>
  <Group>
    <Name>Municipal</Name>
    <Type>1</Type>
    <LegendLabel>Municipal</LegendLabel>
    <ObjectId>af9bcb1a-bef9-11e2-8001-080027004461</ObjectId>
    <DisplayInLegend>true</DisplayInLegend>
    <ExpandInLegend>true</ExpandInLegend>
    <Visible>true</Visible>
    <ActuallyVisible>true</ActuallyVisible>
  </Group>
  <Group>
    <Name>Transportation</Name>
    <Type>1</Type>
    <LegendLabel>Transportation</LegendLabel>
    <ObjectId>af9bcb1a-bef9-11e2-8002-080027004461</ObjectId>
    <DisplayInLegend>true</DisplayInLegend>
    <ExpandInLegend>true</ExpandInLegend>
    <Visible>true</Visible>
    <ActuallyVisible>true</ActuallyVisible>
  </Group>
  <Layer>
    <Name>Roads</Name>
    <Type>1</Type>
    <LegendLabel>Roads</LegendLabel>
    <ObjectId>af9bf22a-bef9-11e2-8000-080027004461</ObjectId>
    <ParentId>af9bcb1a-bef9-11e2-8002-080027004461</ParentId>
    <Selectable>false</Selectable>
    <DisplayInLegend>true</DisplayInLegend>
    <ExpandInLegend>true</ExpandInLegend>
    <Visible>true</Visible>
    <ActuallyVisible>true</ActuallyVisible>
    <LayerDefinition>Library://Samples/Sheboygan/Layers/Roads.LayerDefinition</LayerDefinition>
    <FeatureSource>
      <ResourceId>Library://Samples/Sheboygan/Data/RoadCenterLines.FeatureSource</ResourceId>
      <ClassName>SHP_Schema:RoadCenterLines</ClassName>
      <Geometry>SHPGEOM</Geometry>
    </FeatureSource>
    <ScaleRange>
      <MinScale>0</MinScale>
      <MaxScale>10000</MaxScale>
      <FeatureStyle>
        <Type>2</Type>
        <Rule>
          <LegendLabel/>
          <Filter/>
          <Icon>iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAA3NCSVQICAjb4U/gAAAAIklEQVQokWP8//8/AymAiSTVI1UDS3t7O21tYByNOFpoAAAJdQewcVU/XQAAAABJRU5ErkJggg==</Icon>
        </Rule>
      </FeatureStyle>
    </ScaleRange>
    <ScaleRange>
      <MinScale>10000</MinScale>
      <MaxScale>24000</MaxScale>
      <FeatureStyle>
        <Type>2</Type>
        <Rule>
          <LegendLabel/>
          <Filter/>
          <Icon>iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAA3NCSVQICAjb4U/gAAAAIklEQVQokWP8//8/AymAiSTVI1UDS3t7O21tYByNOFpoAAAJdQewcVU/XQAAAABJRU5ErkJggg==</Icon>
        </Rule>
      </FeatureStyle>
    </ScaleRange>
  </Layer>
  <Layer>
    <Name>Rail Lines</Name>
    <Type>1</Type>
    <LegendLabel>Rail Lines</LegendLabel>
    <ObjectId>af9bf22a-bef9-11e2-8001-080027004461</ObjectId>
    <ParentId>af9bcb1a-bef9-11e2-8002-080027004461</ParentId>
    <Selectable>false</Selectable>
    <DisplayInLegend>true</DisplayInLegend>
    <ExpandInLegend>true</ExpandInLegend>
    <Visible>false</Visible>
    <ActuallyVisible>false</ActuallyVisible>
    <LayerDefinition>Library://Samples/Sheboygan/Layers/Tracks.LayerDefinition</LayerDefinition>
    <FeatureSource>
      <ResourceId>Library://Samples/Sheboygan/Data/Rail.FeatureSource</ResourceId>
      <ClassName>SHP_Schema:Rail</ClassName>
      <Geometry>SHPGEOM</Geometry>
    </FeatureSource>
    <ScaleRange>
      <MinScale>0</MinScale>
      <MaxScale>24000</MaxScale>
      <FeatureStyle>
        <Type>2</Type>
        <Rule>
          <LegendLabel/>
          <Filter/>
          <Icon>iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAA3NCSVQICAjb4U/gAAAAb0lEQVQokc2SwQnAIBAE15AmbMpSfdiIWIR3YAn62Dwur0AECULmtY9ZjoVzJLHCsWR/KIwxSilz1Zy70FqLMc4L5uzfcKaUAIiIiFh+oKoAvPfmrF8IIQCotaqq5TfM2T8aJEn23nPOnGKO+9/zXc8lZ5XdLNzmAAAAAElFTkSuQmCC</Icon>
        </Rule>
      </FeatureStyle>
    </ScaleRange>
  </Layer>
  <Layer>
    <Name>Districts</Name>
    <Type>1</Type>
    <LegendLabel>Districts</LegendLabel>
    <ObjectId>af9bf22a-bef9-11e2-8002-080027004461</ObjectId>
    <ParentId>af9bcb1a-bef9-11e2-8001-080027004461</ParentId>
    <Selectable>false</Selectable>
    <DisplayInLegend>true</DisplayInLegend>
    <ExpandInLegend>true</ExpandInLegend>
    <Visible>true</Visible>
    <ActuallyVisible>false</ActuallyVisible>
    <LayerDefinition>Library://Samples/Sheboygan/Layers/Districts.LayerDefinition</LayerDefinition>
    <FeatureSource>
      <ResourceId>Library://Samples/Sheboygan/Data/VotingDistricts.FeatureSource</ResourceId>
      <ClassName>SDF_2_Schema:VotingDistricts</ClassName>
      <Geometry>Data</Geometry>
    </FeatureSource>
    <ScaleRange>
      <MinScale>10000</MinScale>
      <MaxScale>1000000000000</MaxScale>
      <FeatureStyle>
        <Type>3</Type>
        <Rule>
          <LegendLabel/>
          <Filter/>
          <Icon>iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAA3NCSVQICAjb4U/gAAAAOUlEQVQokWPcs6JOTFabgTjw6vFVhktHV/4nGlw6upKJSLPhYFTDqAZqaWB59fjq5WOriFT96vFVACkEOt/4XD28AAAAAElFTkSuQmCC</Icon>
        </Rule>
      </FeatureStyle>
    </ScaleRange>
  </Layer>
  <Layer>
    <Name>Buildings</Name>
    <Type>1</Type>
    <LegendLabel>Buildings</LegendLabel>
    <ObjectId>af9bf22a-bef9-11e2-8003-080027004461</ObjectId>
    <ParentId>af9bcb1a-bef9-11e2-8001-080027004461</ParentId>
    <Selectable>false</Selectable>
    <DisplayInLegend>true</DisplayInLegend>
    <ExpandInLegend>true</ExpandInLegend>
    <Visible>true</Visible>
    <ActuallyVisible>true</ActuallyVisible>
    <LayerDefinition>Library://Samples/Sheboygan/Layers/Buildings.LayerDefinition</LayerDefinition>
    <FeatureSource>
      <ResourceId>Library://Samples/Sheboygan/Data/BuildingOutlines.FeatureSource</ResourceId>
      <ClassName>SHP_Schema:BuildingOutlines</ClassName>
      <Geometry>SHPGEOM</Geometry>
    </FeatureSource>
    <ScaleRange>
      <MinScale>0</MinScale>
      <MaxScale>1500</MaxScale>
      <FeatureStyle>
        <Type>3</Type>
        <Rule>
          <LegendLabel/>
          <Filter/>
          <Icon>iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAA3NCSVQICAjb4U/gAAAAOklEQVQokWM8evToy5cvGYgD4uLiLC9fvrx06RKRGvT09JiIVAoHoxpGNVBLA4u4uLienh6RqsXFxQHMyAxCMWcM4QAAAABJRU5ErkJggg==</Icon>
        </Rule>
      </FeatureStyle>
    </ScaleRange>
  </Layer>
  <Layer>
    <Name>Parcels</Name>
    <Type>1</Type>
    <LegendLabel>Parcels</LegendLabel>
    <ObjectId>af9bf22a-bef9-11e2-8004-080027004461</ObjectId>
    <ParentId>af9bcb1a-bef9-11e2-8001-080027004461</ParentId>
    <Selectable>true</Selectable>
    <DisplayInLegend>true</DisplayInLegend>
    <ExpandInLegend>true</ExpandInLegend>
    <Visible>true</Visible>
    <ActuallyVisible>true</ActuallyVisible>
    <LayerDefinition>Library://Samples/Sheboygan/Layers/Parcels.LayerDefinition</LayerDefinition>
    <FeatureSource>
      <ResourceId>Library://Samples/Sheboygan/Data/Parcels.FeatureSource</ResourceId>
      <ClassName>SHP_Schema:Parcels</ClassName>
      <Geometry>SHPGEOM</Geometry>
    </FeatureSource>
    <ScaleRange>
      <MinScale>0</MinScale>
      <MaxScale>10000</MaxScale>
      <FeatureStyle>
        <Type>3</Type>
        <Rule>
          <LegendLabel>Zone:  AGR</LegendLabel>
          <Filter>RTYPE = 'AGR'</Filter>
          <Icon>iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAA3NCSVQICAjb4U/gAAAAOklEQVQokWOc0F4lwPGbgTjw4QcriwDHb0X+r0RquM/AzUSkUjgY1TCqgVoaWD78YL3PwE2k6g8/WAEoyAybnvNMrwAAAABJRU5ErkJggg==</Icon>
        </Rule>
        <Rule>
          <LegendLabel>Zone:  EXM</LegendLabel>
          <Filter>RTYPE = 'EXM'</Filter>
          <Icon>iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAA3NCSVQICAjb4U/gAAAAOklEQVQokWPs66zh4/rDQBz49I2FhY/rj6zwDyI1PGbgYCJSKRyMahjVQC0NLJ++sTxm4CBS9advLAA9KgyhkvW9tQAAAABJRU5ErkJggg==</Icon>
        </Rule>
        <Rule>
          <LegendLabel>Zone:  MER</LegendLabel>
          <Filter>RTYPE = 'MER'</Filter>
          <Icon>iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAA3NCSVQICAjb4U/gAAAAOklEQVQokWPs6a7l5fnHQBz4/IWJhZfnn6T4HyI1MDCwMBGtFApGNYxqoJYGls9fmBgYWIhU/fkLEwC9qwrV+OtROgAAAABJRU5ErkJggg==</Icon>
        </Rule>
        <Rule>
          <LegendLabel>Zone:  MFG</LegendLabel>
          <Filter>RTYPE = 'MFG'</Filter>
          <Icon>iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAA3NCSVQICAjb4U/gAAAAOUlEQVQokWPs6q3n5mMgEnz9xMDCzccgJv2fSA2vGBiZiDUcBkY1jGqglgaWr58YXjEwEqn66ycGAIUGCqdLv0I4AAAAAElFTkSuQmCC</Icon>
        </Rule>
        <Rule>
          <LegendLabel>Zone:  RES</LegendLabel>
          <Filter>RTYPE = 'RES'</Filter>
          <Icon>iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAA3NCSVQICAjb4U/gAAAAO0lEQVQokWPs7G/kFGBkIA58//CfhVOAUUiemUgN7xj+MhGpFA5GNYxqoJYGlu8f/r9j+Euk6u8f/gMArKMOreezChMAAAAASUVORK5CYII=</Icon>
        </Rule>
        <Rule>
          <LegendLabel>Zone:  S&amp;W</LegendLabel>
          <Filter>RTYPE = 'S&amp;W'</Filter>
          <Icon>iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAA3NCSVQICAjb4U/gAAAAO0lEQVQokWNsn9jMLsTMQBz4+e4vC7sQM78yG5EaPjL8YiJSKRyMahjVQC0NLD/f/f3I8ItI1T/f/QUAw9kOsaqrjjYAAAAASUVORK5CYII=</Icon>
        </Rule>
        <Rule>
          <LegendLabel>Zone:  WTC</LegendLabel>
          <Filter>RTYPE = 'WTC'</Filter>
          <Icon>iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAA3NCSVQICAjb4U/gAAAAOklEQVQokWNsndzCJsLKQBz49eY3C5sIK7c6F5EaGBi+MRGtFApGNYxqoJYGll9vfjMwfCNS9a83vwEcRQzJpppspAAAAABJRU5ErkJggg==</Icon>
        </Rule>
        <Rule>
          <LegendLabel>Zone:  Other</LegendLabel>
          <Filter/>
          <Icon>iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAA3NCSVQICAjb4U/gAAAAMUlEQVQokWM0NTU1NTVlIA6cPn2axdTUNCsri0gN06ZNYyJSKRyMahjVQC0NjKQmbwAmVgr+9vodNwAAAABJRU5ErkJggg==</Icon>
        </Rule>
      </FeatureStyle>
    </ScaleRange>
  </Layer>
  <Layer>
    <Name>Islands</Name>
    <Type>1</Type>
    <LegendLabel>Islands</LegendLabel>
    <ObjectId>af9bf22a-bef9-11e2-8005-080027004461</ObjectId>
    <ParentId>af9bcb1a-bef9-11e2-8000-080027004461</ParentId>
    <Selectable>false</Selectable>
    <DisplayInLegend>true</DisplayInLegend>
    <ExpandInLegend>true</ExpandInLegend>
    <Visible>true</Visible>
    <ActuallyVisible>true</ActuallyVisible>
    <LayerDefinition>Library://Samples/Sheboygan/Layers/Islands.LayerDefinition</LayerDefinition>
    <FeatureSource>
      <ResourceId>Library://Samples/Sheboygan/Data/Islands.FeatureSource</ResourceId>
      <ClassName>SHP_Schema:Islands</ClassName>
      <Geometry>SHPGEOM</Geometry>
    </FeatureSource>
    <ScaleRange>
      <MinScale>0</MinScale>
      <MaxScale>1000000000000</MaxScale>
      <FeatureStyle>
        <Type>3</Type>
        <Rule>
          <LegendLabel/>
          <Filter/>
          <Icon>iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAA3NCSVQICAjb4U/gAAAAGUlEQVQokWO8emINAymAiSTVoxpGNQwpDQAvoAJpPgoElwAAAABJRU5ErkJggg==</Icon>
        </Rule>
      </FeatureStyle>
    </ScaleRange>
  </Layer>
  <Layer>
    <Name>Hydrography</Name>
    <Type>1</Type>
    <LegendLabel>Hydrography</LegendLabel>
    <ObjectId>af9c193a-bef9-11e2-8000-080027004461</ObjectId>
    <ParentId>af9bcb1a-bef9-11e2-8000-080027004461</ParentId>
    <Selectable>false</Selectable>
    <DisplayInLegend>true</DisplayInLegend>
    <ExpandInLegend>true</ExpandInLegend>
    <Visible>true</Visible>
    <ActuallyVisible>true</ActuallyVisible>
    <LayerDefinition>Library://Samples/Sheboygan/Layers/Hydrography.LayerDefinition</LayerDefinition>
    <FeatureSource>
      <ResourceId>Library://Samples/Sheboygan/Data/HydrographicPolygons.FeatureSource</ResourceId>
      <ClassName>SHP_Schema:HydrographicPolygons</ClassName>
      <Geometry>SHPGEOM</Geometry>
    </FeatureSource>
    <ScaleRange>
      <MinScale>0</MinScale>
      <MaxScale>1000000000000</MaxScale>
      <FeatureStyle>
        <Type>3</Type>
        <Rule>
          <LegendLabel/>
          <Filter/>
          <Icon>iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAA3NCSVQICAjb4U/gAAAAGUlEQVQokWNcffwlAymAiSTVoxpGNQwpDQBmNQJ7CUalHwAAAABJRU5ErkJggg==</Icon>
        </Rule>
      </FeatureStyle>
    </ScaleRange>
  </Layer>
  <Layer>
    <Name>CityLimits</Name>
    <Type>1</Type>
    <LegendLabel>CityLimits</LegendLabel>
    <ObjectId>af9c193a-bef9-11e2-8001-080027004461</ObjectId>
    <ParentId>af9bcb1a-bef9-11e2-8000-080027004461</ParentId>
    <Selectable>false</Selectable>
    <DisplayInLegend>true</DisplayInLegend>
    <ExpandInLegend>true</ExpandInLegend>
    <Visible>true</Visible>
    <ActuallyVisible>true</ActuallyVisible>
    <LayerDefinition>Library://Samples/Sheboygan/Layers/CityLimits.LayerDefinition</LayerDefinition>
    <FeatureSource>
      <ResourceId>Library://Samples/Sheboygan/Data/CityLimits.FeatureSource</ResourceId>
      <ClassName>SHP_Schema:CityLimits</ClassName>
      <Geometry>SHPGEOM</Geometry>
    </FeatureSource>
    <ScaleRange>
      <MinScale>0</MinScale>
      <MaxScale>10000</MaxScale>
      <FeatureStyle>
        <Type>3</Type>
        <Rule>
          <LegendLabel/>
          <Filter/>
          <Icon>iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAA3NCSVQICAjb4U/gAAAAGUlEQVQokWM8cOAAAymAiSTVoxpGNQwpDQAT+QJghokBTgAAAABJRU5ErkJggg==</Icon>
        </Rule>
      </FeatureStyle>
    </ScaleRange>
    <ScaleRange>
      <MinScale>10000</MinScale>
      <MaxScale>1000000000000</MaxScale>
      <FeatureStyle>
        <Type>3</Type>
        <Rule>
          <LegendLabel/>
          <Filter/>
          <Icon>iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAA3NCSVQICAjb4U/gAAAAGUlEQVQokWO8emINAymAiSTVoxpGNQwpDQAvoAJpPgoElwAAAABJRU5ErkJggg==</Icon>
        </Rule>
      </FeatureStyle>
    </ScaleRange>
  </Layer>
</RuntimeMap>

Finally, REQUESTEDFEATURES = 7 (Basic layer/group structure with inline icons and Feature Source information) and ICONSPERSCALERANGE = 3.

Note the Parcels theme only has inline icons for the first and last rules because its number of rules (8) exceeds our specified limit. The omission of icons serves as a "hint" to client applications to compress this theme (which both AJAX and Fusion viewers currently do, albeit with slightly different metrics for theme compression). Rules without icons can issue a follow up GETLEGENDIMAGE request and use its parent's type and its respective position for the required GEOMETRYTYPE and THEMECATEGORY parameters.

<?xml version="1.0" encoding="UTF-8"?>
<RuntimeMap xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="RuntimeMap-2.6.0.xsd">
  <SiteVersion>2.6.0.0</SiteVersion>
  <SessionId>469bb24a-befb-11e2-8000-080027004461_en_MTI3LjAuMC4x0B060B050B04</SessionId>
  <Name>Sheboygan</Name>
  <MapDefinition>Library://Samples/Sheboygan/Maps/Sheboygan.MapDefinition</MapDefinition>
  <BackgroundColor>ffcdbd9c</BackgroundColor>
  <DisplayDpi>96</DisplayDpi>
  <IconMimeType>image/png</IconMimeType>
  <CoordinateSystem>
    <Wkt>GEOGCS["WGS84 Lat/Long's, Degrees, -180 ==&gt; +180",DATUM["D_WGS_1984",SPHEROID["World_Geodetic_System_of_1984",6378137,298.257222932867]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]</Wkt>
    <MentorCode>LL84</MentorCode>
    <EpsgCode>4326</EpsgCode>
    <MetersPerUnit>111319.49079327358</MetersPerUnit>
  </CoordinateSystem>
  <Extents>
    <LowerLeftCoordinate>
      <X>-87.764986990962839</X>
      <Y>43.691398128787782</Y>
    </LowerLeftCoordinate>
    <UpperRightCoordinate>
      <X>-87.695521510899724</X>
      <Y>43.797520000480347</Y>
    </UpperRightCoordinate>
  </Extents>
  <Group>
    <Name>Base Map</Name>
    <Type>1</Type>
    <LegendLabel>Base Map</LegendLabel>
    <ObjectId>469f5bd4-befb-11e2-8000-080027004461</ObjectId>
    <DisplayInLegend>true</DisplayInLegend>
    <ExpandInLegend>true</ExpandInLegend>
    <Visible>true</Visible>
    <ActuallyVisible>true</ActuallyVisible>
  </Group>
  <Group>
    <Name>Municipal</Name>
    <Type>1</Type>
    <LegendLabel>Municipal</LegendLabel>
    <ObjectId>469f5bd4-befb-11e2-8001-080027004461</ObjectId>
    <DisplayInLegend>true</DisplayInLegend>
    <ExpandInLegend>true</ExpandInLegend>
    <Visible>true</Visible>
    <ActuallyVisible>true</ActuallyVisible>
  </Group>
  <Group>
    <Name>Transportation</Name>
    <Type>1</Type>
    <LegendLabel>Transportation</LegendLabel>
    <ObjectId>469f5bd4-befb-11e2-8002-080027004461</ObjectId>
    <DisplayInLegend>true</DisplayInLegend>
    <ExpandInLegend>true</ExpandInLegend>
    <Visible>true</Visible>
    <ActuallyVisible>true</ActuallyVisible>
  </Group>
  <Layer>
    <Name>Roads</Name>
    <Type>1</Type>
    <LegendLabel>Roads</LegendLabel>
    <ObjectId>469f82e4-befb-11e2-8000-080027004461</ObjectId>
    <ParentId>469f5bd4-befb-11e2-8002-080027004461</ParentId>
    <Selectable>false</Selectable>
    <DisplayInLegend>true</DisplayInLegend>
    <ExpandInLegend>true</ExpandInLegend>
    <Visible>true</Visible>
    <ActuallyVisible>true</ActuallyVisible>
    <LayerDefinition>Library://Samples/Sheboygan/Layers/Roads.LayerDefinition</LayerDefinition>
    <FeatureSource>
      <ResourceId>Library://Samples/Sheboygan/Data/RoadCenterLines.FeatureSource</ResourceId>
      <ClassName>SHP_Schema:RoadCenterLines</ClassName>
      <Geometry>SHPGEOM</Geometry>
    </FeatureSource>
    <ScaleRange>
      <MinScale>0</MinScale>
      <MaxScale>10000</MaxScale>
      <FeatureStyle>
        <Type>2</Type>
        <Rule>
          <LegendLabel/>
          <Filter/>
          <Icon>iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAA3NCSVQICAjb4U/gAAAAIklEQVQokWP8//8/AymAiSTVI1UDS3t7O21tYByNOFpoAAAJdQewcVU/XQAAAABJRU5ErkJggg==</Icon>
        </Rule>
      </FeatureStyle>
    </ScaleRange>
    <ScaleRange>
      <MinScale>10000</MinScale>
      <MaxScale>24000</MaxScale>
      <FeatureStyle>
        <Type>2</Type>
        <Rule>
          <LegendLabel/>
          <Filter/>
          <Icon>iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAA3NCSVQICAjb4U/gAAAAIklEQVQokWP8//8/AymAiSTVI1UDS3t7O21tYByNOFpoAAAJdQewcVU/XQAAAABJRU5ErkJggg==</Icon>
        </Rule>
      </FeatureStyle>
    </ScaleRange>
  </Layer>
  <Layer>
    <Name>Rail Lines</Name>
    <Type>1</Type>
    <LegendLabel>Rail Lines</LegendLabel>
    <ObjectId>469f82e4-befb-11e2-8001-080027004461</ObjectId>
    <ParentId>469f5bd4-befb-11e2-8002-080027004461</ParentId>
    <Selectable>false</Selectable>
    <DisplayInLegend>true</DisplayInLegend>
    <ExpandInLegend>true</ExpandInLegend>
    <Visible>false</Visible>
    <ActuallyVisible>false</ActuallyVisible>
    <LayerDefinition>Library://Samples/Sheboygan/Layers/Tracks.LayerDefinition</LayerDefinition>
    <FeatureSource>
      <ResourceId>Library://Samples/Sheboygan/Data/Rail.FeatureSource</ResourceId>
      <ClassName>SHP_Schema:Rail</ClassName>
      <Geometry>SHPGEOM</Geometry>
    </FeatureSource>
    <ScaleRange>
      <MinScale>0</MinScale>
      <MaxScale>24000</MaxScale>
      <FeatureStyle>
        <Type>2</Type>
        <Rule>
          <LegendLabel/>
          <Filter/>
          <Icon>iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAA3NCSVQICAjb4U/gAAAAb0lEQVQokc2SwQnAIBAE15AmbMpSfdiIWIR3YAn62Dwur0AECULmtY9ZjoVzJLHCsWR/KIwxSilz1Zy70FqLMc4L5uzfcKaUAIiIiFh+oKoAvPfmrF8IIQCotaqq5TfM2T8aJEn23nPOnGKO+9/zXc8lZ5XdLNzmAAAAAElFTkSuQmCC</Icon>
        </Rule>
      </FeatureStyle>
    </ScaleRange>
  </Layer>
  <Layer>
    <Name>Districts</Name>
    <Type>1</Type>
    <LegendLabel>Districts</LegendLabel>
    <ObjectId>469f82e4-befb-11e2-8002-080027004461</ObjectId>
    <ParentId>469f5bd4-befb-11e2-8001-080027004461</ParentId>
    <Selectable>false</Selectable>
    <DisplayInLegend>true</DisplayInLegend>
    <ExpandInLegend>true</ExpandInLegend>
    <Visible>true</Visible>
    <ActuallyVisible>false</ActuallyVisible>
    <LayerDefinition>Library://Samples/Sheboygan/Layers/Districts.LayerDefinition</LayerDefinition>
    <FeatureSource>
      <ResourceId>Library://Samples/Sheboygan/Data/VotingDistricts.FeatureSource</ResourceId>
      <ClassName>SDF_2_Schema:VotingDistricts</ClassName>
      <Geometry>Data</Geometry>
    </FeatureSource>
    <ScaleRange>
      <MinScale>10000</MinScale>
      <MaxScale>1000000000000</MaxScale>
      <FeatureStyle>
        <Type>3</Type>
        <Rule>
          <LegendLabel/>
          <Filter/>
          <Icon>iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAA3NCSVQICAjb4U/gAAAAOUlEQVQokWPcs6JOTFabgTjw6vFVhktHV/4nGlw6upKJSLPhYFTDqAZqaWB59fjq5WOriFT96vFVACkEOt/4XD28AAAAAElFTkSuQmCC</Icon>
        </Rule>
      </FeatureStyle>
    </ScaleRange>
  </Layer>
  <Layer>
    <Name>Buildings</Name>
    <Type>1</Type>
    <LegendLabel>Buildings</LegendLabel>
    <ObjectId>469f82e4-befb-11e2-8003-080027004461</ObjectId>
    <ParentId>469f5bd4-befb-11e2-8001-080027004461</ParentId>
    <Selectable>false</Selectable>
    <DisplayInLegend>true</DisplayInLegend>
    <ExpandInLegend>true</ExpandInLegend>
    <Visible>true</Visible>
    <ActuallyVisible>true</ActuallyVisible>
    <LayerDefinition>Library://Samples/Sheboygan/Layers/Buildings.LayerDefinition</LayerDefinition>
    <FeatureSource>
      <ResourceId>Library://Samples/Sheboygan/Data/BuildingOutlines.FeatureSource</ResourceId>
      <ClassName>SHP_Schema:BuildingOutlines</ClassName>
      <Geometry>SHPGEOM</Geometry>
    </FeatureSource>
    <ScaleRange>
      <MinScale>0</MinScale>
      <MaxScale>1500</MaxScale>
      <FeatureStyle>
        <Type>3</Type>
        <Rule>
          <LegendLabel/>
          <Filter/>
          <Icon>iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAA3NCSVQICAjb4U/gAAAAOklEQVQokWM8evToy5cvGYgD4uLiLC9fvrx06RKRGvT09JiIVAoHoxpGNVBLA4u4uLienh6RqsXFxQHMyAxCMWcM4QAAAABJRU5ErkJggg==</Icon>
        </Rule>
      </FeatureStyle>
    </ScaleRange>
  </Layer>
  <Layer>
    <Name>Parcels</Name>
    <Type>1</Type>
    <LegendLabel>Parcels</LegendLabel>
    <ObjectId>469f82e4-befb-11e2-8004-080027004461</ObjectId>
    <ParentId>469f5bd4-befb-11e2-8001-080027004461</ParentId>
    <Selectable>true</Selectable>
    <DisplayInLegend>true</DisplayInLegend>
    <ExpandInLegend>true</ExpandInLegend>
    <Visible>true</Visible>
    <ActuallyVisible>true</ActuallyVisible>
    <LayerDefinition>Library://Samples/Sheboygan/Layers/Parcels.LayerDefinition</LayerDefinition>
    <FeatureSource>
      <ResourceId>Library://Samples/Sheboygan/Data/Parcels.FeatureSource</ResourceId>
      <ClassName>SHP_Schema:Parcels</ClassName>
      <Geometry>SHPGEOM</Geometry>
    </FeatureSource>
    <ScaleRange>
      <MinScale>0</MinScale>
      <MaxScale>10000</MaxScale>
      <FeatureStyle>
        <Type>3</Type>
        <Rule>
          <LegendLabel>Zone:  AGR</LegendLabel>
          <Filter>RTYPE = 'AGR'</Filter>
          <Icon>iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAA3NCSVQICAjb4U/gAAAAOklEQVQokWOc0F4lwPGbgTjw4QcriwDHb0X+r0RquM/AzUSkUjgY1TCqgVoaWD78YL3PwE2k6g8/WAEoyAybnvNMrwAAAABJRU5ErkJggg==</Icon>
        </Rule>
        <Rule>
          <LegendLabel>Zone:  EXM</LegendLabel>
          <Filter>RTYPE = 'EXM'</Filter>
        </Rule>
        <Rule>
          <LegendLabel>Zone:  MER</LegendLabel>
          <Filter>RTYPE = 'MER'</Filter>
        </Rule>
        <Rule>
          <LegendLabel>Zone:  MFG</LegendLabel>
          <Filter>RTYPE = 'MFG'</Filter>
        </Rule>
        <Rule>
          <LegendLabel>Zone:  RES</LegendLabel>
          <Filter>RTYPE = 'RES'</Filter>
        </Rule>
        <Rule>
          <LegendLabel>Zone:  S&amp;W</LegendLabel>
          <Filter>RTYPE = 'S&amp;W'</Filter>
        </Rule>
        <Rule>
          <LegendLabel>Zone:  WTC</LegendLabel>
          <Filter>RTYPE = 'WTC'</Filter>
        </Rule>
        <Rule>
          <LegendLabel>Zone:  Other</LegendLabel>
          <Filter/>
          <Icon>iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAA3NCSVQICAjb4U/gAAAAMUlEQVQokWM0NTU1NTVlIA6cPn2axdTUNCsri0gN06ZNYyJSKRyMahjVQC0NjKQmbwAmVgr+9vodNwAAAABJRU5ErkJggg==</Icon>
        </Rule>
      </FeatureStyle>
    </ScaleRange>
  </Layer>
  <Layer>
    <Name>Islands</Name>
    <Type>1</Type>
    <LegendLabel>Islands</LegendLabel>
    <ObjectId>469fa9f4-befb-11e2-8000-080027004461</ObjectId>
    <ParentId>469f5bd4-befb-11e2-8000-080027004461</ParentId>
    <Selectable>false</Selectable>
    <DisplayInLegend>true</DisplayInLegend>
    <ExpandInLegend>true</ExpandInLegend>
    <Visible>true</Visible>
    <ActuallyVisible>true</ActuallyVisible>
    <LayerDefinition>Library://Samples/Sheboygan/Layers/Islands.LayerDefinition</LayerDefinition>
    <FeatureSource>
      <ResourceId>Library://Samples/Sheboygan/Data/Islands.FeatureSource</ResourceId>
      <ClassName>SHP_Schema:Islands</ClassName>
      <Geometry>SHPGEOM</Geometry>
    </FeatureSource>
    <ScaleRange>
      <MinScale>0</MinScale>
      <MaxScale>1000000000000</MaxScale>
      <FeatureStyle>
        <Type>3</Type>
        <Rule>
          <LegendLabel/>
          <Filter/>
          <Icon>iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAA3NCSVQICAjb4U/gAAAAGUlEQVQokWO8emINAymAiSTVoxpGNQwpDQAvoAJpPgoElwAAAABJRU5ErkJggg==</Icon>
        </Rule>
      </FeatureStyle>
    </ScaleRange>
  </Layer>
  <Layer>
    <Name>Hydrography</Name>
    <Type>1</Type>
    <LegendLabel>Hydrography</LegendLabel>
    <ObjectId>469fa9f4-befb-11e2-8001-080027004461</ObjectId>
    <ParentId>469f5bd4-befb-11e2-8000-080027004461</ParentId>
    <Selectable>false</Selectable>
    <DisplayInLegend>true</DisplayInLegend>
    <ExpandInLegend>true</ExpandInLegend>
    <Visible>true</Visible>
    <ActuallyVisible>true</ActuallyVisible>
    <LayerDefinition>Library://Samples/Sheboygan/Layers/Hydrography.LayerDefinition</LayerDefinition>
    <FeatureSource>
      <ResourceId>Library://Samples/Sheboygan/Data/HydrographicPolygons.FeatureSource</ResourceId>
      <ClassName>SHP_Schema:HydrographicPolygons</ClassName>
      <Geometry>SHPGEOM</Geometry>
    </FeatureSource>
    <ScaleRange>
      <MinScale>0</MinScale>
      <MaxScale>1000000000000</MaxScale>
      <FeatureStyle>
        <Type>3</Type>
        <Rule>
          <LegendLabel/>
          <Filter/>
          <Icon>iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAA3NCSVQICAjb4U/gAAAAGUlEQVQokWNcffwlAymAiSTVoxpGNQwpDQBmNQJ7CUalHwAAAABJRU5ErkJggg==</Icon>
        </Rule>
      </FeatureStyle>
    </ScaleRange>
  </Layer>
  <Layer>
    <Name>CityLimits</Name>
    <Type>1</Type>
    <LegendLabel>CityLimits</LegendLabel>
    <ObjectId>469fa9f4-befb-11e2-8002-080027004461</ObjectId>
    <ParentId>469f5bd4-befb-11e2-8000-080027004461</ParentId>
    <Selectable>false</Selectable>
    <DisplayInLegend>true</DisplayInLegend>
    <ExpandInLegend>true</ExpandInLegend>
    <Visible>true</Visible>
    <ActuallyVisible>true</ActuallyVisible>
    <LayerDefinition>Library://Samples/Sheboygan/Layers/CityLimits.LayerDefinition</LayerDefinition>
    <FeatureSource>
      <ResourceId>Library://Samples/Sheboygan/Data/CityLimits.FeatureSource</ResourceId>
      <ClassName>SHP_Schema:CityLimits</ClassName>
      <Geometry>SHPGEOM</Geometry>
    </FeatureSource>
    <ScaleRange>
      <MinScale>0</MinScale>
      <MaxScale>10000</MaxScale>
      <FeatureStyle>
        <Type>3</Type>
        <Rule>
          <LegendLabel/>
          <Filter/>
          <Icon>iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAA3NCSVQICAjb4U/gAAAAGUlEQVQokWM8cOAAAymAiSTVoxpGNQwpDQAT+QJghokBTgAAAABJRU5ErkJggg==</Icon>
        </Rule>
      </FeatureStyle>
    </ScaleRange>
    <ScaleRange>
      <MinScale>10000</MinScale>
      <MaxScale>1000000000000</MaxScale>
      <FeatureStyle>
        <Type>3</Type>
        <Rule>
          <LegendLabel/>
          <Filter/>
          <Icon>iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAA3NCSVQICAjb4U/gAAAAGUlEQVQokWO8emINAymAiSTVoxpGNQwpDQAvoAJpPgoElwAAAABJRU5ErkJggg==</Icon>
        </Rule>
      </FeatureStyle>
    </ScaleRange>
  </Layer>
</RuntimeMap>

An attached example demonstrating this new API is included (mapguide.html). This is done in pure client-side OpenLayers/jQuery without any assistance required from any Web Extensions API glue code.

Implications

This is a brand new API. There are no compatibility issues.

The AJAX viewer will not use this new API for initialization.

Test Plan

Test the operation with various requested feature levels against a pure OpenLayers map viewer.

Test and verify CREATERUNTIMEMAP at full feature level provides all the necessary information for Fusion to bypass LoadMap.php and LoadScaleRanges.php

Funding / Resources

Community

Attachments (3)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.