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