1
|
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
2
|
<!-- edited with XMLSPY v5 U (http://www.xmlspy.com) by Tom Kralidis (NRCAN CCRs) -->
|
3
|
<MapbuilderConfig version="1.0.0" id="contextEditorDemoConfig" 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">
|
4
|
<!--
|
5
|
Description: This configuration file determines what components from the
|
6
|
Mapbuilder library are to be included in a Main Mapbuilder web
|
7
|
page.
|
8
|
Licence: LGPL as per: http://www.gnu.org/copyleft/lesser.html
|
9
|
|
10
|
$Id$
|
11
|
-->
|
12
|
<models>
|
13
|
<Context id="mainMap">
|
14
|
<defaultModelUrl>../data/context/DM_Canada.xml</defaultModelUrl>
|
15
|
<!--defaultModelUrl>../data/context/atlasWorld.xml</defaultModelUrl-->
|
16
|
<widgets>
|
17
|
<MapPane id="mainMapWidget">
|
18
|
<htmlTagId>mainMapPane</htmlTagId>
|
19
|
<mapContainerId>mainMapContainer</mapContainerId>
|
20
|
<loadHidden>false</loadHidden>
|
21
|
</MapPane>
|
22
|
<CursorTrack id="cursorTrack">
|
23
|
<mouseHandler>mainMap</mouseHandler>
|
24
|
</CursorTrack>
|
25
|
<Widget id="mapTitle">
|
26
|
<stylesheet>../../lib/widget/MapTitle.xsl</stylesheet>
|
27
|
</Widget>
|
28
|
<LayerControl id="contextLegend">
|
29
|
<htmlTagId>workspace</htmlTagId>
|
30
|
<outputNodeId>workspaceCanvas</outputNodeId>
|
31
|
<moveUpImage>/images/LayerMoveUpDisable.png</moveUpImage>
|
32
|
<moveDownImage>/images/LayerMoveDownDisable.png</moveDownImage>
|
33
|
<deleteImage>/images/LayerRemoveDisable.png</deleteImage>
|
34
|
</LayerControl>
|
35
|
<OWSCatSearchForm id="owsCatSearchForm">
|
36
|
<htmlTagId>workspace</htmlTagId>
|
37
|
<outputNodeId>workspaceCanvas</outputNodeId>
|
38
|
<targetModel>owsCatSearch</targetModel>
|
39
|
<scriptFile>OWSCatSearchForm.js</scriptFile>
|
40
|
<stylesheet>owsCatSearchForm.xsl</stylesheet>
|
41
|
</OWSCatSearchForm>
|
42
|
<AoiBoxDHTML id="aoiBox2">
|
43
|
<htmlTagId>mainMapPane</htmlTagId>
|
44
|
<mapContainerId>mainMapContainer</mapContainerId>
|
45
|
<lineColor>#FF0000</lineColor>
|
46
|
<lineWidth>1</lineWidth>
|
47
|
<crossSize>15</crossSize>
|
48
|
</AoiBoxDHTML>
|
49
|
<Loading2 id="loading2">
|
50
|
<mapContainerId>mainMapContainer</mapContainerId>
|
51
|
</Loading2>
|
52
|
</widgets>
|
53
|
<tools>
|
54
|
<AoiMouseHandler id="mainAoi"/>
|
55
|
<DragPanHandler id="mainDragPan">
|
56
|
<enabled>false</enabled>
|
57
|
</DragPanHandler>
|
58
|
</tools>
|
59
|
</Context>
|
60
|
<Context id="locator">
|
61
|
<defaultModelUrl>../data/context/locatorMap.xml</defaultModelUrl>
|
62
|
<widgets>
|
63
|
<MapPane id="locatorWidget">
|
64
|
<htmlTagId>locatorMap</htmlTagId>
|
65
|
<targetModel>mainMap</targetModel>
|
66
|
<mapContainerId>locatorContainer</mapContainerId>
|
67
|
<fixedWidth>180</fixedWidth>
|
68
|
</MapPane>
|
69
|
<AoiBoxDHTML id="locatorAoi">
|
70
|
<htmlTagId>locatorMap</htmlTagId>
|
71
|
<mapContainerId>locatorContainer</mapContainerId>
|
72
|
<lineColor>#FF0000</lineColor>
|
73
|
<lineWidth>1</lineWidth>
|
74
|
<crossSize>15</crossSize>
|
75
|
</AoiBoxDHTML>
|
76
|
</widgets>
|
77
|
<tools>
|
78
|
<AoiMouseHandler id="locatorMouse"/>
|
79
|
<ZoomToAoi id="locatorZoomToAoi">
|
80
|
<targetModel>mainMap</targetModel>
|
81
|
</ZoomToAoi>
|
82
|
</tools>
|
83
|
</Context>
|
84
|
<ContextCollection id="myMapCollection">
|
85
|
<!--defaultModelUrl>../data/context/demoCollection.xml</defaultModelUrl-->
|
86
|
<widgets>
|
87
|
<CollectionList id="collectionList">
|
88
|
<htmlTagId>workspace</htmlTagId>
|
89
|
<outputNodeId>workspaceCanvas</outputNodeId>
|
90
|
<targetModel>mainMap</targetModel>
|
91
|
</CollectionList>
|
92
|
</widgets>
|
93
|
</ContextCollection>
|
94
|
<!-- use this with a WFS capabilities model -->
|
95
|
<WfsCapabilities id="wfsCapTemplate">
|
96
|
<!--defaultModelUrl>http://webservices.ionicsoft.com/ionicweb/wfs/BOSTON_ORA?version=1.0.0&service=WFS&request=GetCapabilities</defaultModelUrl-->
|
97
|
<models>
|
98
|
<FeatureTypeSchema id="featureTypeTemplate" template="true">
|
99
|
<widgets>
|
100
|
<Widget id="attributeFilter">
|
101
|
<htmlTagId>workspace</htmlTagId>
|
102
|
<outputNodeId>workspaceCanvas</outputNodeId>
|
103
|
<stylesheet>../../lib/widget/FilterAttributes.xsl</stylesheet>
|
104
|
</Widget>
|
105
|
</widgets>
|
106
|
</FeatureTypeSchema>
|
107
|
<FeatureCollection id="getFeatureTemplate" template="true">
|
108
|
<method>get</method>
|
109
|
<widgets>
|
110
|
<GmlRendererWZ id="testGmlRenderer">
|
111
|
<htmlTagId>mainMapPane</htmlTagId>
|
112
|
<targetModel>mainMap</targetModel>
|
113
|
<mapContainerId>mainMapContainer</mapContainerId>
|
114
|
<lineColor>#FF00FF</lineColor>
|
115
|
<lineWidth>1</lineWidth>
|
116
|
<pointDiameter>10</pointDiameter>
|
117
|
</GmlRendererWZ>
|
118
|
<Legend id="wfsLegend">
|
119
|
<htmlTagId>workspace</htmlTagId>
|
120
|
<outputNodeId>workspaceCanvas</outputNodeId>
|
121
|
</Legend>
|
122
|
</widgets>
|
123
|
</FeatureCollection>
|
124
|
<!--Transaction id="transactionTemplate" template="true">
|
125
|
<method>post</method>
|
126
|
<widgets>
|
127
|
<ShowResponse id="transResponse"/>
|
128
|
</widgets>
|
129
|
</Transaction-->
|
130
|
</models>
|
131
|
<widgets>
|
132
|
<Widget id="featureTypes">
|
133
|
<htmlTagId>workspace</htmlTagId>
|
134
|
<outputNodeId>workspaceCanvas</outputNodeId>
|
135
|
<stylesheet>../../lib/widget/SelectFeatureType.xsl</stylesheet>
|
136
|
</Widget>
|
137
|
</widgets>
|
138
|
<tools>
|
139
|
<WebServiceRequest id="wfsGetFeature">
|
140
|
<targetModel>getFeatureTemplate</targetModel>
|
141
|
<requestName>wfs:GetFeature</requestName>
|
142
|
<maxFeatures>20</maxFeatures>
|
143
|
</WebServiceRequest>
|
144
|
<WebServiceRequest id="wfsDescribeFeature">
|
145
|
<targetModel>featureTypeTemplate</targetModel>
|
146
|
<requestName>wfs:DescribeFeatureType</requestName>
|
147
|
</WebServiceRequest>
|
148
|
<!--WebServiceRequest id="wfsTransaction">
|
149
|
<targetModel>transactionTemplate</targetModel>
|
150
|
<requestName>wfs:Transaction</requestName>
|
151
|
</WebServiceRequest-->
|
152
|
</tools>
|
153
|
<nodeSelectXpath>/wfs:WFS_Capabilities/wfs:FeatureTypeList/wfs:FeatureType</nodeSelectXpath>
|
154
|
</WfsCapabilities>
|
155
|
<WmsCapabilities id="wmsCapTemplate">
|
156
|
<!--defaultModelUrl>http://www.bsc-eoc.org/cgi-bin/bsc_ows.asp?version=1.1.1&service=WMS&request=GetCapabilities</defaultModelUrl-->
|
157
|
<title>OGC Web Map Server (WMS)</title>
|
158
|
<models>
|
159
|
<!--GetFeatureInfo id="featureTypeTemplate" template="true">
|
160
|
<widgets>
|
161
|
<Widget id="attributeFilter">
|
162
|
<stylesheet>../../lib/widget/FilterAttributes.xsl</stylesheet>
|
163
|
<outputNodeId>filterForm</outputNodeId>
|
164
|
</Widget>
|
165
|
</widgets>
|
166
|
</GetFeatureInfo-->
|
167
|
</models>
|
168
|
<widgets>
|
169
|
<Widget id="layerList">
|
170
|
<htmlTagId>workspace</htmlTagId>
|
171
|
<outputNodeId>workspaceCanvas</outputNodeId>
|
172
|
<stylesheet>../../lib/widget/SelectMapLayers.xsl</stylesheet>
|
173
|
</Widget>
|
174
|
<Loading2 id="loading3">
|
175
|
<htmlTagId>workspace</htmlTagId>
|
176
|
<outputNodeId>workspaceCanvas</outputNodeId>
|
177
|
</Loading2>
|
178
|
</widgets>
|
179
|
<tools>
|
180
|
<!--WebServiceRequest id="wmsController">
|
181
|
<targetModel>getMapTemplate</targetModel>
|
182
|
<requestName>GetMap</requestName>
|
183
|
</WebServiceRequest-->
|
184
|
<!--WebServiceRequest id="wmsController">
|
185
|
<targetModel>getFeatureInfoTemplate</targetModel>
|
186
|
<requestName>wms:GetFeatureInfo</requestName>
|
187
|
</WebServiceRequest-->
|
188
|
<EditContext id="editContext">
|
189
|
<targetModel>mainMap</targetModel>
|
190
|
</EditContext>
|
191
|
</tools>
|
192
|
<nodeSelectXpath>//Layer</nodeSelectXpath>
|
193
|
</WmsCapabilities>
|
194
|
<Model id="wmsServers">
|
195
|
<title>Web Map Servers</title>
|
196
|
<widgets>
|
197
|
<WebServiceForm id="wmsServerList">
|
198
|
<htmlTagId>workspace</htmlTagId>
|
199
|
<outputNodeId>workspaceCanvas</outputNodeId>
|
200
|
<targetModel>wmsCapTemplate</targetModel>
|
201
|
<stylesheet>../../lib/widget/ServiceRegistryList.xsl</stylesheet>
|
202
|
<serviceType>CgdiMapServices</serviceType>
|
203
|
</WebServiceForm>
|
204
|
<Loading2 id="loading1">
|
205
|
<htmlTagId>workspace</htmlTagId>
|
206
|
<outputNodeId>workspaceCanvas</outputNodeId>
|
207
|
</Loading2>
|
208
|
</widgets>
|
209
|
</Model>
|
210
|
<Model id="wfsServers">
|
211
|
<title>Web Feature Servers</title>
|
212
|
<widgets>
|
213
|
<WebServiceForm id="wfsServerList">
|
214
|
<htmlTagId>workspace</htmlTagId>
|
215
|
<outputNodeId>workspaceCanvas</outputNodeId>
|
216
|
<targetModel>wfsCapTemplate</targetModel>
|
217
|
<stylesheet>../../lib/widget/ServiceRegistryList.xsl</stylesheet>
|
218
|
<serviceType>CgdiFeatureServices</serviceType>
|
219
|
</WebServiceForm>
|
220
|
<Loading2 id="loadingWFSlist">
|
221
|
<htmlTagId>workspace</htmlTagId>
|
222
|
<outputNodeId>workspaceCanvas</outputNodeId>
|
223
|
</Loading2>
|
224
|
</widgets>
|
225
|
</Model>
|
226
|
<WfsCapabilities id="owsCatSearch">
|
227
|
<defaultModelUrl>http://devgeo.cciw.ca/cgi-bin/mapserv/owscat?version=1.0.0&service=WFS&request=GetCapabilities</defaultModelUrl>
|
228
|
<models>
|
229
|
<Model id="filterExpression">
|
230
|
<defaultModelUrl>OWSCatResourceFilter.xml</defaultModelUrl>
|
231
|
</Model>
|
232
|
<OwsCatResources id="owsCatResults">
|
233
|
<method>get</method>
|
234
|
<widgets>
|
235
|
<!--GmlRendererWZ id="resultBbox">
|
236
|
<htmlTagId>mainMapPane</htmlTagId>
|
237
|
<targetModel>mainMap</targetModel>
|
238
|
<lineColor>#FF0000</lineColor>
|
239
|
<lineWidth>2</lineWidth>
|
240
|
<pointDiameter>10</pointDiameter>
|
241
|
<mapContainerId>mainMapContainer</mapContainerId>
|
242
|
</GmlRendererWZ-->
|
243
|
<Widget id="resultList">
|
244
|
<htmlTagId>workspace</htmlTagId>
|
245
|
<outputNodeId>workspaceCanvas</outputNodeId>
|
246
|
<stylesheet>OWSCatResultList.xsl</stylesheet>
|
247
|
</Widget>
|
248
|
</widgets>
|
249
|
<tools>
|
250
|
<EditContext id="addLayer">
|
251
|
<targetModel>mainMap</targetModel>
|
252
|
</EditContext>
|
253
|
</tools>
|
254
|
<nodeSelectXpath>/wfs:FeatureCollection/gml:featureMember/owscat:service_resources</nodeSelectXpath>
|
255
|
</OwsCatResources>
|
256
|
</models>
|
257
|
<widgets>
|
258
|
<Loading2 id="loading">
|
259
|
<htmlTagId>workspace</htmlTagId>
|
260
|
<outputNodeId>workspaceCanvas</outputNodeId>
|
261
|
</Loading2>
|
262
|
</widgets>
|
263
|
<tools>
|
264
|
<WebServiceRequest id="owsCatGetFeature">
|
265
|
<targetModel>owsCatResults</targetModel>
|
266
|
<requestName>wfs:GetFeature</requestName>
|
267
|
<requestFilter>filterExpression</requestFilter>
|
268
|
<maxFeatures>20</maxFeatures>
|
269
|
</WebServiceRequest>
|
270
|
</tools>
|
271
|
<nodeSelectXpath>/wfs:WFS_Capabilities/wfs:FeatureTypeList/wfs:FeatureType</nodeSelectXpath>
|
272
|
</WfsCapabilities>
|
273
|
</models>
|
274
|
<widgets>
|
275
|
<!--TabbedContent id="tabBar">
|
276
|
<htmlWorkspace>workspace</htmlWorkspace>
|
277
|
<tab>wmsServerList</tab>
|
278
|
<tab>layerList</tab>
|
279
|
<tab>wfsServerList</tab>
|
280
|
<tab>featureTypes</tab>
|
281
|
<tab>contextLegend</tab>
|
282
|
<tab>owsCatSearchForm</tab>
|
283
|
</TabbedContent-->
|
284
|
<ModelUrlInput id="urlInput">
|
285
|
<htmlTagId>workspace</htmlTagId>
|
286
|
<outputNodeId>workspaceCanvas</outputNodeId>
|
287
|
<targetModel>wmsCapTemplate</targetModel>
|
288
|
</ModelUrlInput>
|
289
|
<ZoomIn id="zoomIn">
|
290
|
<buttonBar>mainButtonBar</buttonBar>
|
291
|
<targetModel>mainMap</targetModel>
|
292
|
<mouseHandler>mainAoi</mouseHandler>
|
293
|
<class>RadioButton</class>
|
294
|
<selected>true</selected>
|
295
|
<enabledSrc>/images/ZoomInEnable.png</enabledSrc>
|
296
|
<disabledSrc>/images/ZoomInDisable.png</disabledSrc>
|
297
|
</ZoomIn>
|
298
|
<ZoomOut id="zoomOut">
|
299
|
<buttonBar>mainButtonBar</buttonBar>
|
300
|
<targetModel>mainMap</targetModel>
|
301
|
<mouseHandler>mainAoi</mouseHandler>
|
302
|
<class>RadioButton</class>
|
303
|
<enabledSrc>/images/ZoomOutEnable.png</enabledSrc>
|
304
|
<disabledSrc>/images/ZoomOutDisable.png</disabledSrc>
|
305
|
</ZoomOut>
|
306
|
<DragPan id="dragPan">
|
307
|
<buttonBar>mainButtonBar</buttonBar>
|
308
|
<targetModel>mainMap</targetModel>
|
309
|
<mouseHandler>mainDragPan</mouseHandler>
|
310
|
<class>RadioButton</class>
|
311
|
<enabledSrc>/images/PanEnable.png</enabledSrc>
|
312
|
<disabledSrc>/images/PanDisable.png</disabledSrc>
|
313
|
</DragPan>
|
314
|
<SetAoi id="setAoi">
|
315
|
<buttonBar>mainButtonBar</buttonBar>
|
316
|
<targetModel>mainMap</targetModel>
|
317
|
<mouseHandler>mainAoi</mouseHandler>
|
318
|
<class>RadioButton</class>
|
319
|
<enabledSrc>/images/SetAoiEnable.png</enabledSrc>
|
320
|
<disabledSrc>/images/SetAoiDisable.png</disabledSrc>
|
321
|
</SetAoi>
|
322
|
<Reset id="reset">
|
323
|
<buttonBar>mainButtonBar</buttonBar>
|
324
|
<targetModel>mainMap</targetModel>
|
325
|
<class>Button</class>
|
326
|
<disabledSrc>/images/ResetExtentDisable.png</disabledSrc>
|
327
|
</Reset>
|
328
|
<Save id="save">
|
329
|
<buttonBar>mainButtonBar</buttonBar>
|
330
|
<targetModel>mainMap</targetModel>
|
331
|
<class>Button</class>
|
332
|
<disabledSrc>/images/SaveDisable.png</disabledSrc>
|
333
|
<popupWindowName>modelXML</popupWindowName>
|
334
|
</Save>
|
335
|
<Loading2 id="loadingConfig">
|
336
|
<htmlTagId>workspace</htmlTagId>
|
337
|
<outputNodeId>workspaceCanvas</outputNodeId>
|
338
|
</Loading2>
|
339
|
</widgets>
|
340
|
<!--
|
341
|
All static images should be relative to this URL.
|
342
|
This dir is relative the dir of the main html file.
|
343
|
-->
|
344
|
<skinDir>../../lib/skin/default</skinDir>
|
345
|
<widgetTextUrl>/widgetText.xml</widgetTextUrl>
|
346
|
<!-- in the skin dir -->
|
347
|
</MapbuilderConfig>
|