Previous: Web Map Context Next: Web Map Context
Web Map Context

Web Map Context Examples

gmap_context_1_0_0.xml



<?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?>
<ViewContext id="DEMO" version="1.0.0" xmlns:xlink="http://www.w3.org/TR/xlink"
                                      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                                      xsi:noNamespaceSchemaLocation="./context.xsd">
  <General>
    <Window width="400" height="300"/>
    <!-- Bounding box corners and spatial reference system -->
    <BoundingBox SRS="EPSG:42304" minx="-2594560.000000" miny="-712631.000000" maxx="3467360.000000" maxy="3840000.000000"/>
    <Title>DEMO</Title>
  </General>
  <!-- LayerList of Layer elements
       - implied order: bottom To Top
       first Layer element is bottom most layer in map view
       last Layer elements is op most layer in map view
  -->
  <LayerList>
    <Layer queryable="0" hidden="0">
      <Server service="WMS" version="1.1.0" title="Elevation/Bathymetry">
        <OnlineResource xlink:type="simple" xlink:href="http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?"/>
      </Server>
      <Name>bathymetry</Name>
      <Title>Elevation/Bathymetry</Title>
      <SRS>EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326 EPSG:42304</SRS>
      <FormatList>
        <Format current="1">image/gif</Format>
        <Format>image/png</Format>
        <Format>image/jpeg</Format>
        <Format>image/wbmp</Format>
      </FormatList>
    </Layer>
    <Layer queryable="0" hidden="0">
      <Server service="WMS" version="1.1.0" title="Foreign Lands">
        <OnlineResource xlink:type="simple" xlink:href="http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?"/>
      </Server>
      <Name>land_fn</Name>
      <Title>Foreign Lands</Title>
      <SRS>EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326 EPSG:42304</SRS>
      <FormatList>
        <Format current="1">image/gif</Format>
        <Format>image/png</Format>
        <Format>image/jpeg</Format>
        <Format>image/wbmp</Format>
      </FormatList>
    </Layer>
    <Layer queryable="0" hidden="1">
      <Server service="WMS" version="1.1.0" title="Parks">
        <OnlineResource xlink:type="simple" xlink:href="http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?"/>
      </Server>
      <Name>park</Name>
      <Title>Parks</Title>
      <SRS>EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326 EPSG:42304</SRS>
      <FormatList>
        <Format current="1">image/gif</Format>
        <Format>image/png</Format>
        <Format>image/jpeg</Format>
        <Format>image/wbmp</Format>
      </FormatList>
    </Layer>
    <Layer queryable="0" hidden="0">
      <Server service="WMS" version="1.1.0" title="Water">
        <OnlineResource xlink:type="simple" xlink:href="http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?"/>
      </Server>
      <Name>drain_fn</Name>
      <Title>Water</Title>
      <SRS>EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326 EPSG:42304</SRS>
      <FormatList>
        <Format current="1">image/gif</Format>
        <Format>image/png</Format>
        <Format>image/jpeg</Format>
        <Format>image/wbmp</Format>
      </FormatList>
    </Layer>
    <Layer queryable="0" hidden="0">
      <Server service="WMS" version="1.1.0" title="Drainage">
        <OnlineResource xlink:type="simple" xlink:href="http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?"/>
      </Server>
      <Name>drainage</Name>
      <Title>Drainage</Title>
      <SRS>EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326 EPSG:42304</SRS>
      <FormatList>
        <Format current="1">image/gif</Format>
        <Format>image/png</Format>
        <Format>image/jpeg</Format>
        <Format>image/wbmp</Format>
      </FormatList>
    </Layer>
    <Layer queryable="0" hidden="0">
      <Server service="WMS" version="1.1.0" title="Province">
        <OnlineResource xlink:type="simple" xlink:href="http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?"/>
      </Server>
      <Name>prov_bound</Name>
      <Title>Province</Title>
      <SRS>EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326 EPSG:42304</SRS>
      <FormatList>
        <Format current="1">image/gif</Format>
        <Format>image/png</Format>
        <Format>image/jpeg</Format>
        <Format>image/wbmp</Format>
      </FormatList>
    </Layer>
    <Layer queryable="0" hidden="0">
      <Server service="WMS" version="1.1.0" title="Federal Limit">
        <OnlineResource xlink:type="simple" xlink:href="http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?"/>
      </Server>
      <Name>fedlimit</Name>
      <Title>Federal Limit</Title>
      <SRS>EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326 EPSG:42304</SRS>
      <FormatList>
        <Format current="1">image/gif</Format>
        <Format>image/png</Format>
        <Format>image/jpeg</Format>
        <Format>image/wbmp</Format>
      </FormatList>
    </Layer>
    <Layer queryable="0" hidden="1">
      <Server service="WMS" version="1.1.0" title="Railroads">
        <OnlineResource xlink:type="simple" xlink:href="http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?"/>
      </Server>
      <Name>rail</Name>
      <Title>Railroads</Title>
      <SRS>EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326 EPSG:42304</SRS>
      <FormatList>
        <Format current="1">image/gif</Format>
        <Format>image/png</Format>
        <Format>image/jpeg</Format>
        <Format>image/wbmp</Format>
      </FormatList>
    </Layer>
    <Layer queryable="0" hidden="1">
      <Server service="WMS" version="1.1.0" title="Roads">
        <OnlineResource xlink:type="simple" xlink:href="http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?"/>
      </Server>
      <Name>road</Name>
      <Title>Roads</Title>
      <SRS>EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326 EPSG:42304</SRS>
      <FormatList>
        <Format current="1">image/gif</Format>
        <Format>image/png</Format>
        <Format>image/jpeg</Format>
        <Format>image/wbmp</Format>
      </FormatList>
    </Layer>
    <Layer queryable="0" hidden="0">
      <Server service="WMS" version="1.1.0" title="Cities">
        <OnlineResource xlink:type="simple" xlink:href="http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?"/>
      </Server>
      <Name>popplace</Name>
      <Title>Cities</Title>
      <SRS>EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326 EPSG:42304</SRS>
      <FormatList>
        <Format current="1">image/gif</Format>
        <Format>image/png</Format>
        <Format>image/jpeg</Format>
        <Format>image/wbmp</Format>
      </FormatList>
    </Layer>
    <Layer queryable="0" hidden="1">
      <Server service="WMS" version="1.1.0" title="Grid">
        <OnlineResource xlink:type="simple" xlink:href="http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?"/>
      </Server>
      <Name>grid</Name>
      <Title>Grid</Title>
      <SRS>EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326 EPSG:42304</SRS>
      <FormatList>
        <Format current="1">image/gif</Format>
        <Format>image/png</Format>
        <Format>image/jpeg</Format>
        <Format>image/wbmp</Format>
      </FormatList>
    </Layer>
  </LayerList>
</ViewContext>