Changes between Version 2 and Version 3 of ApplicationDefinition/MapSet/MapGroup
- Timestamp:
- 04/07/08 12:23:39 (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ApplicationDefinition/MapSet/MapGroup
v2 v3 1 [[PageOutline]] 1 2 [wiki:Documentation] | [wiki:ApplicationDefinition] | [wiki:ApplicationDefinition/MapSet MapSet] 2 3 3 4 = !MapGroup = 4 5 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:6 A 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: 6 7 7 8 {{{ 8 <MapGroup id=" Parks" xsi:type="MapType">9 <MapGroup id="Sheboygan" xsi:type="MapType"> 9 10 <Map xsi:type="MapGuideLayerType"> 10 11 <Type>MapGuide</Type> … … 14 15 </Extension> 15 16 </Map> 17 <InitialView> 18 <CenterX>430379</CenterX> 19 <CenterY>5446616</CenterY> 20 <Scale>5446915</Scale> 21 </InitialView> 16 22 </MapGroup> 17 23 }}} 24 25 == Map == 18 26 19 27 The Map tag contains the following sub-tags: … … 28 36 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. 29 37 30 == General Extension==38 === General Extensions === 31 39 32 40 The generally supported Extension tags are supported by all or most of the map types. These are described below. 33 41 34 === Links===42 ==== Links ==== 35 43 The 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. 36 44 … … 59 67 }}} 60 68 61 === !MapEvents===69 ==== !MapEvents ==== 62 70 The !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. 63 71 … … 142 150 143 151 If 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 157 There 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 161 This allows you to set the initial view based on a midpoint and a desired scale. 162 163 For this to be used, you must include valid CenterX, CenterY and Scale elements within the !InitialView element. 164 165 Example: 166 167 {{{ 168 <InitialView> 169 <CenterX>430379</CenterX> 170 <CenterY>5446616</CenterY> 171 <Scale>5446915</Scale> 172 </InitialView> 173 }}} 174 175 === Bounding Box === 176 177 This allows you to set the initial view based on a desired bounding box. 178 179 For this to be used, you must include valid MinX, MinY, MaxX, and MaxY elements within the !InitialView element. 180 181 Example: 182 183 {{{ 184 <InitialView> 185 <MinX>430379</MinX> 186 <MinY>5446616</MinY> 187 <MaxX>430541</MaxX> 188 <MaxY>5446915</MaxY> 189 </InitialView> 190 }}}