Project

General

Profile

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 ../../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:     LGPL as per: hhttp://www.gnu.org/copyleft/lesser.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
		<!--Logger id="eventLogDoc">
17
      <serializeUrl>../../writeXml</serializeUrl>
18
      <widgets>
19
        <Widget id="eventLog">
20
          <stylesheet>../../lib/widget/EventLog.xsl</stylesheet>
21
        </Widget>
22
      </widgets>
23
    </Logger-->
24
		<Context id="mainMap">
25
			<defaultModelUrl>./wmc/demisWorldMap.xml</defaultModelUrl>
26
			<widgets>
27
				<MapPane id="mainMapWidget">
28
					<htmlTagId>mainMapPane</htmlTagId>
29
					<mapContainerId>mainMapContainer</mapContainerId>
30
				</MapPane>
31
				<Loading id="loading"/>
32
                <Loading2 id="loading2">
33
					<mapContainerId>mainMapContainer</mapContainerId>
34
                </Loading2>
35
				<AoiBoxDHTML id="aoiBoxMain">
36
					<htmlTagId>mainMapPane</htmlTagId>
37
					<mapContainerId>mainMapContainer</mapContainerId>
38
					<lineColor>#FF0000</lineColor>
39
					<lineWidth>1</lineWidth>
40
					<crossSize>15</crossSize>
41
				</AoiBoxDHTML>
42
				<!-- <CursorTrack id="cursorTrack">
43
					<mouseHandler>mainMap</mouseHandler>
44
					<showXY>false</showXY>
45
				</CursorTrack> -->
46
				<Legend id="legend"/>
47
				<Widget id="abstract">
48
					<stylesheet>../../lib/widget/Abstract.xsl</stylesheet>
49
				</Widget>
50
				<Widget id="mapTitle">
51
					<stylesheet>../../lib/widget/MapTitle.xsl</stylesheet>
52
				</Widget>
53
				<MapScaleText id="mapScaleText"/>
54
				<SaveModel id="saveModelWidget">
55
					<htmlTagId>saveModel</htmlTagId>
56
				</SaveModel>
57
				<LayerControl id="layerControl">
58
          <moveUpImage>/images/LayerMoveUpDisable.png</moveUpImage>
59
          <moveDownImage>/images/LayerMoveDownDisable.png</moveDownImage>
60
          <deleteImage>/images/LayerRemoveDisable.png</deleteImage>
61
				</LayerControl>
62

    
63
			</widgets>
64
			<tools>
65
				<AoiMouseHandler id="mainAoi"/>
66
				<DragPanHandler id="mainDragPan">
67
					<enabled>false</enabled>
68
				</DragPanHandler>
69
				<MouseClickHandler id="mainMouseClick"/>
70
        <History id="extentHistory">
71
          <targetModel>mainMap</targetModel>
72
        </History>
73
			</tools>
74
		</Context>
75

    
76
		<ContextCollection id="collectionGroup">
77
			<defaultModelUrl>../data/context/demoCollection.xml</defaultModelUrl>
78
			<widgets>
79
				<CollectionList id="collectionList">
80
					<targetModel>mainMap</targetModel>
81
				</CollectionList>
82
			</widgets>
83
		</ContextCollection>
84
		<Model id="locations">
85
			<defaultModelUrl>./locations/Global.xml</defaultModelUrl>
86
			<widgets>
87
				<Locations id="locationsSelect">
88
					<targetModel>mainMap</targetModel>
89
				</Locations>
90
			</widgets>
91
			<tools>
92
				<ZoomToAoi id="locationsZoomToAoi">
93
					<targetModel>mainMap</targetModel>
94
				</ZoomToAoi>
95
			</tools>
96
		</Model>
97
		<Transaction id="transaction">
98
			<widgets>
99
				<TransactionResponse id="transactionResponse">
100
        </TransactionResponse>
101
			</widgets>
102
		</Transaction>
103
    <Model id="featureInfoResponse" template="true">
104
      <namespace>xmlns:gml='http://www.opengis.net/gml' xmlns:wfs='http://www.opengis.net/wfs' xmlns:topp='http://www.openplans.org/topp'</namespace>
105
      <widgets>
106
        <FeatureInfo id="features">
107
          <htmlTagId>featureInfo</htmlTagId>
108
        </FeatureInfo>
109
      </widgets>
110
    </Model>
111
		<FeatureCollection id="featureCollection">
112
			<widgets>
113
				<GmlRendererWZ id="testGmlRenderer">
114
					<htmlTagId>mainMapPane</htmlTagId>
115
					<targetModel>mainMap</targetModel>
116
					<mapContainerId>mainMapContainer</mapContainerId>
117
					<lineColor>#FF0000</lineColor>
118
					<lineWidth>1</lineWidth>
119
					<pointDiameter>10</pointDiameter>
120
				</GmlRendererWZ>
121
			
122
			</widgets>
123
			<namespace>xmlns:gml='http://www.opengis.net/gml' xmlns:wfs='http://www.opengis.net/wfs' xmlns:topp='http://www.openplans.org/topp'</namespace>
124
		</FeatureCollection>
125
		<FeatureCollection id="ntsGml" template="true">
126
			<!--defaultModelUrl>gml/NTSLookup.xml</defaultModelUrl-->
127
			<widgets>
128
				<GmlRendererWZ id="testNTSRenderer">
129
					<htmlTagId>mainMapPane</htmlTagId>
130
					<targetModel>mainMap</targetModel>
131
					<mapContainerId>mainMapContainer</mapContainerId>
132
					<lineColor>#FF00FF</lineColor>
133
					<lineWidth>2</lineWidth>
134
					<pointDiameter>10</pointDiameter>
135
				</GmlRendererWZ>
136
			</widgets>
137
		</FeatureCollection>
138
		<FeatureCollection id="watershedGml">
139
			<!--defaultModelUrl>gml/NTSLookup.xml</defaultModelUrl-->
140
			<widgets>
141
				<GmlRendererWZ id="watershedRenderer">
142
					<htmlTagId>mainMapPane</htmlTagId>
143
					<targetModel>mainMap</targetModel>
144
					<mapContainerId>mainMapContainer</mapContainerId>
145
					<lineColor>#0000FF</lineColor>
146
					<lineWidth>1</lineWidth>
147
					<pointDiameter>10</pointDiameter>
148
				</GmlRendererWZ>
149
			</widgets>
150
		</FeatureCollection>
151
		<!-- example of the point feature renderer
152
    <FeatureCollection id="pointFeatures">
153
      <defaultModelUrl>../data/gml/topp_cities.xml</defaultModelUrl>
154
      <namespace>xmlns:gml='http://www.opengis.net/gml' xmlns:wfs='http://www.opengis.net/wfs' xmlns:topp='http://www.openplans.org/topp'</namespace>
155
      <nodeSelectXpath>/wfs:FeatureCollection/gml:featureMember/topp:tasmania_cities</nodeSelectXpath>
156
      <widgets>
157
        <GmlPointRenderer id="pointRenderer">
158
          <htmlTagId>mainMapPane</htmlTagId>
159
          <mapContainerId>mainMapContainer</mapContainerId>
160
          <normalImage>/images/MarkerA.gif</normalImage>
161
          <highlightImage>/images/MarkerB.gif</highlightImage>
162
        </GmlPointRenderer>
163
      </widgets>
164
    </FeatureCollection>
165
    -->
166
		<WmsCapabilities id="wmsCapTemplate">
167
			<widgets>
168
				<Widget id="loadAllLayers">
169
					<stylesheet>../../lib/widget/SelectAllMapLayers.xsl</stylesheet>
170
				</Widget>
171
				<ModelStatus id="wmsLoadStatus">
172
					<htmlTagId>layerList</htmlTagId>
173
					<outputNodeId>layerListCanvas</outputNodeId>
174
				</ModelStatus>
175
				<Widget id="layerListWidget">
176
					<htmlTagId>layerList</htmlTagId>
177
					<outputNodeId>layerListCanvas</outputNodeId>
178
					<stylesheet>../../lib/widget/SelectMapLayers.xsl</stylesheet>
179
				</Widget>
180
			</widgets>
181
			<tools>
182
				<Caps2Context id="convertCaps">
183
					<targetModel>mainMap</targetModel>
184
				</Caps2Context>
185
        <EditContext id="editContext">
186
          <targetModel>mainMap</targetModel>
187
        </EditContext>
188
			</tools>
189
			<nodeSelectXpath>//Layer</nodeSelectXpath>
190
		</WmsCapabilities>
191
	</models>
192
	<widgets>
193
		<ModelUrlInput id="wmsCapsUrlInput">
194
			<targetModel>wmsCapTemplate</targetModel>
195
			<defaultUrl>http://localhost:8080/geoserver/wms/GetCapabilities</defaultUrl>
196
		</ModelUrlInput>
197
		<WebServiceForm id="ntsLookupForm">
198
			<targetModel>ntsGml</targetModel>
199
			<stylesheet>../../lib/widget/NtsForm.xsl</stylesheet>
200
			<webServiceUrl>http://geoservices.cgdi.ca/NTS/NTSLookup</webServiceUrl>
201
		</WebServiceForm>
202
		<WebServiceForm id="watershedLookupForm">
203
			<htmlTagId>ntsLookupForm</htmlTagId>
204
			<targetModel>watershedGml</targetModel>
205
			<stylesheet>../../lib/widget/CdnWatershedForm.xsl</stylesheet>
206
			<webServiceUrl>http://devgeo.cciw.ca:8080/WatershedLookupServlet/WatershedLookupServlet</webServiceUrl>
207
		</WebServiceForm>
208
    <Back id="back">
209
      <buttonBar>mainButtonBar</buttonBar>
210
			<targetModel>mainMap</targetModel>
211
			<class>Button</class>
212
			<disabledSrc>/images/UndoDisable.png</disabledSrc>
213
    </Back>
214
    <Forward id="forward">
215
      <buttonBar>mainButtonBar</buttonBar>
216
			<targetModel>mainMap</targetModel>
217
			<class>Button</class>
218
			<disabledSrc>/images/RedoDisable.png</disabledSrc>
219
    </Forward>
220
		<ZoomIn id="zoomIn">
221
			<buttonBar>mainButtonBar</buttonBar>
222
			<targetModel>mainMap</targetModel>
223
			<mouseHandler>mainAoi</mouseHandler>
224
			<class>RadioButton</class>
225
			<selected>true</selected>
226
			<enabledSrc>/images/ZoomInEnable.png</enabledSrc>
227
			<disabledSrc>/images/ZoomInDisable.png</disabledSrc>
228
		</ZoomIn>
229
		<ZoomOut id="zoomOut">
230
			<buttonBar>mainButtonBar</buttonBar>
231
			<targetModel>mainMap</targetModel>
232
			<mouseHandler>mainAoi</mouseHandler>
233
			<class>RadioButton</class>
234
			<enabledSrc>/images/ZoomOutEnable.png</enabledSrc>
235
			<disabledSrc>/images/ZoomOutDisable.png</disabledSrc>
236
		</ZoomOut>
237
		<DragPan id="dragPan">
238
			<buttonBar>mainButtonBar</buttonBar>
239
			<targetModel>mainMap</targetModel>
240
			<mouseHandler>mainDragPan</mouseHandler>
241
			<class>RadioButton</class>
242
			<enabledSrc>/images/PanEnable.png</enabledSrc>
243
			<disabledSrc>/images/PanDisable.png</disabledSrc>
244
		</DragPan>
245
		<SetAoi id="setAoi">
246
			<buttonBar>mainButtonBar</buttonBar>
247
			<targetModel>mainMap</targetModel>
248
			<mouseHandler>mainAoi</mouseHandler>
249
			<class>RadioButton</class>
250
			<enabledSrc>/images/SetAoiEnable.png</enabledSrc>
251
			<disabledSrc>/images/SetAoiDisable.png</disabledSrc>
252
		</SetAoi>
253
		<Reset id="reset">
254
			<buttonBar>mainButtonBar</buttonBar>
255
			<targetModel>mainMap</targetModel>
256
			<class>Button</class>
257
			<disabledSrc>/images/ResetExtentDisable.png</disabledSrc>
258
		</Reset>
259
		<GetFeatureInfo id="getFeatureInfo">
260
			<buttonBar>mainButtonBar</buttonBar>
261
			<targetModel>featureInfoResponse</targetModel>
262
			<mouseHandler>mainAoi</mouseHandler>
263
			<class>RadioButton</class>
264
			<enabledSrc>/images/QueryEnable.png</enabledSrc>
265
			<disabledSrc>/images/QueryDisable.png</disabledSrc>
266
			<context>mainMap</context>
267
		</GetFeatureInfo>
268
		<!--EditPoint id="editPoint">
269
			<buttonBar>mainButtonBar</buttonBar>
270
			<targetModel>featureCollection</targetModel>
271
			<mouseHandler>mainMouseClick</mouseHandler>
272
			<class>RadioButton</class>
273
			<enabledSrc>/images/EditPointEnable.png</enabledSrc>
274
			<disabledSrc>/images/EditPointDisable.png</disabledSrc>
275
			<transactionResponseModel>transaction</transactionResponseModel>
276
			<webServiceUrl>http://localhost:8080/geoserver/wfs</webServiceUrl>
277
			<featureXpath>/gml:featureMember/points/_SHAPE_/gml:MultiPoint/gml:pointMember/gml:Point/gml:coordinates</featureXpath>
278
			<defaultModelUrl>../data/gml/defaultAddPoint.xml</defaultModelUrl>
279
			<targetContext>mainMap</targetContext>
280
		</EditPoint-->
281
		<!--EditLine id="editLine">
282
			<buttonBar>mainButtonBar</buttonBar>
283
			<targetModel>featureCollection</targetModel>
284
			<mouseHandler>mainMouseClick</mouseHandler>
285
			<class>RadioButton</class>
286
			<enabledSrc>/images/EditLineEnable.png</enabledSrc>
287
			<disabledSrc>/images/EditLineDisable.png</disabledSrc>
288
			<transactionResponseModel>transaction</transactionResponseModel>
289
			<webServiceUrl>http://localhost:8080/geoserver/wfs</webServiceUrl>
290
			<featureXpath>/gml:featureMember/topp:bc_roads/topp:the_geom/gml:MultiLineString/gml:lineStringMember/gml:LineString/gml:coordinates</featureXpath>
291
			<defaultModelUrl>../data/gml/roads.xml</defaultModelUrl>
292
			<targetContext>mainMap</targetContext>
293
		</EditLine-->
294
		<!-- <Save id="save">
295
			<buttonBar>mainButtonBar</buttonBar>
296
			<targetModel>mainMap</targetModel>
297
			<class>Button</class>
298
			<disabledSrc>/images/SaveDisable.png</disabledSrc>
299
			<popupWindowName>modelXML</popupWindowName>
300
		</Save> -->
301
	</widgets>
302
	<skinDir>../../lib/skin/default</skinDir>
303
	<languages>en,fr,fr-CA</languages>
304
	<widgetTextUrl>widgetText.xml</widgetTextUrl>
305
	<!-- relative to the skinDir + language subdir -->
306
	<!-- example of overriding the server config values -->
307
</MapbuilderConfig>
(4-4/6)