Project

General

Profile

« Previous | Next » 

Revision 2933

Added by harris over 18 years ago

This is the internal frame for the africa view.

View differences:

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 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>
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
    </GetFeatureInfo>
168
  <!--SetAoi id="setAoi">
169
  <buttonBar>mainButtonBar</buttonBar>
170
  <targetModel>mainMap</targetModel>
171
  <mouseHandler>mainAoi</mouseHandler>
172
  <class>RadioButton</class>
173
  <enabledSrc>/images/SetAoiEnable.gif</enabledSrc>
174
  <disabledSrc>/images/SetAoiDisable.gif</disabledSrc>
175
  </SetAoi-->
176

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

  
0 196

  
src/spatial/rendering/mapbuilder/africa_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='africa_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>
0 68

  
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="400" height="400" />
9
    <BoundingBox SRS="EPSG:4326" minx="29" miny="-26.5" maxx="34" 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>jpl data</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="1" 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="1" 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="1" 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
    <Layer queryable="1" hidden="0">
127
      <Server service="OGC:WMS" version="1.1.1"
128
      title="kruger boundary">
129
        <OnlineResource xlink:type="simple" xlink:href="../../../../wms" />
130
      </Server>
131
      <Name>topp:BNDRY_KRUGERNP</Name>
132
      <Title>Kruger Park Boundaries</Title>
133
      <SRS>EPSG:4326</SRS>
134
      <FormatList>
135
        <Format current="1">image/png</Format>
136
      </FormatList>
137
    </Layer>
138
    
139
    
140
    <Layer queryable="0" hidden="1">
141
      <Server service="OGC:WMS" version="1.1.1"
142
      title="esri places">
143
        <OnlineResource xlink:type="simple" xlink:href="../../../../wms" />
144
      </Server>
145
      <Name>topp:RIVERS</Name>
146
      <Title>rivers</Title>
147
      <SRS>EPSG:4326</SRS>
148
      <FormatList>
149
        <Format current="1">image/png</Format>
150
      </FormatList>
151
    </Layer>
152
    
153
    <Layer queryable="0" hidden="1">
154
      <Server service="OGC:WMS" version="1.1.1"
155
      title="esri places">
156
        <OnlineResource xlink:type="simple" xlink:href="../../../../wms" />
157
      </Server>
158
      <Name>topp:country</Name>
159
      <Title>countries</Title>
160
      <SRS>EPSG:4326</SRS>
161
      <FormatList>
162
        <Format current="1">image/png</Format>
163
      </FormatList>
164
    </Layer>
165
    
166
    <!--Layer queryable="1" hidden="0">
167
      <Server service="OGC:WMS" version="1.1.1"
168
      title="esri places">
169
        <OnlineResource xlink:type="simple" xlink:href="../../../../wms" />
170
      </Server>
171
      <Name>topp:places</Name>
172
      <Title>esri usa places</Title>
173
      <SRS>EPSG:4326</SRS>
174
      <FormatList>
175
        <Format current="1">image/png</Format>
176
      </FormatList>
177
    </Layer-->
178
    
179
    <!--Layer queryable="1" hidden="0">
180
      <Server service="OGC:WMS" version="1.1.1"
181
      title="esri places">
182
        <OnlineResource xlink:type="simple" xlink:href="../../../../wms" />
183
      </Server>
184
      <Name>topp:CITIES</Name>
185
      <Title>esri world cities places</Title>
186
      <SRS>EPSG:4326</SRS>
187
      <FormatList>
188
        <Format current="1">image/png</Format>
189
      </FormatList>
190
    </Layer-->
191

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

  
205
    
206
  </LayerList>
207
</ViewContext>
0 208

  

Also available in: Unified diff