1
|
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
2
|
<MapbuilderConfig version="0.2.1" id="WFSDemoConfig" 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: http://www.gnu.org/copyleft/lesser.html
|
8
|
|
9
|
$Id: contextEditor_1.xml 3691 2007-12-06 11:19:58Z ahocevar $
|
10
|
-->
|
11
|
<models>
|
12
|
<Context id="mainMap">
|
13
|
<defaultModelUrl>../data/context/DM_Canada.xml</defaultModelUrl>
|
14
|
<widgets>
|
15
|
<!--GetMapRequest id="mainMapWidget">
|
16
|
<htmlTagId>mainMapPane</htmlTagId>
|
17
|
<targetModel>mainMap</targetModel>
|
18
|
<mapContainerId>mainMapContainer</mapContainerId>
|
19
|
<tools>
|
20
|
<AoiMouseHandler/>
|
21
|
<AoiBox>
|
22
|
<lineColor>#FF0000</lineColor>
|
23
|
<lineWidth>2</lineWidth>
|
24
|
<crossSize>1</crossSize>
|
25
|
</AoiBox>
|
26
|
<DragPanHandler>
|
27
|
<enabled>false</enabled>
|
28
|
</DragPanHandler>
|
29
|
</tools>
|
30
|
</GetMapRequest-->
|
31
|
<MapPane id="mainMapWidget">
|
32
|
<htmlTagId>mainMapPane</htmlTagId>
|
33
|
<mapContainerId>mainMapContainer</mapContainerId>
|
34
|
</MapPane>
|
35
|
<Loading id="loading">
|
36
|
</Loading>
|
37
|
<CursorTrack id="cursorTrack">
|
38
|
<mouseHandler>mainMap</mouseHandler>
|
39
|
</CursorTrack>
|
40
|
<MapTitle id="mapTitle"/>
|
41
|
<Legend id="legend">
|
42
|
<htmlTagId>workspace</htmlTagId>
|
43
|
<outputNodeId>workspaceCanvas</outputNodeId>
|
44
|
<autoRefresh>false</autoRefresh>
|
45
|
</Legend>
|
46
|
<AoiBoxWZ id="aoiBox2">
|
47
|
<htmlTagId>mainMapPane</htmlTagId>
|
48
|
<stylesheet>../../lib/widget/GmlRenderer.xsl</stylesheet>
|
49
|
<mapContainerId>mainMapContainer</mapContainerId>
|
50
|
<lineColor>#FF0000</lineColor>
|
51
|
<lineWidth>1</lineWidth>
|
52
|
<crossSize>15</crossSize>
|
53
|
</AoiBoxWZ>
|
54
|
</widgets>
|
55
|
<tools>
|
56
|
<AoiMouseHandler id="mainAoi"/>
|
57
|
<DragPanHandler id="mainDragPan">
|
58
|
<enabled>false</enabled>
|
59
|
</DragPanHandler>
|
60
|
<MouseClickHandler id="mainMouseClick"/>
|
61
|
</tools>
|
62
|
</Context>
|
63
|
<Context id="locator">
|
64
|
<defaultModelUrl>../data/context/locatorMap.xml</defaultModelUrl>
|
65
|
<widgets>
|
66
|
<MapPane id="locatorWidget">
|
67
|
<htmlTagId>locatorMap</htmlTagId>
|
68
|
<targetModel>mainMap</targetModel>
|
69
|
<mapContainerId>locatorContainer</mapContainerId>
|
70
|
<fixedWidth>180</fixedWidth>
|
71
|
</MapPane>
|
72
|
<AoiBoxWZ id="aoiBox2">
|
73
|
<htmlTagId>locatorMap</htmlTagId>
|
74
|
<stylesheet>../../lib/widget/GmlRenderer.xsl</stylesheet>
|
75
|
<mapContainerId>locatorContainer</mapContainerId>
|
76
|
<lineColor>#FF0000</lineColor>
|
77
|
<lineWidth>1</lineWidth>
|
78
|
<crossSize>15</crossSize>
|
79
|
</AoiBoxWZ>
|
80
|
</widgets>
|
81
|
<tools>
|
82
|
<AoiMouseHandler id="locatorAoi"/>
|
83
|
<ZoomToAoi id="locatorZoomToAoi">
|
84
|
<targetModel>mainMap</targetModel>
|
85
|
</ZoomToAoi>
|
86
|
</tools>
|
87
|
</Context>
|
88
|
<Model id="myMapCollection">
|
89
|
<!--defaultModelUrl>../data/context/demoCollection.xml</defaultModelUrl-->
|
90
|
<widgets>
|
91
|
<CollectionList id="collectionList">
|
92
|
<htmlTagId>workspace</htmlTagId>
|
93
|
<outputNodeId>workspaceCanvas</outputNodeId>
|
94
|
<targetModel>mainMap</targetModel>
|
95
|
</CollectionList>
|
96
|
</widgets>
|
97
|
</Model>
|
98
|
<!-- use this with a WFS capabilities model -->
|
99
|
<WfsCapabilities id="wfsCapTemplate">
|
100
|
<defaultModelUrl>http://localhost:8080/geoserver/wfs?version=1.0.0&service=WFS&request=GetCapabilities</defaultModelUrl>
|
101
|
<models>
|
102
|
<Model id="featureTypeTemplate">
|
103
|
<widgets>
|
104
|
<FilterAttributes id="attributeFilter">
|
105
|
<htmlTagId>workspace</htmlTagId>
|
106
|
<outputNodeId>workspaceCanvas</outputNodeId>
|
107
|
</FilterAttributes>
|
108
|
</widgets>
|
109
|
</Model>
|
110
|
<FeatureCollection id="getFeatureTemplate">
|
111
|
<method>get</method>
|
112
|
<featureXpath>/gml:featureMember/points/_SHAPE_/gml:MultiPoint/gml:pointMember/gml:Point/gml:coordinates</featureXpath>
|
113
|
<widgets>
|
114
|
<GmlRendererWZ id="testGmlRenderer">
|
115
|
<htmlTagId>mainMapPane</htmlTagId>
|
116
|
<targetModel>mainMap</targetModel>
|
117
|
<mapContainerId>mainMapContainer</mapContainerId>
|
118
|
<lineColor>#FF00FF</lineColor>
|
119
|
<lineWidth>1</lineWidth>
|
120
|
<pointDiameter>10</pointDiameter>
|
121
|
</GmlRendererWZ>
|
122
|
</widgets>
|
123
|
</FeatureCollection>
|
124
|
<Transaction id="transactionTemplate" template="true">
|
125
|
<method>post</method>
|
126
|
<widgets>
|
127
|
<TransactionResponse id="transResponse"/>
|
128
|
</widgets>
|
129
|
</Transaction>
|
130
|
</models>
|
131
|
<widgets>
|
132
|
<SelectFeatureType id="featureTypes">
|
133
|
<htmlTagId>workspace</htmlTagId>
|
134
|
<outputNodeId>workspaceCanvas</outputNodeId>
|
135
|
<toolId>wfsController</toolId>
|
136
|
</SelectFeatureType>
|
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[wfs:Name='topp:tasmania_cities']</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
|
<FilterAttributes id="attributeFilter">
|
162
|
<outputNodeId>filterForm</outputNodeId>
|
163
|
</FilterAttributes>
|
164
|
</widgets>
|
165
|
</GetFeatureInfo-->
|
166
|
<GetMap id="getMapTemplate" template="true">
|
167
|
<widgets>
|
168
|
<MapImage id="renderMap">
|
169
|
<htmlTagId>mainMapPane</htmlTagId>
|
170
|
<targetModel>mainMap</targetModel>
|
171
|
<mapContainerId>mainMapContainer</mapContainerId>
|
172
|
</MapImage>
|
173
|
</widgets>
|
174
|
</GetMap>
|
175
|
</models>
|
176
|
<widgets>
|
177
|
<SelectMapLayers id="layerList">
|
178
|
<htmlTagId>workspace</htmlTagId>
|
179
|
<outputNodeId>workspaceCanvas</outputNodeId>
|
180
|
</SelectMapLayers>
|
181
|
<CopyNode id="copyNodeToContext">
|
182
|
<targetModel>mainMap</targetModel>
|
183
|
</CopyNode>
|
184
|
</widgets>
|
185
|
<tools>
|
186
|
<WebServiceRequest id="wmsController">
|
187
|
<targetModel>getMapTemplate</targetModel>
|
188
|
<requestName>GetMap</requestName>
|
189
|
</WebServiceRequest>
|
190
|
<!--WebServiceRequest id="wmsController">
|
191
|
<targetModel>getFeatureInfoTemplate</targetModel>
|
192
|
<requestName>wms:GetFeatureInfo</requestName>
|
193
|
</WebServiceRequest-->
|
194
|
</tools>
|
195
|
<nodeSelectXpath>//Layer</nodeSelectXpath>
|
196
|
</WmsCapabilities>
|
197
|
<Model id="wmsServers">
|
198
|
<title>Web Map Servers</title>
|
199
|
<widgets>
|
200
|
<WebServiceForm id="wmsServerList">
|
201
|
<htmlTagId>workspace</htmlTagId>
|
202
|
<outputNodeId>workspaceCanvas</outputNodeId>
|
203
|
<stylesheet>../../lib/widget/ServiceRegistryList.xsl</stylesheet>
|
204
|
<targetModel2>wmsCapTemplate</targetModel2>
|
205
|
</WebServiceForm>
|
206
|
</widgets>
|
207
|
</Model>
|
208
|
<Model id="wfsServers">
|
209
|
<title>Web Feature Servers</title>
|
210
|
<widgets>
|
211
|
<WebServiceForm id="wfsServerList">
|
212
|
<htmlTagId>workspace</htmlTagId>
|
213
|
<outputNodeId>workspaceCanvas</outputNodeId>
|
214
|
<stylesheet>../../lib/widget/ServiceRegistryList.xsl</stylesheet>
|
215
|
<targetModel2>wfsCapTemplate</targetModel2>
|
216
|
</WebServiceForm>
|
217
|
</widgets>
|
218
|
</Model>
|
219
|
</models>
|
220
|
<widgets>
|
221
|
<ModelUrlInput id="urlInput">
|
222
|
<htmlTagId>workspace</htmlTagId>
|
223
|
<outputNodeId>workspaceCanvas</outputNodeId>
|
224
|
<targetModel>wmsCapTemplate</targetModel>
|
225
|
</ModelUrlInput>
|
226
|
<ZoomIn id="zoomIn">
|
227
|
<buttonBar>mainButtonBar</buttonBar>
|
228
|
<targetModel>mainMap</targetModel>
|
229
|
<mouseHandler>mainAoi</mouseHandler>
|
230
|
<class>RadioButton</class>
|
231
|
<selected>true</selected>
|
232
|
<enabledSrc>/images/ZoomInEnable.gif</enabledSrc>
|
233
|
<disabledSrc>/images/ZoomInDisable.gif</disabledSrc>
|
234
|
</ZoomIn>
|
235
|
<ZoomOut id="zoomOut">
|
236
|
<buttonBar>mainButtonBar</buttonBar>
|
237
|
<targetModel>mainMap</targetModel>
|
238
|
<mouseHandler>mainAoi</mouseHandler>
|
239
|
<class>RadioButton</class>
|
240
|
<enabledSrc>/images/ZoomOutEnable.gif</enabledSrc>
|
241
|
<disabledSrc>/images/ZoomOutDisable.gif</disabledSrc>
|
242
|
</ZoomOut>
|
243
|
<DragPan id="dragPan">
|
244
|
<buttonBar>mainButtonBar</buttonBar>
|
245
|
<targetModel>mainMap</targetModel>
|
246
|
<mouseHandler>mainDragPan</mouseHandler>
|
247
|
<class>RadioButton</class>
|
248
|
<enabledSrc>/images/PanEnable.gif</enabledSrc>
|
249
|
<disabledSrc>/images/PanDisable.gif</disabledSrc>
|
250
|
</DragPan>
|
251
|
<SetAoi id="setAoi">
|
252
|
<buttonBar>mainButtonBar</buttonBar>
|
253
|
<targetModel>mainMap</targetModel>
|
254
|
<mouseHandler>mainAoi</mouseHandler>
|
255
|
<class>RadioButton</class>
|
256
|
<enabledSrc>/images/SetAoiEnable.gif</enabledSrc>
|
257
|
<disabledSrc>/images/SetAoiDisable.gif</disabledSrc>
|
258
|
</SetAoi>
|
259
|
<Reset id="reset">
|
260
|
<buttonBar>mainButtonBar</buttonBar>
|
261
|
<targetModel>mainMap</targetModel>
|
262
|
<class>Button</class>
|
263
|
<disabledSrc>/images/ResetExtentDisable.gif</disabledSrc>
|
264
|
</Reset>
|
265
|
<Save id="save">
|
266
|
<buttonBar>mainButtonBar</buttonBar>
|
267
|
<targetModel>mainMap</targetModel>
|
268
|
<class>Button</class>
|
269
|
<disabledSrc>/images/SaveDisable.gif</disabledSrc>
|
270
|
<popupWindowName>modelXML</popupWindowName>
|
271
|
</Save>
|
272
|
<EditPoint id="editPoint">
|
273
|
<buttonBar>mainButtonBar</buttonBar>
|
274
|
<targetModel>getFeatureTemplate</targetModel>
|
275
|
<mouseHandler>mainMouseClick</mouseHandler>
|
276
|
<class>RadioButton</class>
|
277
|
<enabledSrc>/images/EditPointEnable.gif</enabledSrc>
|
278
|
<disabledSrc>/images/EditPointDisable.gif</disabledSrc>
|
279
|
</EditPoint>
|
280
|
</widgets>
|
281
|
<!--
|
282
|
All static images should be relative to this URL.
|
283
|
This dir is relative the dir of the main html file.
|
284
|
-->
|
285
|
<skinDir>../../lib/skin/default</skinDir>
|
286
|
</MapbuilderConfig>
|