Changes between Version 2 and Version 3 of ApplicationDefinition/MapSet/MapGroup


Ignore:
Timestamp:
04/07/08 12:23:39 (17 years ago)
Author:
jbirch
Comment:

Adding information about InitialView

Legend:

Unmodified
Added
Removed
Modified
  • ApplicationDefinition/MapSet/MapGroup

    v2 v3  
     1[[PageOutline]]
    12[wiki:Documentation] | [wiki:ApplicationDefinition] | [wiki:ApplicationDefinition/MapSet MapSet]
    23
    34= !MapGroup =
    45
    5 A sub-tag of the [wiki:ApplicationDefinition/MapSet MapSet] tag, a !MapGroup contains sub-tags for map rendering sources that are to be included in a visible map.  A !MapGroup must contain at least one '''Map''' tag to be valid. For example:
     6A child of the [wiki:ApplicationDefinition/MapSet MapSet] element, a !MapGroup contains configuration information for map rendering sources that are to be included in a visible map.  A !MapGroup must contain at least one '''Map''' element to be valid, and may contain one '''!InitialView''' element. For example:
    67
    78{{{
    8 <MapGroup id="Parks" xsi:type="MapType">
     9<MapGroup id="Sheboygan" xsi:type="MapType">
    910  <Map xsi:type="MapGuideLayerType">
    1011    <Type>MapGuide</Type>
     
    1415    </Extension>
    1516  </Map>
     17  <InitialView>
     18    <CenterX>430379</CenterX>
     19    <CenterY>5446616</CenterY>
     20    <Scale>5446915</Scale>
     21  </InitialView>
    1622</MapGroup>
    1723}}}
     24
     25== Map ==
    1826
    1927The Map tag contains the following sub-tags:
     
    2836  The Extension tag contains sub-tags that are not defined by the schema.  The content of the sub-tags depends partly on the '''Type''' of map specified.
    2937
    30 == General Extension ==
     38=== General Extensions ===
    3139
    3240The generally supported Extension tags are supported by all or most of the map types.  These are described below.
    3341
    34 === Links ===
     42==== Links ====
    3543The Links tag allows you to specify metadata URLs to be associated with groups and layers.  The Legend widget can use this metadata to add links into the rendered legend tree to hyperlink users to additional information about groups and layers. 
    3644
     
    5967}}}
    6068
    61 === !MapEvents ===
     69==== !MapEvents ====
    6270The !MapEvents tag allows you to specify actions to take when layers and groups are turned on or off by a user.  Valid actions are to turn on or off other layers and groups. 
    6371
     
    142150
    143151If you have defined a !MapServer map type, you must provide a {{{<MapFile>}}} sub-tag that defines the path to the MAP file to be used to render this map.
     152
     153== !InitialView ==
     154
     155!InitialView allows you to set a zoom extents that is different that the maximum extents of the map.  This is useful for regional mapping, as it allows you to create a map with large extents to give a reasonable amout of context, but still have only your area of interest displayed on initial load.
     156
     157There are two syntaxes allowed for !InitialView, center and scale style, or bounding box style.  The center and scale style is given precedence over the bounding box style if both sets of required elements exist.  If any of the required elements are missing for either of these styles (for instance, omitting the CenterX element for the center and scale style) that style will not be applied.
     158
     159=== Center and Scale ===
     160
     161This allows you to set the initial view based on a midpoint and a desired scale.
     162
     163For this to be used, you must include valid CenterX, CenterY and Scale elements within the !InitialView element.
     164
     165Example:
     166
     167{{{
     168  <InitialView>
     169    <CenterX>430379</CenterX>
     170    <CenterY>5446616</CenterY>
     171    <Scale>5446915</Scale>
     172  </InitialView>
     173}}}
     174
     175=== Bounding Box ===
     176
     177This allows you to set the initial view based on a desired bounding box.
     178
     179For this to be used, you must include valid MinX, MinY, MaxX, and MaxY elements within the !InitialView element.
     180
     181Example:
     182
     183{{{
     184      <InitialView>
     185        <MinX>430379</MinX>
     186        <MinY>5446616</MinY>
     187        <MaxX>430541</MaxX>
     188        <MaxY>5446915</MaxY>
     189      </InitialView>
     190}}}