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
				<MapScaleBar id="scalebar">
32
        	<!--all of these properties are optional--> 
33
        	<!--displaySystem>english</displaySystem--> 
34
        	<displaySystem>metric</displaySystem> 
35
          <minWidth>100</minWidth>
36
          <maxWidth>300</maxWidth>
37
        	<divisions>4</divisions>
38
          <subdivisions>2</subdivisions>
39
        	<showMinorMeasures>false</showMinorMeasures>
40
          <abbreviateLabel>true</abbreviateLabel>
41
          <singleLine>false</singleLine>
42
          <align>left</align>  <!-- left, center, or right -->
43
        </MapScaleBar>
44
				<Loading id="loading"/>
45
        <Loading2 id="loading2">
46
					<mapContainerId>mainMapContainer</mapContainerId>
47
        </Loading2>
48
				<AoiBoxDHTML id="aoiBoxMain">
49
					<htmlTagId>mainMapPane</htmlTagId>
50
					<mapContainerId>mainMapContainer</mapContainerId>
51
					<lineColor>#FF0000</lineColor>
52
					<lineWidth>1</lineWidth>
53
					<crossSize>15</crossSize>
54
				</AoiBoxDHTML>
55
				<CursorTrack id="cursorTrack">
56
					<mouseHandler>mainMap</mouseHandler>
57
					<showXY>false</showXY>
58
				</CursorTrack>
59
				<Legend id="legend"/>
60
				<Widget id="abstract">
61
					<stylesheet>../../lib/widget/Abstract.xsl</stylesheet>
62
				</Widget>
63
				<Widget id="mapTitle">
64
					<stylesheet>../../lib/widget/MapTitle.xsl</stylesheet>
65
				</Widget>
66
				<!--AoiForm id="aoiForm"/-->
67
				<MapScaleText id="mapScaleText"/>
68
				<SaveModel id="saveModelWidget">
69
					<htmlTagId>saveModel</htmlTagId>
70
				</SaveModel>
71
				<LayerControl id="layerControl">
72
          <moveUpImage>/images/LayerMoveUpDisable.png</moveUpImage>
73
          <moveDownImage>/images/LayerMoveDownDisable.png</moveDownImage>
74
          <deleteImage>/images/LayerRemoveDisable.png</deleteImage>
75
				</LayerControl>
76
				<!--
77
        <SearchForm id="searchForm">
78
        </SearchForm>
79
        -->
80
			</widgets>
81
			<tools>
82
				<AoiMouseHandler id="mainAoi"/>
83
				<DragPanHandler id="mainDragPan">
84
					<enabled>false</enabled>
85
				</DragPanHandler>
86
				<MouseClickHandler id="mainMouseClick"/>
87
        <History id="extentHistory">
88
          <targetModel>mainMap</targetModel>
89
        </History>
90
			</tools>
91
		</Context>
92

    
93
<!--
94
		<Context id="locator">
95
			<defaultModelUrl>./wmc/modisWorld.xml</defaultModelUrl>
96
			<widgets>
97
				<MapPane id="locatorWidget">
98
					<htmlTagId>locatorMap</htmlTagId>
99
					<mapContainerId>locatorContainer</mapContainerId>
100
					<fixedWidth>180</fixedWidth>
101
					<extraAttributes>false</extraAttributes>
102
				</MapPane>
103
				<AoiBoxDHTML id="aoiBoxLocator">
104
					<htmlTagId>locatorMap</htmlTagId>
105
					<stylesheet>../../lib/widget/GmlRenderer.xsl</stylesheet>
106
					<mapContainerId>locatorContainer</mapContainerId>
107
					<lineColor>#FF0000</lineColor>
108
					<lineWidth>1</lineWidth>
109
					<crossSize>15</crossSize>
110
				</AoiBoxDHTML>
111
				<ModelUrlInput id="urlInput">
112
					<defaultUrl>../data/context/modisWorld.xml</defaultUrl>
113
				</ModelUrlInput>
114
			</widgets>
115
			<tools>
116
				<AoiMouseHandler id="locatorAoi"/>
117
				<ZoomToAoi id="locatorZoomToAoi">
118
					<targetModel>mainMap</targetModel>
119
				</ZoomToAoi>
120
			</tools>
121
		</Context>
122
                -->
123

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