| 97 | == Multiple WMS Layers in a Single MapGuide Layer == |
| 98 | To get multiple WMS layers in a single MapGuide layer, it is enough to specify multiple Layer tags in the configuration document. When the resulting feature class (i.e., name substituted for %!FeatureClassName%) is specified in a layer, the layer will display all of the specified WMS layers. The following XML snippet shows how the multiple layers are specified: |
| 99 | |
| 100 | {{{ |
| 101 | |
| 102 | <RasterDefinition name="Image"> |
| 103 | <Format>PNG</Format> |
| 104 | <Transparent>true</Transparent> |
| 105 | <BackgroundColor>0xFFFFFF</BackgroundColor> |
| 106 | <Time>current</Time> |
| 107 | <Elevation>0</Elevation> |
| 108 | <SpatialContext>EPSG:4326</SpatialContext> |
| 109 | <Layer name="%LayerName1%"> |
| 110 | <Style/> |
| 111 | </Layer> |
| 112 | <Layer name="%LayerName2%"> |
| 113 | <Style/> |
| 114 | </Layer> |
| 115 | <Layer name="%LayerName3%"> |
| 116 | <Style/> |
| 117 | </Layer> |
| 118 | </RasterDefinition> |
| 119 | |
| 120 | }}} |