1 |
3032
|
perry
|
<?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 ../../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$
|
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 |
|
|
<loadHidden>false</loadHidden>
|
35 |
|
|
</MapPane>
|
36 |
|
|
<Loading id="loading">
|
37 |
|
|
</Loading>
|
38 |
|
|
<CursorTrack id="cursorTrack">
|
39 |
|
|
<mouseHandler>mainMap</mouseHandler>
|
40 |
|
|
</CursorTrack>
|
41 |
|
|
<Widget id="mapTitle">
|
42 |
|
|
<stylesheet>../../lib/widget/MapTitle.xsl</stylesheet>
|
43 |
|
|
</Widget>
|
44 |
|
|
<Legend id="legend">
|
45 |
|
|
<htmlTagId>workspace</htmlTagId>
|
46 |
|
|
<outputNodeId>workspaceCanvas</outputNodeId>
|
47 |
|
|
<autoRefresh>false</autoRefresh>
|
48 |
|
|
</Legend>
|
49 |
|
|
<AoiBoxWZ id="aoiBox2">
|
50 |
|
|
<htmlTagId>mainMapPane</htmlTagId>
|
51 |
|
|
<stylesheet>../../lib/widget/GmlRenderer.xsl</stylesheet>
|
52 |
|
|
<lineColor>#FF0000</lineColor>
|
53 |
|
|
<lineWidth>1</lineWidth>
|
54 |
|
|
<crossSize>15</crossSize>
|
55 |
|
|
<mapContainerId>mainMapContainer</mapContainerId>
|
56 |
|
|
</AoiBoxWZ>
|
57 |
|
|
</widgets>
|
58 |
|
|
<tools>
|
59 |
|
|
<AoiMouseHandler id="mainAoi"/>
|
60 |
|
|
<DragPanHandler id="mainDragPan">
|
61 |
|
|
<enabled>false</enabled>
|
62 |
|
|
</DragPanHandler>
|
63 |
|
|
<MouseClickHandler id="mainMouseClick"/>
|
64 |
|
|
</tools>
|
65 |
|
|
</Context>
|
66 |
|
|
<Context id="locator">
|
67 |
|
|
<defaultModelUrl>../data/context/locatorMap.xml</defaultModelUrl>
|
68 |
|
|
<widgets>
|
69 |
|
|
<MapPane id="locatorWidget">
|
70 |
|
|
<htmlTagId>locatorMap</htmlTagId>
|
71 |
|
|
<targetModel>mainMap</targetModel>
|
72 |
|
|
<mapContainerId>locatorContainer</mapContainerId>
|
73 |
|
|
<fixedWidth>180</fixedWidth>
|
74 |
|
|
</MapPane>
|
75 |
|
|
<AoiBoxWZ id="aoiBox2">
|
76 |
|
|
<htmlTagId>locatorMap</htmlTagId>
|
77 |
|
|
<stylesheet>../../lib/widget/GmlRenderer.xsl</stylesheet>
|
78 |
|
|
<lineColor>#FF0000</lineColor>
|
79 |
|
|
<lineWidth>1</lineWidth>
|
80 |
|
|
<crossSize>15</crossSize>
|
81 |
|
|
<mapContainerId>locatorContainer</mapContainerId>
|
82 |
|
|
</AoiBoxWZ>
|
83 |
|
|
</widgets>
|
84 |
|
|
<tools>
|
85 |
|
|
<AoiMouseHandler id="locatorAoi"/>
|
86 |
|
|
<ZoomToAoi id="locatorZoomToAoi">
|
87 |
|
|
<targetModel>mainMap</targetModel>
|
88 |
|
|
</ZoomToAoi>
|
89 |
|
|
</tools>
|
90 |
|
|
</Context>
|
91 |
|
|
<ContextCollection id="myMapCollection">
|
92 |
|
|
<!--defaultModelUrl>../data/context/demoCollection.xml</defaultModelUrl-->
|
93 |
|
|
<widgets>
|
94 |
|
|
<CollectionList id="collectionList">
|
95 |
|
|
<htmlTagId>workspace</htmlTagId>
|
96 |
|
|
<outputNodeId>workspaceCanvas</outputNodeId>
|
97 |
|
|
<targetModel>mainMap</targetModel>
|
98 |
|
|
</CollectionList>
|
99 |
|
|
</widgets>
|
100 |
|
|
</ContextCollection>
|
101 |
|
|
<!-- use this with a WFS capabilities model -->
|
102 |
|
|
<WfsCapabilities id="wfsCapTemplate">
|
103 |
|
|
<defaultModelUrl>http://localhost:8080/geoserver/wfs?version=1.0.0&service=WFS&request=GetCapabilities</defaultModelUrl>
|
104 |
|
|
<nodeSelectXpath>/wfs:WFS_Capabilities/wfs:FeatureTypeList/wfs:FeatureType[wfs:Name='topp:tasmania_cities']</nodeSelectXpath>
|
105 |
|
|
<models>
|
106 |
|
|
<FeatureTypeSchema id="featureTypeTemplate">
|
107 |
|
|
<widgets>
|
108 |
|
|
<Widget id="attributeFilter">
|
109 |
|
|
<htmlTagId>workspace</htmlTagId>
|
110 |
|
|
<outputNodeId>workspaceCanvas</outputNodeId>
|
111 |
|
|
<stylesheet>../../lib/widget/FilterAttributes.xsl</stylesheet>
|
112 |
|
|
</Widget>
|
113 |
|
|
</widgets>
|
114 |
|
|
</FeatureTypeSchema>
|
115 |
|
|
<FeatureCollection id="getFeatureTemplate">
|
116 |
|
|
<method>get</method>
|
117 |
|
|
<featureXpath>/gml:featureMember/points/_SHAPE_/gml:MultiPoint/gml:pointMember/gml:Point/gml:coordinates</featureXpath>
|
118 |
|
|
<widgets>
|
119 |
|
|
<GmlRendererWZ id="testGmlRenderer">
|
120 |
|
|
<htmlTagId>mainMapPane</htmlTagId>
|
121 |
|
|
<targetModel>mainMap</targetModel>
|
122 |
|
|
<lineColor>#FF00FF</lineColor>
|
123 |
|
|
<lineWidth>1</lineWidth>
|
124 |
|
|
<pointDiameter>10</pointDiameter>
|
125 |
|
|
<mapContainerId>mainMapContainer</mapContainerId>
|
126 |
|
|
</GmlRendererWZ>
|
127 |
|
|
</widgets>
|
128 |
|
|
</FeatureCollection>
|
129 |
|
|
<Transaction id="transactionTemplate" template="true">
|
130 |
|
|
<method>post</method>
|
131 |
|
|
<widgets>
|
132 |
|
|
<ShowResponse id="transResponse"/>
|
133 |
|
|
</widgets>
|
134 |
|
|
</Transaction>
|
135 |
|
|
</models>
|
136 |
|
|
<widgets>
|
137 |
|
|
<Widget id="featureTypes">
|
138 |
|
|
<htmlTagId>workspace</htmlTagId>
|
139 |
|
|
<outputNodeId>workspaceCanvas</outputNodeId>
|
140 |
|
|
<stylesheet>../../lib/widget/SelectFeatureType.xsl</stylesheet>
|
141 |
|
|
<toolId>wfsController</toolId>
|
142 |
|
|
</Widget>
|
143 |
|
|
</widgets>
|
144 |
|
|
<tools>
|
145 |
|
|
<WebServiceRequest id="wfsGetFeature">
|
146 |
|
|
<targetModel>getFeatureTemplate</targetModel>
|
147 |
|
|
<requestName>wfs:GetFeature</requestName>
|
148 |
|
|
<maxFeatures>20</maxFeatures>
|
149 |
|
|
</WebServiceRequest>
|
150 |
|
|
<WebServiceRequest id="wfsDescribeFeature">
|
151 |
|
|
<targetModel>featureTypeTemplate</targetModel>
|
152 |
|
|
<requestName>wfs:DescribeFeatureType</requestName>
|
153 |
|
|
</WebServiceRequest>
|
154 |
|
|
<WebServiceRequest id="wfsTransaction">
|
155 |
|
|
<targetModel>transactionTemplate</targetModel>
|
156 |
|
|
<requestName>wfs:Transaction</requestName>
|
157 |
|
|
</WebServiceRequest>
|
158 |
|
|
</tools>
|
159 |
|
|
</WfsCapabilities>
|
160 |
|
|
<WmsCapabilities id="wmsCapTemplate">
|
161 |
|
|
<!--defaultModelUrl>http://www.bsc-eoc.org/cgi-bin/bsc_ows.asp?version=1.1.1&service=WMS&request=GetCapabilities</defaultModelUrl-->
|
162 |
|
|
<nodeSelectXpath>//Layer</nodeSelectXpath>
|
163 |
|
|
<title>OGC Web Map Server (WMS)</title>
|
164 |
|
|
<models>
|
165 |
|
|
<!--GetFeatureInfo id="featureTypeTemplate" template="true">
|
166 |
|
|
<widgets>
|
167 |
|
|
<Widget id="attributeFilter">
|
168 |
|
|
<stylesheet>../../lib/widget/FilterAttributes.xsl</stylesheet>
|
169 |
|
|
<outputNodeId>filterForm</outputNodeId>
|
170 |
|
|
</Widget>
|
171 |
|
|
</widgets>
|
172 |
|
|
</GetFeatureInfo-->
|
173 |
|
|
<GetMap id="getMapTemplate" template="true">
|
174 |
|
|
<widgets>
|
175 |
|
|
<MapImage id="renderMap">
|
176 |
|
|
<targetModel>mainMap</targetModel>
|
177 |
|
|
<htmlTagId>mainMapPane</htmlTagId>
|
178 |
|
|
<mapContainerId>mainMapContainer</mapContainerId>
|
179 |
|
|
</MapImage>
|
180 |
|
|
</widgets>
|
181 |
|
|
</GetMap>
|
182 |
|
|
</models>
|
183 |
|
|
<widgets>
|
184 |
|
|
<Widget id="layerList">
|
185 |
|
|
<htmlTagId>workspace</htmlTagId>
|
186 |
|
|
<outputNodeId>workspaceCanvas</outputNodeId>
|
187 |
|
|
<stylesheet>../../lib/widget/SelectMapLayers.xsl</stylesheet>
|
188 |
|
|
</Widget>
|
189 |
|
|
<CopyNode id="copyNodeToContext">
|
190 |
|
|
<targetModel>mainMap</targetModel>
|
191 |
|
|
</CopyNode>
|
192 |
|
|
</widgets>
|
193 |
|
|
<tools>
|
194 |
|
|
<WebServiceRequest id="wmsController">
|
195 |
|
|
<targetModel>getMapTemplate</targetModel>
|
196 |
|
|
<requestName>GetMap</requestName>
|
197 |
|
|
</WebServiceRequest>
|
198 |
|
|
<!--WebServiceRequest id="wmsController">
|
199 |
|
|
<targetModel>getFeatureInfoTemplate</targetModel>
|
200 |
|
|
<requestName>wms:GetFeatureInfo</requestName>
|
201 |
|
|
</WebServiceRequest-->
|
202 |
|
|
</tools>
|
203 |
|
|
</WmsCapabilities>
|
204 |
|
|
<Model id="wmsServers">
|
205 |
|
|
<title>Web Map Servers</title>
|
206 |
|
|
<widgets>
|
207 |
|
|
<WebServiceForm id="wmsServerList">
|
208 |
|
|
<htmlTagId>workspace</htmlTagId>
|
209 |
|
|
<outputNodeId>workspaceCanvas</outputNodeId>
|
210 |
|
|
<stylesheet>../../lib/widget/ServiceRegistryList.xsl</stylesheet>
|
211 |
|
|
<targetModel2>wmsCapTemplate</targetModel2>
|
212 |
|
|
</WebServiceForm>
|
213 |
|
|
</widgets>
|
214 |
|
|
</Model>
|
215 |
|
|
<Model id="wfsServers">
|
216 |
|
|
<title>Web Feature Servers</title>
|
217 |
|
|
<widgets>
|
218 |
|
|
<WebServiceForm id="wfsServerList">
|
219 |
|
|
<htmlTagId>workspace</htmlTagId>
|
220 |
|
|
<outputNodeId>workspaceCanvas</outputNodeId>
|
221 |
|
|
<stylesheet>../../lib/widget/ServiceRegistryList.xsl</stylesheet>
|
222 |
|
|
<targetModel2>wfsCapTemplate</targetModel2>
|
223 |
|
|
</WebServiceForm>
|
224 |
|
|
</widgets>
|
225 |
|
|
</Model>
|
226 |
|
|
</models>
|
227 |
|
|
<widgets>
|
228 |
|
|
<ModelUrlInput id="urlInput">
|
229 |
|
|
<htmlTagId>workspace</htmlTagId>
|
230 |
|
|
<outputNodeId>workspaceCanvas</outputNodeId>
|
231 |
|
|
<targetModel>wmsCapTemplate</targetModel>
|
232 |
|
|
</ModelUrlInput>
|
233 |
|
|
<ZoomIn id="zoomIn">
|
234 |
|
|
<buttonBar>mainButtonBar</buttonBar>
|
235 |
|
|
<targetModel>mainMap</targetModel>
|
236 |
|
|
<mouseHandler>mainAoi</mouseHandler>
|
237 |
|
|
<class>RadioButton</class>
|
238 |
|
|
<selected>true</selected>
|
239 |
|
|
<enabledSrc>/images/ZoomInEnable.gif</enabledSrc>
|
240 |
|
|
<disabledSrc>/images/ZoomInDisable.gif</disabledSrc>
|
241 |
|
|
<tooltip xml:lang="en">click and drag to zoom in</tooltip>
|
242 |
|
|
<tooltip xml:lang="fr">cliquer et faire glisser la souris pour agrandir</tooltip>
|
243 |
|
|
</ZoomIn>
|
244 |
|
|
<ZoomOut id="zoomOut">
|
245 |
|
|
<buttonBar>mainButtonBar</buttonBar>
|
246 |
|
|
<targetModel>mainMap</targetModel>
|
247 |
|
|
<mouseHandler>mainAoi</mouseHandler>
|
248 |
|
|
<class>RadioButton</class>
|
249 |
|
|
<enabledSrc>/images/ZoomOutEnable.gif</enabledSrc>
|
250 |
|
|
<disabledSrc>/images/ZoomOutDisable.gif</disabledSrc>
|
251 |
|
|
<tooltip xml:lang="en">click to zoom out</tooltip>
|
252 |
|
|
<tooltip xml:lang="fr">cliquer pour rée</tooltip>
|
253 |
|
|
</ZoomOut>
|
254 |
|
|
<DragPan id="dragPan">
|
255 |
|
|
<buttonBar>mainButtonBar</buttonBar>
|
256 |
|
|
<targetModel>mainMap</targetModel>
|
257 |
|
|
<mouseHandler>mainDragPan</mouseHandler>
|
258 |
|
|
<class>RadioButton</class>
|
259 |
|
|
<enabledSrc>/images/PanEnable.gif</enabledSrc>
|
260 |
|
|
<disabledSrc>/images/PanDisable.gif</disabledSrc>
|
261 |
|
|
<tooltip xml:lang="en">click and drag to pan</tooltip>
|
262 |
|
|
<tooltip xml:lang="fr">cliquer et faire glisser la souris pour voir un autre parti de la carte</tooltip>
|
263 |
|
|
</DragPan>
|
264 |
|
|
<SetAoi id="setAoi">
|
265 |
|
|
<buttonBar>mainButtonBar</buttonBar>
|
266 |
|
|
<targetModel>mainMap</targetModel>
|
267 |
|
|
<mouseHandler>mainAoi</mouseHandler>
|
268 |
|
|
<class>RadioButton</class>
|
269 |
|
|
<enabledSrc>/images/SetAoiEnable.gif</enabledSrc>
|
270 |
|
|
<disabledSrc>/images/SetAoiDisable.gif</disabledSrc>
|
271 |
|
|
<tooltip xml:lang="en">click and drag to set the area of interest</tooltip>
|
272 |
|
|
</SetAoi>
|
273 |
|
|
<Reset id="reset">
|
274 |
|
|
<buttonBar>mainButtonBar</buttonBar>
|
275 |
|
|
<targetModel>mainMap</targetModel>
|
276 |
|
|
<class>Button</class>
|
277 |
|
|
<disabledSrc>/images/ResetExtentDisable.gif</disabledSrc>
|
278 |
|
|
<tooltip xml:lang="en">reset the map to full extent</tooltip>
|
279 |
|
|
<tooltip xml:lang="fr">redonner la carte ses dimensions complèts</tooltip>
|
280 |
|
|
</Reset>
|
281 |
|
|
<Save id="save">
|
282 |
|
|
<buttonBar>mainButtonBar</buttonBar>
|
283 |
|
|
<targetModel>mainMap</targetModel>
|
284 |
|
|
<class>Button</class>
|
285 |
|
|
<disabledSrc>/images/SaveDisable.gif</disabledSrc>
|
286 |
|
|
<tooltip xml:lang="en">click to save this map</tooltip>
|
287 |
|
|
<tooltip xml:lang="fr">cliquer pour sauvegarder</tooltip>
|
288 |
|
|
<popupWindowName>modelXML</popupWindowName>
|
289 |
|
|
</Save>
|
290 |
|
|
<EditPoint id="editPoint">
|
291 |
|
|
<buttonBar>mainButtonBar</buttonBar>
|
292 |
|
|
<targetModel>getFeatureTemplate</targetModel>
|
293 |
|
|
<mouseHandler>mainMouseClick</mouseHandler>
|
294 |
|
|
<class>RadioButton</class>
|
295 |
|
|
<enabledSrc>/images/EditPointEnable.gif</enabledSrc>
|
296 |
|
|
<disabledSrc>/images/EditPointDisable.gif</disabledSrc>
|
297 |
|
|
<tooltip xml:lang="en">click on map to create a point feature</tooltip>
|
298 |
|
|
<tooltip xml:lang="fr">click on map to create a point feature</tooltip>
|
299 |
|
|
</EditPoint>
|
300 |
|
|
</widgets>
|
301 |
|
|
<!--
|
302 |
|
|
All static images should be relative to this URL.
|
303 |
|
|
This dir is relative the dir of the main html file.
|
304 |
|
|
-->
|
305 |
|
|
<skinDir>../../lib/skin/default</skinDir>
|
306 |
|
|
<proxyUrl>../../proxy</proxyUrl>
|
307 |
|
|
<serializeUrl>../../writeXml</serializeUrl>
|
308 |
|
|
</MapbuilderConfig>
|