Project

General

Profile

Revision 3064

Added by perry about 14 years ago

Removed most (all?) of the deprecated spatial metacat code from head

View differences:

src/spatial/rendering/mapbuilder/template_metacat.xml
1
<?xml version="1.0" encoding="utf-8" standalone="no"?>
2
<!-- $Id$ -->
3
<gml:featureMember xmlns:topp="http://www.openplans.org/topp" xmlns:gml="http://www.opengis.net/gml">
4
  <topp:metacat_testdata>
5
    <topp:the_geom>
6
          <gml:Point srsName="epsg:4326">
7
            <gml:coordinates decimal="." cs="," ts=" "></gml:coordinates>
8
          </gml:Point>
9
    </topp:the_geom>
10
    <topp:ID></topp:ID>
11
    <topp:url></topp:url>
12
  </topp:metacat_testdata>
13
</gml:featureMember>
14 0

  
src/spatial/rendering/mapbuilder/index.html
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
2

  
3

  
4
<html>
5
<head>
6
<title>Metacat Spatial Option Demo</title>
7

  
8

  
9
<link rel="stylesheet" href="../../../../style.css" type="text/css">
10
<link rel="stylesheet" href="../../lib/skin/default/html.css" type="text/css">
11

  
12
<link href="./knb/style/skins/knb/knb.css" type="text/css" rel="stylesheet">
13
<script src="./knb/style/skins/knb/knb.js" type="text/JavaScript" language="Javascript"></script>
14
<script src="./knb/style/common/branding.js" type="text/JavaScript" language="Javascript"></script><script language="JavaScript">
15
          function submitform(action,form_ref) {
16
            form_ref.action.value=action;
17
            form_ref.sessionid.value="";
18
            form_ref.qformat.value="knb";
19
            form_ref.submit();
20
          }
21
</script>
22

  
23
<script type="text/javascript">
24
      // URL of Mapbuilder configuration file.
25
      var mbConfigUrl='config.xml';
26
    </script>
27
<script type="text/javascript" src="../../lib/Mapbuilder.js"></script>
28
</head>
29

  
30
<!--
31
 <body onload="document.location='../../../wms/GetCapabilities'">
32
 -->
33
<body onload="mbDoLoad()">
34
<!-- Layout mapbuilder widgets and HTML -->
35
<h1>Metacat Spatial Option Demo </h1>
36

  
37
<table width="100" border="0">
38
	<tr>
39
		<td  valign="top">
40
    <table border="0">
41
      <tr> <td id="locatorMap"/> </tr>
42
      <tr> <td id="mainButtonBar" />  </tr>
43
      <tr> <td id="legend" valign="top"/> </tr> 
44
      <tr> <td colspan="3" id="featureList" /> </tr>
45
      <tr><td> 
46
      <br>
47
      <br>
48
      Upload a Spatial EML Document:
49

  
50

  
51
      <form action="http://sulphur.homelinux.com:7000/cgs/metacat_spatialresolver.jsp" enctype="multipart/form-data" method="post">
52
      <input name="file" type="file">
53
      <input type="submit" value="upload EML"> 
54
      </form>
55
      <br>
56
      * A Spatial EML Document describes and includes a spatial dataset (eg, a .shp or .dxf file). The 
57
      EML must reference the spatial dataset as a file(s).  The spatial data file(s) and the EML that references it must be combined in 
58
      a standard Zip file for uploading.
59
      </td></tr>
60
    </table>
61
		</td>
62
    <td rowspan="2" valign="top" />
63
		<table border="0">
64
			<tr> <!--
65
				<td align="left" id="mainButtonBar" />
66
				<td align="right" id="cursorTrack" />
67
			--> </tr>
68
			<tr>
69
				<td colspan="2" id="mainMapPane" style="background-color: white;" />
70
			</tr>
71
			<tr align="right">
72

  
73
        <table border="0" width="600">
74
          <tr>
75
            <td align="center" id="mapScaleText"/>
76
				    <td colspan="1"></td>
77
            <td align="center" id="cursorTrack" />
78
          </tr>
79
        </table>
80
        <!-- description and use documentation -->
81
        <table width="600">
82
          <tr><td> This is a demonstration of the Metacat Spatial Option (MSO) 
83
          that shows the ability to select Ecological Markup Language (EML) 
84
          documents stored in the Metacat server: (metacat.nceas.ucsb.edu).  
85
          Additionally, the user may choose to select places in the USA - for 
86
          a qualitative sense of where (spatially) the EML documents exist. 
87
          <br><br>
88
          1] to select the EML Document: zoom in, press the blue info 'i' button and point to a red dot.
89
          <br><br>
90
          2] to select a known place: zoom in, press the blue info 'i' button, press the 'circled i' (next to the USA known places layer selector) and then point to a black dot.
91
          <br><br><p>
92
          * Make sure to position the mouse directly over the feature while selecting it.
93
          <br>
94
          * Any of these features can be made selectable by a simple configuration change see: <a href="available_layers.html">selectable layers</a> 
95
          <br>
96
          * EML documents are represented as red dots -- the center of the dot is the geometric center of that EML data package. (a dataset comprising a global 
97
          study will lie at the intersection of the equator and the prime meridian).
98
          
99
          </td> </tr> </table>
100
        
101
			</tr>
102
      
103
      
104
		</table>
105
		</td>
106
	</tr>
107
</table>
108

  
109

  
110
</body>
111
</html>
112 0

  
src/spatial/rendering/mapbuilder/kruger_frame.html
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
2

  
3

  
4
<html>
5
<head>
6
<title>Metacat Spatial Option Demo</title>
7

  
8

  
9
<link rel="stylesheet" href="../../../../style.css" type="text/css">
10
<link rel="stylesheet" href="../../lib/skin/default/html.css" type="text/css">
11

  
12
<link href="./knb/style/skins/knb/knb.css" type="text/css" rel="stylesheet">
13
<script src="./knb/style/skins/knb/knb.js" type="text/JavaScript" language="Javascript"></script>
14
<script src="./knb/style/common/branding.js" type="text/JavaScript" language="Javascript"></script><script language="JavaScript">
15
          function submitform(action,form_ref) {
16
            form_ref.action.value=action;
17
            form_ref.sessionid.value="";
18
            form_ref.qformat.value="knb";
19
            form_ref.submit();
20
          }
21
</script>
22

  
23
<script type="text/javascript">
24
      // URL of Mapbuilder configuration file.
25
      var mbConfigUrl='kruger_frame_config.xml';
26
    </script>
27
<script type="text/javascript" src="../../lib/Mapbuilder.js"></script>
28
</head>
29
<!--
30
 <body onload="document.location='../../../wms/GetCapabilities'">
31
 -->
32
<body onload="mbDoLoad()">
33

  
34
<table border="0">
35
	<tr>
36
    <td rowspan="2" valign="top" />
37
		<table border="0">
38
			<tr> 
39
			</tr>
40
			<tr>
41
				<td colspan="2" id="mainMapPane" style="background-color: white;" />
42
			</tr>
43
			<tr align="right">
44

  
45
        <table border="0">
46
          <tr>
47
            <!--<td align="center" id="mapScaleText"/>
48
				    <td colspan="1"></td>
49
            <td align="center" id="cursorTrack" />-->
50
          </tr>
51
      			<tr> <td id="locatorMap" style="display:none"/> </tr>
52
      			<tr> <td id="mainButtonBar" />  </tr>
53
      			<tr> <td id="legend" valign="top"/> </tr> 
54
      			<tr> <td colspan="3" id="featureList" /> </tr>
55
        </table>
56
			</tr>
57
      
58
      
59
		</table>
60
		</td>
61
	</tr>
62
</table>
63

  
64
<div id="debug"></div>
65

  
66
</body>
67
</html>
68 0

  
src/spatial/rendering/mapbuilder/metacat.xml
1
<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
2
<ViewContext version="1.0.0" id="atlas_world"
3
xmlns="http://www.opengis.net/context"
4
xmlns:xlink="http://www.w3.org/1999/xlink"
5
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6
xsi:schemaLocation="http://www.opengis.net/context http://schemas.opengis.net/context/1.0.0/context.xsd">
7

  
8
  <General>
9
    <Window width="600" height="300" />
10
    <BoundingBox SRS="EPSG:4326" minx="-180" miny="-90" maxx="180"
11
    maxy="90" />
12
    <Title>metacat data</Title>
13
    <KeywordList>
14
      <Keyword>metacat</Keyword>
15
      <Keyword>EML</Keyword>
16
    </KeywordList>
17
    <Abstract>Low resolution.</Abstract>
18
  </General>
19
  <LayerList>
20
    
21
    <Layer queryable="0" hidden="0">
22
      <Server service="wms" version="1.1.0" title="wms">
23
        <OnlineResource xlink:type="simple"
24
        xlink:href="http://nebulous.msi.ucsb.edu:8090/cgi-bin/mapserv?map=/home/mapdata/aoc_v3/english/pb_world.map" />
25
      </Server>
26
      <Name>ocean</Name>
27
      <Title>ocean area</Title>
28
      <SRS>EPSG:4326</SRS>
29
      <FormatList>
30
        <Format current="1">image/gif</Format>
31
      </FormatList>
32
    </Layer>
33
    
34
    <Layer queryable="0" hidden="0">
35
          <Server service="wms" version="1.1.0" title="wms">
36
                  <OnlineResource xlink:type="simple" xlink:href="http://atlas.gc.ca/cgi-bin/mapserv?map=/home/mapdata/aoc_v3/english/pb_world.map"/>
37
                        </Server>
38

  
39
                              <Name>land</Name>
40
                                    <Title>land area</Title>
41
                                          <SRS>EPSG:4326</SRS>
42
                                                <FormatList>
43
                                                        <Format current="1">image/gif</Format>
44
                                                              </FormatList>
45
                                                                  </Layer>
46

  
47
    <Layer queryable="0" hidden="0">
48
      <Server service="wms" version="1.1.0" title="wms">
49
        <OnlineResource xlink:type="simple"
50
        xlink:href="http://nebulous.msi.ucsb.edu:8090/cgi-bin/mapserv?map=/home/mapdata/aoc_v3/english/pb_world.map" />
51
      </Server>
52
      <Name>rivers</Name>
53
      <Title>rivers</Title>
54
      <SRS>EPSG:4326</SRS>
55
      <FormatList>
56
        <Format current="1">image/gif</Format>
57
      </FormatList>
58
    </Layer>
59
    
60
    <Layer queryable="0" hidden="0">
61
      <Server service="wms" version="1.1.0" title="wms">
62
        <OnlineResource xlink:type="simple"
63
        xlink:href="http://nebulous.msi.ucsb.edu:8090/cgi-bin/mapserv?map=/home/mapdata/aoc_v3/english/pb_world.map" />
64
      </Server>
65
      <Name>boundaries</Name>
66
      <Title>boundaries</Title>
67
      <SRS>EPSG:4326</SRS>
68
      <FormatList>
69
        <Format current="1">image/gif</Format>
70
      </FormatList>
71
    </Layer>
72
    
73
    <Layer queryable="0" hidden="0">
74
      <Server service="wms" version="1.1.0" title="wms">
75
        <OnlineResource xlink:type="simple"
76
        xlink:href="http://nebulous.msi.ucsb.edu:8090/cgi-bin/mapserv?map=/home/mapdata/aoc_v3/english/pb_world.map" />
77
      </Server>
78
      <Name>country_names</Name>
79
      <Title>country names</Title>
80
      <SRS>EPSG:4326</SRS>
81
      <FormatList>
82
        <Format current="1">image/gif</Format>
83
      </FormatList>
84
    </Layer>
85
    
86
    <Layer queryable="0" hidden="0">
87
      <Server service="wms" version="1.1.0" title="wms">
88
        <OnlineResource xlink:type="simple"
89
        xlink:href="http://nebulous.msi.ucsb.edu:8090/cgi-bin/mapserv?map=/home/mapdata/aoc_v3/english/pb_world.map" />
90
      </Server>
91
      <Name>capital</Name>
92
      <Title>capitals</Title>
93
      <SRS>EPSG:4326</SRS>
94
      <FormatList>
95
        <Format current="1">image/gif</Format>
96
      </FormatList>
97
    </Layer>
98
    
99
    
100
    <Layer queryable="1" hidden="0">
101
      <Server service="OGC:WMS" version="1.1.1"
102
      title="USA known places">
103
        <OnlineResource xlink:type="simple" xlink:href="http://sulphur.homelinux.com:9999/geoserver/wms" />
104
      </Server>
105
      <Name>topp:places</Name>
106
      <Title>USA known places</Title>
107
      <SRS>EPSG:4326</SRS>
108
      <FormatList>
109
        <Format current="1">image/png</Format>
110
      </FormatList>
111
    </Layer>
112
    
113
    <Layer queryable="1" hidden="0">
114
      <Server service="OGC:WMS" version="1.1.1"
115
      title="metacat document data">
116
        <OnlineResource xlink:type="simple"
117
        xlink:href="../../../../wms" />
118
      </Server>
119
      <Name>topp:metacat_testdata</Name>
120
      <Title>metacat documents</Title>
121
      <SRS>EPSG:4326</SRS>
122
      <FormatList>
123
        <Format current="1">image/png</Format>
124
      </FormatList>
125
    </Layer>
126
  
127
  </LayerList>
128
</ViewContext>
129 0

  
src/spatial/rendering/mapbuilder/available_layers_model.xml
1
<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
2
<ViewContext version="1.0.0" id="atlas_world"
3
xmlns="http://www.opengis.net/context"
4
xmlns:xlink="http://www.w3.org/1999/xlink"
5
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6
xsi:schemaLocation="http://www.opengis.net/context http://schemas.opengis.net/context/1.0.0/context.xsd">
7

  
8
  <General>
9
    <Window width="600" height="300" />
10
    <BoundingBox SRS="EPSG:4326" minx="-180" miny="-90" maxx="180"
11
    maxy="90" />
12
    <Title>metacat data</Title>
13
    <KeywordList>
14
      <Keyword>metacat</Keyword>
15
      <Keyword>EML</Keyword>
16
    </KeywordList>
17
    <Abstract>Low resolution.</Abstract>
18
  </General>
19
  <LayerList>
20
    
21
    
22
    <Layer queryable="0" hidden="0">
23
      <Server service="wms" version="1.1.0" title="wms">
24
        <OnlineResource xlink:type="simple"
25
        xlink:href="http://atlas.gc.ca/cgi-bin/mapserv?map=/home/mapdata/aoc_v3/english/pb_world.map" />
26
      </Server>
27
     <Name>ocean</Name>
28
      <Title>ocean area</Title> 
29
      <SRS>EPSG:4326</SRS>
30
      <FormatList>
31
        <Format current="1">image/gif</Format>
32
      </FormatList>
33
    </Layer>
34
    
35
    <Layer queryable="0" hidden="0">
36
    <Server service="wms" version="1.1.0" title="wms">
37
    <OnlineResource xlink:type="simple" xlink:href="http://atlas.gc.ca/cgi-bin/mapserv?map=/home/mapdata/aoc_v3/english/pb_world.map"/>
38
    </Server>
39
    <Name>land</Name>
40
    <Title>land area</Title>
41
    <SRS>EPSG:4326</SRS>
42
    <FormatList>
43
    <Format current="1">image/gif</Format>
44
    </FormatList>
45
    </Layer>
46

  
47

  
48
    <Layer queryable="1" hidden="0">
49
      <Server service="OGC:WMS" version="1.1.1"
50
      title="metacat document data">
51
        <OnlineResource xlink:type="simple"
52
        xlink:href="../../../../wms" />
53
      </Server>
54
      <Name>topp:metacat_testdata</Name>
55
      <Title>metacat documents</Title>
56
      <SRS>EPSG:4326</SRS>
57
      <FormatList>
58
        <Format current="1">image/png</Format>
59
      </FormatList>
60
      
61

  
62
      <!--
63
   
64
    <StyleList>
65
            <Style current="1">
66
                      <Name>0xb8d8f6</Name>
67
                                <Title>0xb8d8f6</Title>
68
                                          <LegendURL width="16" height="16" format="image/gif">
69
                                                     <OnlineResource xlink:type="simple" xlink:href="../../../../wms?VERSION=1.1.1&REQUEST=GetLegendGraphic&LAYER=topp:metacat_testdata&SPATIAL_TYPE=POLYGON&STYLE=0xb8d8f6&FORMAT=image%2Fgif&SIMPLE=TRUE"/>
70
       
71
       </LegendURL>
72
         </Style>
73
       </StyleList>
74
    -->
75
    
76
    </Layer>
77
    <!-- <Layer queryable="1" hidden="0">
78
      <Server service="OGC:WMS" version="1.1.1"
79
      title="terraserver">
80
        <OnlineResource xlink:type="simple"
81
        xlink:href="http://terraserver.microsoft.com/OgcWms.aspx" />
82
      </Server>
83
      <Name>DOQ</Name>
84
      <Title>terraserver</Title>
85
      <SRS>EPSG:4326</SRS>
86
      <FormatList>
87
        <Format current="1">image/jpeg</Format>
88
      </FormatList>
89
    </Layer> -->
90
    
91
    
92
    <Layer queryable="1" hidden="0">
93
      <Server service="OGC:WMS" version="1.1.1"
94
      title="esri places">
95
        <OnlineResource xlink:type="simple" xlink:href="../../../../wms" />
96
      </Server>
97
      <Name>topp:RIVERS</Name>
98
      <Title>esri world rivers</Title>
99
      <SRS>EPSG:4326</SRS>
100
      <FormatList>
101
        <Format current="1">image/png</Format>
102
      </FormatList>
103
    </Layer>
104
    
105
    <Layer queryable="1" hidden="0">
106
      <Server service="OGC:WMS" version="1.1.1"
107
      title="esri places">
108
        <OnlineResource xlink:type="simple" xlink:href="../../../../wms" />
109
      </Server>
110
      <Name>topp:country</Name>
111
      <Title>esri world countries</Title>
112
      <SRS>EPSG:4326</SRS>
113
      <FormatList>
114
        <Format current="1">image/png</Format>
115
      </FormatList>
116
    </Layer>
117

  
118

  
119

  
120
    
121
    <!--Layer queryable="1" hidden="0">
122
      <Server service="OGC:WMS" version="1.1.1"
123
      title="esri places">
124
        <OnlineResource xlink:type="simple" xlink:href="../../../../wms" />
125
      </Server>
126
      <Name>topp:places</Name>
127
      <Title>esri usa places</Title>
128
      <SRS>EPSG:4326</SRS>
129
      <FormatList>
130
        <Format current="1">image/png</Format>
131
      </FormatList>
132
    </Layer-->
133
    
134
    <!--Layer queryable="1" hidden="0">
135
      <Server service="OGC:WMS" version="1.1.1"
136
      title="esri places">
137
        <OnlineResource xlink:type="simple" xlink:href="../../../../wms" />
138
      </Server>
139
      <Name>topp:CITIES</Name>
140
      <Title>esri world cities places</Title>
141
      <SRS>EPSG:4326</SRS>
142
      <FormatList>
143
        <Format current="1">image/png</Format>
144
      </FormatList>
145
    </Layer-->
146

  
147
    <!--Layer queryable="1" hidden="0">
148
      <Server service="OGC:WMS" version="1.1.1"
149
      title="esri places">
150
        <OnlineResource xlink:type="simple" xlink:href="../../../../wms" />
151
      </Server>
152
      <Name>topp:latlong</Name>
153
      <Title>esri world latlong</Title>
154
      <SRS>EPSG:4326</SRS>
155
      <FormatList>
156
        <Format current="1">image/png</Format>
157
      </FormatList>
158
    </Layer-->
159

  
160
    
161
  </LayerList>
162
</ViewContext>
163 0

  
src/spatial/rendering/mapbuilder/africa_frame_model.xml
1
<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
2
<ViewContext version="1.0.0" id="atlas_world"
3
xmlns="http://www.opengis.net/context"
4
xmlns:xlink="http://www.w3.org/1999/xlink"
5
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6
xsi:schemaLocation="http://www.opengis.net/context http://schemas.opengis.net/context/1.0.0/context.xsd">
7
  <General>
8
    <Window width="250" height="375" />
9
    <BoundingBox SRS="EPSG:4326" minx="30" miny="-26.5" maxx="33" maxy="-21.5" />
10
    <Title>metacat data</Title>
11
    <KeywordList>
12
      <Keyword>metacat</Keyword>
13
      <Keyword>EML</Keyword>
14
    </KeywordList>
15
    <Abstract>Low resolution.</Abstract>
16
  </General>
17
  <LayerList>
18
    
19
    <Layer queryable="0" hidden="0">
20
      <Server service="wms" version="1.1.0" title="wms">
21
        <OnlineResource xlink:type="simple"
22
        xlink:href="http://atlas.gc.ca/cgi-bin/mapserv?map=/home/mapdata/aoc_v3/english/pb_world.map" />
23
      </Server>
24
      <Name>ocean</Name>
25
      <Title>ocean area</Title>
26
      <SRS>EPSG:4326</SRS>
27
      <FormatList>
28
        <Format current="1">image/gif</Format>
29
      </FormatList>
30
    </Layer>
31
    
32
    <Layer queryable="0" hidden="0">
33
    <Server service="wms" version="1.1.0" title="wms">
34
    <OnlineResource xlink:type="simple" xlink:href="http://atlas.gc.ca/cgi-bin/mapserv?map=/home/mapdata/aoc_v3/english/pb_world.map"/>
35
    </Server>
36
    <Name>land</Name>
37
    <Title>land area</Title>
38
    <SRS>EPSG:4326</SRS>
39
    <FormatList>
40
    <Format current="1">image/gif</Format>
41
    </FormatList>
42
    </Layer>
43

  
44
    <Layer queryable="0" hidden="0">
45
    <Server service="wms" version="1.1.0" title="wms">
46
    <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"  xlink:type="simple" xlink:href="http://wms.jpl.nasa.gov/wms.cgi?"/>
47
    </Server>
48
    <Name>global_mosaic</Name> 
49
    <!-- <Name>BMNG</Name> -->
50
    <Title>satellite imagery</Title>
51
    <SRS>EPSG:4326</SRS>
52
    <FormatList>
53
    <Format current="1">image/jpeg</Format>
54
    </FormatList>
55
    </Layer>
56
    
57
	<Layer queryable="1" hidden="0">
58
      <Server service="OGC:WMS" version="1.1.1"
59
      title="Datasets">
60
        <OnlineResource xlink:type="simple"
61
        xlink:href="../../../../wms" />
62
      </Server>
63
      <Name>topp:metacat_testdata</Name>
64
      <Title>datasets</Title>
65
      <SRS>EPSG:4326</SRS>
66
      <FormatList>
67
        <Format current="1">image/png</Format>
68
      </FormatList>
69
      
70

  
71
      <!--
72
   
73
    <StyleList>
74
            <Style current="1">
75
                      <Name>0xb8d8f6</Name>
76
                                <Title>0xb8d8f6</Title>
77
                                          <LegendURL width="16" height="16" format="image/gif">
78
                                                     <OnlineResource xlink:type="simple" xlink:href="../../../../wms?VERSION=1.1.1&REQUEST=GetLegendGraphic&LAYER=topp:metacat_testdata&SPATIAL_TYPE=POLYGON&STYLE=0xb8d8f6&FORMAT=image%2Fgif&SIMPLE=TRUE"/>
79
       
80
       </LegendURL>
81
         </Style>
82
       </StyleList>
83
    -->
84
    
85
    </Layer>
86
   
87
    <Layer queryable="0" hidden="0">
88
      <Server service="OGC:WMS" version="1.1.1"
89
      title="kruger boundary">
90
        <OnlineResource xlink:type="simple" xlink:href="../../../../wms" />
91
      </Server>
92
      <Name>topp:SOILS_VENTER</Name>
93
      <Title>Kruger soils</Title>
94
      <SRS>EPSG:4326</SRS>
95
      <FormatList>
96
        <Format current="1">image/png</Format>
97
      </FormatList>
98
    </Layer>
99

  
100
    <Layer queryable="0" hidden="0">
101
      <Server service="OGC:WMS" version="1.1.1"
102
      title="kruger boundary">
103
        <OnlineResource xlink:type="simple" xlink:href="../../../../wms" />
104
      </Server>
105
      <Name>topp:INFRA_ROADSPUBLIC_VIEW</Name>
106
      <Title>Kruger Park roads</Title>
107
      <SRS>EPSG:4326</SRS>
108
      <FormatList>
109
        <Format current="1">image/png</Format>
110
      </FormatList>
111
    </Layer>
112
	
113
    <Layer queryable="0" hidden="0">
114
      <Server service="OGC:WMS" version="1.1.1"
115
      title="kruger boundary">
116
        <OnlineResource xlink:type="simple" xlink:href="../../../../wms" />
117
      </Server>
118
      <Name>topp:BNDRY_BUSINESSUNITS</Name>
119
      <Title>Kruger Park business units</Title>
120
      <SRS>EPSG:4326</SRS>
121
      <FormatList>
122
        <Format current="1">image/png</Format>
123
      </FormatList>
124
    </Layer>
125
   
126
    
127
    <Layer queryable="0" hidden="0">
128
      <Server service="OGC:WMS" version="1.1.1"
129
      title="kruger boundary">
130
        <OnlineResource xlink:type="simple" xlink:href="../../../../wms" />
131
      </Server>
132
      <Name>topp:BNDRY_KRUGERNP</Name>
133
      <Title>Kruger Park boundaries</Title>
134
      <SRS>EPSG:4326</SRS>
135
      <FormatList>
136
        <Format current="1">image/png</Format>
137
      </FormatList>
138
    </Layer>
139
    
140
   <!-- 
141
    <Layer queryable="0" hidden="1">
142
      <Server service="OGC:WMS" version="1.1.1"
143
      title="esri places">
144
        <OnlineResource xlink:type="simple" xlink:href="../../../../wms" />
145
      </Server>
146
      <Name>topp:RIVERS</Name>
147
      <Title>rivers</Title>
148
      <SRS>EPSG:4326</SRS>
149
      <FormatList>
150
        <Format current="1">image/png</Format>
151
      </FormatList>
152
    </Layer>
153
    -->
154
    
155
    <Layer queryable="0" hidden="1">
156
      <Server service="OGC:WMS" version="1.1.1"
157
      title="esri places">
158
        <OnlineResource xlink:type="simple" xlink:href="../../../../wms" />
159
      </Server>
160
      <Name>topp:country</Name>
161
      <Title>country borders</Title>
162
      <SRS>EPSG:4326</SRS>
163
      <FormatList>
164
        <Format current="1">image/png</Format>
165
      </FormatList>
166
    </Layer>
167
    
168
    <!--Layer queryable="1" hidden="0">
169
      <Server service="OGC:WMS" version="1.1.1"
170
      title="esri places">
171
        <OnlineResource xlink:type="simple" xlink:href="../../../../wms" />
172
      </Server>
173
      <Name>topp:places</Name>
174
      <Title>esri usa places</Title>
175
      <SRS>EPSG:4326</SRS>
176
      <FormatList>
177
        <Format current="1">image/png</Format>
178
      </FormatList>
179
    </Layer-->
180
    
181
    <!--Layer queryable="1" hidden="0">
182
      <Server service="OGC:WMS" version="1.1.1"
183
      title="esri places">
184
        <OnlineResource xlink:type="simple" xlink:href="../../../../wms" />
185
      </Server>
186
      <Name>topp:CITIES</Name>
187
      <Title>esri world cities places</Title>
188
      <SRS>EPSG:4326</SRS>
189
      <FormatList>
190
        <Format current="1">image/png</Format>
191
      </FormatList>
192
    </Layer-->
193

  
194
    <!--Layer queryable="1" hidden="0">
195
      <Server service="OGC:WMS" version="1.1.1"
196
      title="esri places">
197
        <OnlineResource xlink:type="simple" xlink:href="../../../../wms" />
198
      </Server>
199
      <Name>topp:latlong</Name>
200
      <Title>esri world latlong</Title>
201
      <SRS>EPSG:4326</SRS>
202
      <FormatList>
203
        <Format current="1">image/png</Format>
204
      </FormatList>
205
    </Layer-->
206

  
207
    
208
  </LayerList>
209
</ViewContext>
210 0

  
src/spatial/rendering/mapbuilder/world_frame_model.xml
1
<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
2
<ViewContext version="1.0.0" id="atlas_world"
3
xmlns="http://www.opengis.net/context"
4
xmlns:xlink="http://www.w3.org/1999/xlink"
5
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6
xsi:schemaLocation="http://www.opengis.net/context http://schemas.opengis.net/context/1.0.0/context.xsd">
7

  
8
  <General>
9
    <Window width="600" height="300" />
10
    <BoundingBox SRS="EPSG:4326" minx="-180" miny="-90" maxx="180"
11
    maxy="90" />
12
    <Title>metacat data</Title>
13
    <KeywordList>
14
      <Keyword>metacat</Keyword>
15
      <Keyword>EML</Keyword>
16
    </KeywordList>
17
    <Abstract>Low resolution.</Abstract>
18
  </General>
19
  <LayerList>
20
    
21
    
22
    <Layer queryable="0" hidden="0">
23
      <Server service="wms" version="1.1.0" title="wms">
24
        <OnlineResource xlink:type="simple"
25
        xlink:href="http://atlas.gc.ca/cgi-bin/mapserv?map=/home/mapdata/aoc_v3/english/pb_world.map" />
26
      </Server>
27
     <Name>ocean</Name>
28
      <Title>ocean area</Title> 
29
      <SRS>EPSG:4326</SRS>
30
      <FormatList>
31
        <Format current="1">image/gif</Format>
32
      </FormatList>
33
    </Layer>
34
    
35
    <Layer queryable="0" hidden="0">
36
    <Server service="wms" version="1.1.0" title="wms">
37
    <OnlineResource xlink:type="simple" xlink:href="http://atlas.gc.ca/cgi-bin/mapserv?map=/home/mapdata/aoc_v3/english/pb_world.map"/>
38
    </Server>
39
    <Name>land</Name>
40
    <Title>land area</Title>
41
    <SRS>EPSG:4326</SRS>
42
    <FormatList>
43
    <Format current="1">image/gif</Format>
44
    </FormatList>
45
    </Layer>
46

  
47

  
48
    <Layer queryable="1" hidden="0">
49
      <Server service="OGC:WMS" version="1.1.1"
50
      title="metacat document data">
51
        <OnlineResource xlink:type="simple"
52
        xlink:href="../../../../wms" />
53
      </Server>
54
      <Name>topp:metacat_testdata</Name>
55
      <Title>metacat documents</Title>
56
      <SRS>EPSG:4326</SRS>
57
      <FormatList>
58
        <Format current="1">image/png</Format>
59
      </FormatList>
60
      
61

  
62
      <!--
63
   
64
    <StyleList>
65
            <Style current="1">
66
                      <Name>0xb8d8f6</Name>
67
                                <Title>0xb8d8f6</Title>
68
                                          <LegendURL width="16" height="16" format="image/gif">
69
                                                     <OnlineResource xlink:type="simple" xlink:href="../../../../wms?VERSION=1.1.1&REQUEST=GetLegendGraphic&LAYER=topp:metacat_testdata&SPATIAL_TYPE=POLYGON&STYLE=0xb8d8f6&FORMAT=image%2Fgif&SIMPLE=TRUE"/>
70
       
71
       </LegendURL>
72
         </Style>
73
       </StyleList>
74
    -->
75
    
76
    </Layer>
77
    <!-- <Layer queryable="1" hidden="0">
78
      <Server service="OGC:WMS" version="1.1.1"
79
      title="terraserver">
80
        <OnlineResource xlink:type="simple"
81
        xlink:href="http://terraserver.microsoft.com/OgcWms.aspx" />
82
      </Server>
83
      <Name>DOQ</Name>
84
      <Title>terraserver</Title>
85
      <SRS>EPSG:4326</SRS>
86
      <FormatList>
87
        <Format current="1">image/jpeg</Format>
88
      </FormatList>
89
    </Layer> -->
90
    
91
    
92
    <Layer queryable="1" hidden="0">
93
      <Server service="OGC:WMS" version="1.1.1"
94
      title="esri places">
95
        <OnlineResource xlink:type="simple" xlink:href="../../../../wms" />
96
      </Server>
97
      <Name>topp:RIVERS</Name>
98
      <Title>esri world rivers</Title>
99
      <SRS>EPSG:4326</SRS>
100
      <FormatList>
101
        <Format current="1">image/png</Format>
102
      </FormatList>
103
    </Layer>
104
    
105
    <Layer queryable="1" hidden="0">
106
      <Server service="OGC:WMS" version="1.1.1"
107
      title="esri places">
108
        <OnlineResource xlink:type="simple" xlink:href="../../../../wms" />
109
      </Server>
110
      <Name>topp:country</Name>
111
      <Title>esri world countries</Title>
112
      <SRS>EPSG:4326</SRS>
113
      <FormatList>
114
        <Format current="1">image/png</Format>
115
      </FormatList>
116
    </Layer>
117

  
118

  
119

  
120
    
121
    <!--Layer queryable="1" hidden="0">
122
      <Server service="OGC:WMS" version="1.1.1"
123
      title="esri places">
124
        <OnlineResource xlink:type="simple" xlink:href="../../../../wms" />
125
      </Server>
126
      <Name>topp:places</Name>
127
      <Title>esri usa places</Title>
128
      <SRS>EPSG:4326</SRS>
129
      <FormatList>
130
        <Format current="1">image/png</Format>
131
      </FormatList>
132
    </Layer-->
133
    
134
    <!--Layer queryable="1" hidden="0">
135
      <Server service="OGC:WMS" version="1.1.1"
136
      title="esri places">
137
        <OnlineResource xlink:type="simple" xlink:href="../../../../wms" />
138
      </Server>
139
      <Name>topp:CITIES</Name>
140
      <Title>esri world cities places</Title>
141
      <SRS>EPSG:4326</SRS>
142
      <FormatList>
143
        <Format current="1">image/png</Format>
144
      </FormatList>
145
    </Layer-->
146

  
147
    <!--Layer queryable="1" hidden="0">
148
      <Server service="OGC:WMS" version="1.1.1"
149
      title="esri places">
150
        <OnlineResource xlink:type="simple" xlink:href="../../../../wms" />
151
      </Server>
152
      <Name>topp:latlong</Name>
153
      <Title>esri world latlong</Title>
154
      <SRS>EPSG:4326</SRS>
155
      <FormatList>
156
        <Format current="1">image/png</Format>
157
      </FormatList>
158
    </Layer-->
159

  
160
    
161
  </LayerList>
162
</ViewContext>
163 0

  
src/spatial/rendering/mapbuilder/metacat_query_model.xml
1
<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
2
<ViewContext version="1.0.0" id="atlas_world"
3
xmlns="http://www.opengis.net/context"
4
xmlns:xlink="http://www.w3.org/1999/xlink"
5
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6
xsi:schemaLocation="http://www.opengis.net/context http://schemas.opengis.net/context/1.0.0/context.xsd">
7

  
8
  <General>
9
    <Window width="600" height="300" />
10
    <BoundingBox SRS="EPSG:4326" minx="-180" miny="-90" maxx="180"
11
    maxy="90" />
12
    <Title>metacat data</Title>
13
    <KeywordList>
14
      <Keyword>metacat</Keyword>
15
      <Keyword>EML</Keyword>
16
    </KeywordList>
17
    <Abstract>Low resolution.</Abstract>
18
  </General>
19
  <LayerList>
20
    
21

  
22
    <Layer queryable="1" hidden="0">
23
      <Server service="OGC:WMS" version="1.1.1"
24
      title="metacat document data">
25
        <OnlineResource xlink:type="simple"
26
        xlink:href="../../../../wms" />
27
      </Server>
28
      <Name>topp:metacat_query</Name>
29
      <Title>metacat documents returned from metacat query</Title>
30
      <SRS>EPSG:4326</SRS>
31
      <FormatList>
32
        <Format current="1">image/png</Format>
33
      </FormatList>
34
      
35

  
36
      <!--
37
   
38
    <StyleList>
39
            <Style current="1">
40
                      <Name>0xb8d8f6</Name>
41
                                <Title>0xb8d8f6</Title>
42
                                          <LegendURL width="16" height="16" format="image/gif">
43
                                                     <OnlineResource xlink:type="simple" xlink:href="../../../../wms?VERSION=1.1.1&REQUEST=GetLegendGraphic&LAYER=topp:metacat_testdata&SPATIAL_TYPE=POLYGON&STYLE=0xb8d8f6&FORMAT=image%2Fgif&SIMPLE=TRUE"/>
44
       
45
       </LegendURL>
46
         </Style>
47
       </StyleList>
48
    -->
49
    
50
    </Layer>
51
    <!-- <Layer queryable="1" hidden="0">
52
      <Server service="OGC:WMS" version="1.1.1"
53
      title="terraserver">
54
        <OnlineResource xlink:type="simple"
55
        xlink:href="http://terraserver.microsoft.com/OgcWms.aspx" />
56
      </Server>
57
      <Name>DOQ</Name>
58
      <Title>terraserver</Title>
59
      <SRS>EPSG:4326</SRS>
60
      <FormatList>
61
        <Format current="1">image/jpeg</Format>
62
      </FormatList>
63
    </Layer> -->
64
    
65
    
66
    <Layer queryable="1" hidden="0">
67
      <Server service="OGC:WMS" version="1.1.1"
68
      title="esri places">
69
        <OnlineResource xlink:type="simple" xlink:href="../../../../wms" />
70
      </Server>
71
      <Name>topp:RIVERS</Name>
72
      <Title>esri world rivers</Title>
73
      <SRS>EPSG:4326</SRS>
74
      <FormatList>
75
        <Format current="1">image/png</Format>
76
      </FormatList>
77
    </Layer>
78
    
79
    <Layer queryable="1" hidden="0">
80
      <Server service="OGC:WMS" version="1.1.1"
81
      title="esri places">
82
        <OnlineResource xlink:type="simple" xlink:href="../../../../wms" />
83
      </Server>
84
      <Name>topp:country</Name>
85
      <Title>esri world countries</Title>
86
      <SRS>EPSG:4326</SRS>
87
      <FormatList>
88
        <Format current="1">image/png</Format>
89
      </FormatList>
90
    </Layer>
91
    
92
    <Layer queryable="1" hidden="0">
93
      <Server service="OGC:WMS" version="1.1.1"
94
      title="esri places">
95
        <OnlineResource xlink:type="simple" xlink:href="../../../../wms" />
96
      </Server>
97
      <Name>topp:places</Name>
98
      <Title>esri usa places</Title>
99
      <SRS>EPSG:4326</SRS>
100
      <FormatList>
101
        <Format current="1">image/png</Format>
102
      </FormatList>
103
    </Layer>
104
    
105
    <Layer queryable="1" hidden="0">
106
      <Server service="OGC:WMS" version="1.1.1"
107
      title="esri places">
108
        <OnlineResource xlink:type="simple" xlink:href="../../../../wms" />
109
      </Server>
110
      <Name>topp:CITIES</Name>
111
      <Title>esri world cities places</Title>
112
      <SRS>EPSG:4326</SRS>
113
      <FormatList>
114
        <Format current="1">image/png</Format>
115
      </FormatList>
116
    </Layer>
117

  
118
    <Layer queryable="1" hidden="0">
119
      <Server service="OGC:WMS" version="1.1.1"
120
      title="esri places">
121
        <OnlineResource xlink:type="simple" xlink:href="../../../../wms" />
122
      </Server>
123
      <Name>topp:latlong</Name>
124
      <Title>esri world latlong</Title>
125
      <SRS>EPSG:4326</SRS>
126
      <FormatList>
127
        <Format current="1">image/png</Format>
128
      </FormatList>
129
    </Layer>
130

  
131
    
132
  </LayerList>
133
</ViewContext>
134 0

  
src/spatial/rendering/mapbuilder/africa_frame_config.xml
1
<?xml version="1.0" encoding="utf-8" standalone="no"?>
2
<MapbuilderConfig version="0.2.1" id="referenceTemplate" xmlns="http://mapbuilder.sourceforge.net/mapbuilder" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://mapbuilder.sourceforge.net/mapbuilder ../../mapbuilder/lib/schemas/config.xsd">
3
  <!--
4
    Description: This configuration file determines what components from the
5
                 Mapbuilder library are to be included in a Main Mapbuilder web
6
                 page.
7
    Licence:     GPL as per: http://www.gnu.org/copyleft/gpl.html 
8

  
9
    $Id$
10
  -->
11
  <!--
12
    All static images should be relative to this URL.
13
    This dir is relative the dir of the main html file.
14
  -->
15
  <models>
16
    <Context id="mainMap">
17
      <defaultModelUrl>africa_frame_model.xml</defaultModelUrl>
18
      <widgets>
19
        <MapPane id="mainMapWidget">
20
          <htmlTagId>mainMapPane</htmlTagId>
21
          <mapContainerId>mainMapContainer</mapContainerId>
22
        </MapPane>
23
        <AoiBoxWZ id="aoiBox2">
24
          <htmlTagId>mainMapPane</htmlTagId>
25
          <stylesheet>../../lib/widget/GmlRenderer.xsl</stylesheet>
26
          <lineColor>#FF0000</lineColor>
27
          <lineWidth>1</lineWidth>
28
          <crossSize>15</crossSize>
29
          <mapContainerId>mainMapContainer</mapContainerId>
30
        </AoiBoxWZ>
31
        <CursorTrack id="cursorTrack">
32
          <mouseHandler>mainMap</mouseHandler>
33
        </CursorTrack>
34
        <Legend id="legend">
35
        </Legend>
36
        <MapScaleText id="mapScaleText">
37
        </MapScaleText>
38
      </widgets>
39
      <tools>
40
        <AoiMouseHandler id="mainAoi"/>
41
        <DragPanHandler id="mainDragPan">
42
          <enabled>false</enabled>
43
        </DragPanHandler>
44
        <MouseClickHandler id="mainMouseClick"/>
45
      </tools>
46
    </Context>
47
    
48
    <Context id="locator">
49
      <defaultModelUrl>africa_frame_model.xml</defaultModelUrl>
50
      <widgets>
51
        <MapPane id="locatorWidget">
52
          <htmlTagId>locatorMap</htmlTagId>
53
          <targetModel>mainMap</targetModel>
54
          <mapContainerId>locatorContainer</mapContainerId>
55
          <fixedWidth>180</fixedWidth>
56
        </MapPane>
57
        <AoiBoxWZ id="aoiBox2">
58
          <htmlTagId>locatorMap</htmlTagId>
59
          <stylesheet>../../lib/widget/GmlRenderer.xsl</stylesheet>
60
          <lineColor>#FF0000</lineColor>
61
          <lineWidth>1</lineWidth>
62
          <crossSize>15</crossSize>
63
          <mapContainerId>locatorContainer</mapContainerId>
64
        </AoiBoxWZ>
65
      </widgets>
66
      <tools>
67
        <AoiMouseHandler id="locatorAoi"/>
68
        <ZoomToAoi id="locatorZoomToAoi">
69
          <targetModel>mainMap</targetModel>
70
        </ZoomToAoi>
71
      </tools>
72
    </Context>
73

  
74
    <Transaction id="transaction">
75
      <widgets>
76
        <TransactionResponse id="transactionResponse">
77
        </TransactionResponse>
78
      </widgets>
79
    </Transaction>
80
    <FeatureCollection id="featureCollection">
81
      <namespace>xmlns:gml='http://www.opengis.net/gml' xmlns:wfs='http://www.opengis.net/wfs' xmlns:topp='http://www.openplans.org/topp'</namespace>
82
      <widgets>
83
        <GmlRendererWZ id="testGmlRenderer">
84
          <htmlTagId>mainMapPane</htmlTagId>
85
          <targetModel>mainMap</targetModel>
86
          <mapContainerId>mainMapContainer</mapContainerId>
87
          <lineColor>#FF0000</lineColor>
88
          <lineWidth>1</lineWidth>
89
          <pointDiameter>10</pointDiameter>
90
        </GmlRendererWZ>
91
        <FeatureList id="featureList">
92
        </FeatureList>
93
      </widgets>
94
    </FeatureCollection>
95
  </models>
96
  <widgets>
97
    <ZoomIn id="zoomIn">
98
      <buttonBar>mainButtonBar</buttonBar>
99
      <targetModel>mainMap</targetModel>
100
      <mouseHandler>mainAoi</mouseHandler>
101
      <class>RadioButton</class>
102
      <selected>true</selected>
103
      <enabledSrc>/images/ZoomInEnable.gif</enabledSrc>
104
      <disabledSrc>/images/ZoomInDisable.gif</disabledSrc>
105
      <tooltip xml:lang="en">click map or drag to zoom in</tooltip>
106
      <!--tooltip xml:lang="fr">cliquer et faire glisser la souris pour agrandir</tooltip-->
107
    </ZoomIn>
108
    <ZoomOut id="zoomOut">
109
      <buttonBar>mainButtonBar</buttonBar>
110
      <targetModel>mainMap</targetModel>
111
      <mouseHandler>mainAoi</mouseHandler>
112
      <class>RadioButton</class>
113
      <enabledSrc>/images/ZoomOutEnable.gif</enabledSrc>
114
      <disabledSrc>/images/ZoomOutDisable.gif</disabledSrc>
115
      <tooltip xml:lang="en">click map to zoom out</tooltip>
116
      <!--tooltip xml:lang="fr">cliquer pour rée</tooltip-->
117
    </ZoomOut>
118
    <DragPan id="dragPan">
119
      <buttonBar>mainButtonBar</buttonBar>
120
      <targetModel>mainMap</targetModel>
121
      <mouseHandler>mainDragPan</mouseHandler>
122
      <class>RadioButton</class>
123
      <enabledSrc>/images/PanEnable.gif</enabledSrc>
124
      <disabledSrc>/images/PanDisable.gif</disabledSrc>
125
      <tooltip xml:lang="en">click and drag to pan</tooltip>
126
      <!--tooltip xml:lang="fr">cliquer et faire glisser la souris pour voir un autre parti de la carte</tooltip-->
127
    </DragPan>
128
    <Reset id="reset">
129
      <buttonBar>mainButtonBar</buttonBar>
130
      <targetModel>mainMap</targetModel>
131
      <class>Button</class>
132
      <disabledSrc>/images/ResetExtentDisable.gif</disabledSrc>
133
      <tooltip xml:lang="en">reset the map to full extent</tooltip>
134
      <!--tooltip xml:lang="fr">redonner la carte ses dimensions complèts</tooltip-->
135
    </Reset>
136

  
137
	<!--
138
    <EditPoint id="editPoint">
139
      <buttonBar>mainButtonBar</buttonBar>
140
      <mouseHandler>mainMouseClick</mouseHandler>
141
      <class>RadioButton</class>
142
      <enabledSrc>/images/EditPointEnable.gif</enabledSrc>
143
      <disabledSrc>/images/EditPointDisable.gif</disabledSrc>
144
      <tooltip xml:lang="en">click on map to create a point feature</tooltip>
145
      <tooltip xml:lang="fr">click on map to create a point feature</tooltip>
146
      <targetModel>featureCollection</targetModel>
147
      <transactionResponseModel>transaction</transactionResponseModel>
148
      <webServiceUrl>../../../../wfs</webServiceUrl>
149
      <featureXpath>/gml:featureMember/topp:metacat_testdata/topp:the_geom/gml:Point/gml:coordinates</featureXpath>
150
      <featureXpath>/gml:featureMember/topp:metacat_testdata/topp:ID</featureXpath>
151
      <defaultModelUrl>template_metacat.xml</defaultModelUrl>
152
      <targetContext>mainMap</targetContext>
153
    </EditPoint>
154
    -->
155

  
156
    <GetFeatureInfo id="getFeatureInfo">
157
      <buttonBar>mainButtonBar</buttonBar>
158
       <targetModel>mainMap</targetModel>
159
     <!-- <targetModel>featureCollection</targetModel> -->
160
      <context>mainMap</context>
161
      <!-- <mouseHandler>mainMouseClick</mouseHandler> -->
162
       <mouseHandler>mainAoi</mouseHandler>
163
      <!-- <mouseHandler>mainAoi</mouseHandler> -->
164
      <class>RadioButton</class>
165
    <enabledSrc>/images/QueryEnable.gif</enabledSrc>
166
    <disabledSrc>/images/QueryDisable.gif</disabledSrc>
167
	  <tooltip xml:lang="en">select single dataset</tooltip>
168
    </GetFeatureInfo>
169
  <!--SetAoi id="setAoi">
170
  <buttonBar>mainButtonBar</buttonBar>
171
  <targetModel>mainMap</targetModel>
172
  <mouseHandler>mainAoi</mouseHandler>
173
  <class>RadioButton</class>
174
  <enabledSrc>/images/SetAoiEnable.gif</enabledSrc>
175
  <disabledSrc>/images/SetAoiDisable.gif</disabledSrc>
176
  </SetAoi-->
177

  
178
  <AoiMetacatQuery id="aoiMetacatQuery">
179
	  <buttonBar>mainButtonBar</buttonBar>
180
	  <targetModel>mainMap</targetModel>
181
	  <mouseHandler>mainAoi</mouseHandler>
182
	  <class>RadioButton</class>
183
	  <enabledSrc>/images/SetAoiEnable.gif</enabledSrc>
184
	  <disabledSrc>/images/SetAoiDisable.gif</disabledSrc>
185
	  <tooltip xml:lang="en">select multiple datasets</tooltip>
186
  </AoiMetacatQuery>
187
  
188
  </widgets>
189
  <skinDir>../../lib/skin/default</skinDir>
190
  <!-- Url of LOCAL redirection script, required to access external URLs -->
191
  <proxyUrl>../../proxy.jsp</proxyUrl>
192
  <!-- 
193
  <serializeUrl>../../writeXml</serializeUrl>
194
   -->
195
</MapbuilderConfig>
196

  
197 0

  
src/spatial/rendering/mapbuilder/available_layers_config.xml
1
<?xml version="1.0" encoding="utf-8" standalone="no"?>
2
<MapbuilderConfig version="0.2.1" id="referenceTemplate" xmlns="http://mapbuilder.sourceforge.net/mapbuilder" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://mapbuilder.sourceforge.net/mapbuilder ../../mapbuilder/lib/schemas/config.xsd">
3
  <!--
4
    Description: This configuration file determines what components from the
5
                 Mapbuilder library are to be included in a Main Mapbuilder web
6
                 page.
7
    Licence:     GPL as per: http://www.gnu.org/copyleft/gpl.html 
8

  
9
    $Id$
10
  -->
11
  <!--
12
    All static images should be relative to this URL.
13
    This dir is relative the dir of the main html file.
14
  -->
15
  <models>
16
    <Context id="mainMap">
17
      <defaultModelUrl>available_layers_model.xml</defaultModelUrl>
18
      <widgets>
19
        <MapPane id="mainMapWidget">
20
          <htmlTagId>mainMapPane</htmlTagId>
21
          <mapContainerId>mainMapContainer</mapContainerId>
22
        </MapPane>
23
        <AoiBoxWZ id="aoiBox2">
24
          <htmlTagId>mainMapPane</htmlTagId>
25
          <stylesheet>../../lib/widget/GmlRenderer.xsl</stylesheet>
26
          <lineColor>#FF0000</lineColor>
27
          <lineWidth>1</lineWidth>
28
          <crossSize>15</crossSize>
29
          <mapContainerId>mainMapContainer</mapContainerId>
30
        </AoiBoxWZ>
31
        <CursorTrack id="cursorTrack">
32
          <mouseHandler>mainMap</mouseHandler>
33
        </CursorTrack>
34
        <Legend id="legend">
35
        </Legend>
36
        <MapScaleText id="mapScaleText">
37
        </MapScaleText>
38
      </widgets>
39
      <tools>
40
        <AoiMouseHandler id="mainAoi"/>
41
        <DragPanHandler id="mainDragPan">
42
          <enabled>false</enabled>
43
        </DragPanHandler>
44
        <MouseClickHandler id="mainMouseClick"/>
45
      </tools>
46
    </Context>
47
    
48
    <Context id="locator">
49
      <defaultModelUrl>available_layers_model.xml</defaultModelUrl>
50
      <widgets>
51
        <MapPane id="locatorWidget">
52
          <htmlTagId>locatorMap</htmlTagId>
53
          <targetModel>mainMap</targetModel>
54
          <mapContainerId>locatorContainer</mapContainerId>
55
          <fixedWidth>180</fixedWidth>
56
        </MapPane>
57
        <AoiBoxWZ id="aoiBox2">
58
          <htmlTagId>locatorMap</htmlTagId>
59
          <stylesheet>../../lib/widget/GmlRenderer.xsl</stylesheet>
60
          <lineColor>#FF0000</lineColor>
61
          <lineWidth>1</lineWidth>
62
          <crossSize>15</crossSize>
63
          <mapContainerId>locatorContainer</mapContainerId>
64
        </AoiBoxWZ>
65
      </widgets>
66
      <tools>
67
        <AoiMouseHandler id="locatorAoi"/>
68
        <ZoomToAoi id="locatorZoomToAoi">
69
          <targetModel>mainMap</targetModel>
70
        </ZoomToAoi>
71
      </tools>
72
    </Context>
73

  
74
    <Transaction id="transaction">
75
      <widgets>
76
        <TransactionResponse id="transactionResponse">
77
        </TransactionResponse>
78
      </widgets>
79
    </Transaction>
80
    <FeatureCollection id="featureCollection">
81
      <namespace>xmlns:gml='http://www.opengis.net/gml' xmlns:wfs='http://www.opengis.net/wfs' xmlns:topp='http://www.openplans.org/topp'</namespace>
82
      <widgets>
83
        <GmlRendererWZ id="testGmlRenderer">
84
          <htmlTagId>mainMapPane</htmlTagId>
85
          <targetModel>mainMap</targetModel>
86
          <mapContainerId>mainMapContainer</mapContainerId>
87
          <lineColor>#FF0000</lineColor>
88
          <lineWidth>1</lineWidth>
89
          <pointDiameter>10</pointDiameter>
90
        </GmlRendererWZ>
91
        <FeatureList id="featureList">
92
        </FeatureList>
93
      </widgets>
94
    </FeatureCollection>
95
  </models>
96
  <widgets>
97
    <ZoomIn id="zoomIn">
98
      <buttonBar>mainButtonBar</buttonBar>
99
      <targetModel>mainMap</targetModel>
100
      <mouseHandler>mainAoi</mouseHandler>
101
      <class>RadioButton</class>
102
      <selected>true</selected>
103
      <enabledSrc>/images/ZoomInEnable.gif</enabledSrc>
104
      <disabledSrc>/images/ZoomInDisable.gif</disabledSrc>
105
      <tooltip xml:lang="en">click and drag to zoom in</tooltip>
106
      <tooltip xml:lang="fr">cliquer et faire glisser la souris pour agrandir</tooltip>
107
    </ZoomIn>
108
    <ZoomOut id="zoomOut">
109
      <buttonBar>mainButtonBar</buttonBar>
110
      <targetModel>mainMap</targetModel>
111
      <mouseHandler>mainAoi</mouseHandler>
112
      <class>RadioButton</class>
113
      <enabledSrc>/images/ZoomOutEnable.gif</enabledSrc>
114
      <disabledSrc>/images/ZoomOutDisable.gif</disabledSrc>
115
      <tooltip xml:lang="en">click to zoom out</tooltip>
116
      <tooltip xml:lang="fr">cliquer pour rée</tooltip>
117
    </ZoomOut>
118
    <DragPan id="dragPan">
119
      <buttonBar>mainButtonBar</buttonBar>
120
      <targetModel>mainMap</targetModel>
121
      <mouseHandler>mainDragPan</mouseHandler>
122
      <class>RadioButton</class>
123
      <enabledSrc>/images/PanEnable.gif</enabledSrc>
124
      <disabledSrc>/images/PanDisable.gif</disabledSrc>
125
      <tooltip xml:lang="en">click and drag to pan</tooltip>
126
      <tooltip xml:lang="fr">cliquer et faire glisser la souris pour voir un autre parti de la carte</tooltip>
127
    </DragPan>
128
    <Reset id="reset">
129
      <buttonBar>mainButtonBar</buttonBar>
130
      <targetModel>mainMap</targetModel>
131
      <class>Button</class>
132
      <disabledSrc>/images/ResetExtentDisable.gif</disabledSrc>
133
      <tooltip xml:lang="en">reset the map to full extent</tooltip>
134
      <tooltip xml:lang="fr">redonner la carte ses dimensions complèts</tooltip>
135
    </Reset>
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff