Project

General

Profile

1
<?xml version="1.0" encoding="utf-8" standalone="no"?>
2
<MapbuilderConfig version="0.2.1" id="contextEditorDemoConfig" 
3
      xmlns="http://mapbuilder.sourceforge.net/mapbuilder" 
4
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
5
      xsi:schemaLocation="http://mapbuilder.sourceforge.net/mapbuilder ../../lib/schemas/config.xsd">
6
  <!--
7
    Description: This configuration file determines what components from the
8
                 Mapbuilder library are to be included in a Main Mapbuilder web
9
                 page.
10
    Licence:     LGPL as per: http://www.gnu.org/copyleft/lesser.html 
11

    
12
    $Id: config_ebRim.xml 3691 2007-12-06 11:19:58Z ahocevar $
13
  -->
14
  <models>
15
    <Context id="mainMap">
16
      <defaultModelUrl>../data/context/DM_Canada.xml</defaultModelUrl>
17
      <!--defaultModelUrl>../data/context/atlasWorld.xml</defaultModelUrl-->
18
      <widgets>
19
        <MapPane id="mainMapWidget">
20
          <htmlTagId>mainMapPane</htmlTagId>
21
					<stylesheet>../../lib/widget/MapPane.xsl</stylesheet>
22
          <mapContainerId>mainMapContainer</mapContainerId>
23
        </MapPane>
24
        <Loading2 id="loading2">
25
          <mapContainerId>mainMapContainer</mapContainerId>
26
        </Loading2>
27
        <CursorTrack id="cursorTrack">
28
          <mouseHandler>mainMap</mouseHandler>
29
        </CursorTrack>
30
        <MapTitle id="mapTitle"/>
31
        <LayerControl id="contextLegend">
32
          <htmlTagId>workspace</htmlTagId>
33
          <outputNodeId>workspaceCanvas</outputNodeId>
34
          <autoRefresh>false</autoRefresh>
35
          <moveUpImage>/images/LayerMoveUpDisable.png</moveUpImage>
36
          <moveDownImage>/images/LayerMoveDownDisable.png</moveDownImage>
37
          <deleteImage>/images/LayerRemoveDisable.png</deleteImage>
38
        </LayerControl>
39
        <AoiBoxDHTML id="aoiBox2">
40
          <htmlTagId>mainMapPane</htmlTagId>
41
          <mapContainerId>mainMapContainer</mapContainerId>
42
          <lineColor>#FF0000</lineColor>
43
          <lineWidth>1</lineWidth>
44
          <crossSize>15</crossSize>
45
        </AoiBoxDHTML>
46
      </widgets>
47
      <tools>
48
        <AoiMouseHandler id="mainAoi"/>
49
        <DragPanHandler id="mainDragPan">
50
          <enabled>false</enabled>
51
        </DragPanHandler>
52
      </tools>
53
    </Context>
54
    <Context id="locator">
55
      <defaultModelUrl>../data/context/locatorMap.xml</defaultModelUrl>
56
      <widgets>
57
        <MapPane id="locatorWidget">
58
          <htmlTagId>locatorMap</htmlTagId>
59
          <targetModel>mainMap</targetModel>
60
					<stylesheet>../../lib/widget/MapPane.xsl</stylesheet>
61
          <mapContainerId>locatorContainer</mapContainerId>
62
          <fixedWidth>180</fixedWidth>
63
        </MapPane>
64
        <AoiBoxDHTML id="aoiBox2">
65
          <htmlTagId>locatorMap</htmlTagId>
66
          <mapContainerId>locatorContainer</mapContainerId>
67
          <lineColor>#FF0000</lineColor>
68
          <lineWidth>1</lineWidth>
69
          <crossSize>15</crossSize>
70
        </AoiBoxDHTML>
71
      </widgets>
72
      <tools>
73
        <AoiMouseHandler id="locatorAoi"/>
74
        <ZoomToAoi id="locatorZoomToAoi">
75
          <targetModel>mainMap</targetModel>
76
        </ZoomToAoi>
77
      </tools>
78
    </Context>
79
    <Model id="myMapCollection">
80
      <!--defaultModelUrl>../data/context/demoCollection.xml</defaultModelUrl-->
81
      <widgets>
82
        <CollectionList id="collectionList">
83
          <htmlTagId>workspace</htmlTagId>
84
          <outputNodeId>workspaceCanvas</outputNodeId>
85
          <targetModel>mainMap</targetModel>
86
          <title>Select a map as your base map</title>
87
        </CollectionList>
88
      </widgets>
89
    </Model>
90
    <!-- use this with a WFS capabilities model -->
91
    <WfsCapabilities id="wfsCapTemplate">
92
      <!--defaultModelUrl>http://webservices.ionicsoft.com/ionicweb/wfs/BOSTON_ORA?version=1.0.0&amp;service=WFS&amp;request=GetCapabilities</defaultModelUrl-->
93
      <models>
94
        <Model id="featureTypeTemplate" template="true">
95
          <widgets>
96
            <FilterAttributes id="attributeFilter">
97
              <htmlTagId>workspace</htmlTagId>
98
              <outputNodeId>workspaceCanvas</outputNodeId>
99
            </FilterAttributes>
100
          </widgets>
101
        </Model>
102
        <FeatureCollection id="getFeatureTemplate" template="true">
103
          <method>get</method>
104
          <widgets>
105
            <GmlRendererWZ id="testGmlRenderer">
106
              <htmlTagId>mainMapPane</htmlTagId>
107
              <targetModel>mainMap</targetModel>
108
              <mapContainerId>mainMapContainer</mapContainerId>
109
              <lineColor>#FF00FF</lineColor>
110
              <lineWidth>1</lineWidth>
111
              <pointDiameter>10</pointDiameter>
112
            </GmlRendererWZ>
113
            <Legend id="wfsLegend">
114
              <htmlTagId>workspace</htmlTagId>
115
              <outputNodeId>workspaceCanvas</outputNodeId>
116
            </Legend>
117
          </widgets>
118
        </FeatureCollection>
119
        <!--Transaction id="transactionTemplate" template="true">
120
          <method>post</method>
121
          <widgets>
122
            <TransactionResponse id="transResponse"/>
123
          </widgets>
124
        </Transaction-->
125
      </models>
126
      <widgets>
127
        <SelectFeatureType id="featureTypes">
128
          <htmlTagId>workspace</htmlTagId>
129
          <outputNodeId>workspaceCanvas</outputNodeId>
130
          <toolId>wfsController</toolId>
131
        </SelectFeatureType>
132
      </widgets>
133
      <tools>
134
        <WebServiceRequest id="wfsGetFeature">
135
          <targetModel>getFeatureTemplate</targetModel>
136
          <requestName>wfs:GetFeature</requestName>
137
          <maxFeatures>20</maxFeatures>
138
        </WebServiceRequest>
139
        <WebServiceRequest id="wfsDescribeFeature">
140
          <targetModel>featureTypeTemplate</targetModel>
141
          <requestName>wfs:DescribeFeatureType</requestName>
142
        </WebServiceRequest>
143
        <!--WebServiceRequest id="wfsTransaction">
144
          <targetModel>transactionTemplate</targetModel>
145
          <requestName>wfs:Transaction</requestName>
146
        </WebServiceRequest-->
147
      </tools>
148
      <nodeSelectXpath>/wfs:WFS_Capabilities/wfs:FeatureTypeList/wfs:FeatureType</nodeSelectXpath>
149
    </WfsCapabilities>
150
    <WmsCapabilities id="wmsCapTemplate">
151
      <!--defaultModelUrl>http://www.bsc-eoc.org/cgi-bin/bsc_ows.asp?version=1.1.1&amp;service=WMS&amp;request=GetCapabilities</defaultModelUrl-->
152
      <title>OGC Web Map Server (WMS)</title>
153
      <models>
154
        <!--GetFeatureInfo id="featureTypeTemplate" template="true">
155
          <widgets>
156
            <FilterAttributes id="attributeFilter">
157
              <outputNodeId>filterForm</outputNodeId>
158
            </FilterAttributes>
159
          </widgets>
160
        </GetFeatureInfo-->
161
        <!--GetMap id="getMapTemplate" template="true">
162
          <widgets>
163
            <MapImage id="renderMap">
164
              <targetModel>mainMap</targetModel>
165
              <htmlTagId>mainMapPane</htmlTagId>
166
              <mapContainerId>mainMapContainer</mapContainerId>
167
            </MapImage>
168
          </widgets>
169
        </GetMap-->
170
      </models>
171
      <widgets>
172
        <SelectMapLayers id="layerList">
173
          <htmlTagId>workspace</htmlTagId>
174
          <outputNodeId>workspaceCanvas</outputNodeId>
175
        </SelectMapLayers>
176
        <Loading2 id="loading3">
177
					<htmlTagId>workspace</htmlTagId>
178
					<outputNodeId>workspaceCanvas</outputNodeId>
179
        </Loading2>
180
      </widgets>
181
      <tools>
182
        <!--WebServiceRequest id="wmsController">
183
          <targetModel>getMapTemplate</targetModel>
184
          <requestName>GetMap</requestName>
185
        </WebServiceRequest-->
186
        <!--WebServiceRequest id="wmsController">
187
          <targetModel>getFeatureInfoTemplate</targetModel>
188
          <requestName>wms:GetFeatureInfo</requestName>
189
        </WebServiceRequest-->
190
        <EditContext id="editContext">
191
          <targetModel>mainMap</targetModel>
192
        </EditContext>
193
      </tools>
194
      <nodeSelectXpath>//Layer</nodeSelectXpath>
195
    </WmsCapabilities>
196
    <Model id="wmsServers">
197
      <title>Web Map Servers</title>
198
      <widgets>
199
        <WebServiceForm id="wmsServerList">
200
          <htmlTagId>workspace</htmlTagId>
201
          <outputNodeId>workspaceCanvas</outputNodeId>
202
          <stylesheet>../../lib/widget/ServiceRegistryList.xsl</stylesheet>
203
          <capabilitiesModel>wmsCapTemplate</capabilitiesModel>
204
          <serviceType>CgdiMapServices</serviceType>
205
        </WebServiceForm>
206
        <Loading2 id="loading1">
207
					<htmlTagId>workspace</htmlTagId>
208
					<outputNodeId>workspaceCanvas</outputNodeId>
209
        </Loading2>
210
      </widgets>
211
    </Model>
212
    <Model id="wfsServers">
213
      <title>Web Feature Servers</title>
214
      <widgets>
215
        <WebServiceForm id="wfsServerList">
216
          <htmlTagId>workspace</htmlTagId>
217
          <outputNodeId>workspaceCanvas</outputNodeId>
218
          <stylesheet>../../lib/widget/ServiceRegistryList.xsl</stylesheet>
219
          <capabilitiesModel>wfsCapTemplate</capabilitiesModel>
220
          <serviceType>CgdiFeatureServices</serviceType>
221
        </WebServiceForm>
222
        <Loading2 id="loading4">
223
					<htmlTagId>workspace</htmlTagId>
224
					<outputNodeId>workspaceCanvas</outputNodeId>
225
        </Loading2>
226
      </widgets>
227
    </Model>
228
    <CswCapabilities id="ebRimSearch">
229
      <!--defaultModelUrl>http://demo.cubewerx.com/ows4/cwwrs/cwwrs.cgi?request=GetCapabilities</defaultModelUrl-->
230
      <defaultModelUrl>cwwrs.xml</defaultModelUrl>
231
      <nodeSelectXpath>/csw:Capabilities/ows:OperationsMetadata/ows:Operation</nodeSelectXpath>
232
      <models>
233
        <Model id="catResults">
234
          <nodeSelectXpath>/wfs:FeatureCollection/gml:featureMember/owscat:service_resources</nodeSelectXpath>
235
          <method>post</method>
236
          <widgets>
237
            <Widget id="resultList">
238
              <stylesheet>../../lib/widget/XmlIdentity.xsl</stylesheet>
239
              <htmlTagId>workspace</htmlTagId>
240
              <outputNodeId>workspaceCanvas</outputNodeId>
241
            </Widget>
242
          </widgets>
243
          <tools>
244
            <EditContext id="addLayer">
245
              <targetModel>mainMap</targetModel>
246
            </EditContext>
247
          </tools>
248
        </Model>
249
        <Model id="filterExpression">
250
          <defaultModelUrl>queryFeatureTypes.xml</defaultModelUrl>
251
          <widgets>
252
            <OWSCatSearchForm id="owsCatSearchForm">
253
              <htmlTagId>workspace</htmlTagId>
254
              <outputNodeId>workspaceCanvas</outputNodeId>
255
              <stylesheet>owsCatSearchForm.xsl</stylesheet>
256
              <scriptFile>CatSearchForm_ebRim.js</scriptFile>
257
              <targetModel>ebRimSearch</targetModel>
258
              <mapModel>mainMap</mapModel>
259
            </OWSCatSearchForm>
260
          </widgets>
261
        </Model>
262
      </models>
263
      <widgets>
264
      </widgets>
265
      <tools>
266
        <WebServiceRequest id="catGetFeatureTypes">
267
          <targetModel>catResults</targetModel>
268
          <requestName>csw:GetRecords</requestName>
269
          <requestFilter>filterExpression</requestFilter>
270
          <maxFeatures>20</maxFeatures>
271
          <debug/>
272
        </WebServiceRequest>
273
      </tools>
274
    </CswCapabilities>
275
  </models>
276
  <widgets>
277
    <TabbedContent id="tabBar">
278
      <tab>wmsServerList</tab>
279
      <tab>layerList</tab>
280
      <tab>wfsServerList</tab>
281
      <tab>featureTypes</tab>
282
      <tab>resultList</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
    <Save id="save">
336
      <buttonBar>mainButtonBar</buttonBar>
337
      <targetModel>catResults</targetModel>
338
      <class>Button</class>
339
      <disabledSrc>/images/SaveDisable.png</disabledSrc>
340
      <popupWindowName>modelXML</popupWindowName>
341
    </Save>
342
    <Widget id="help">
343
      <htmlTagId>workspace</htmlTagId>
344
      <outputNodeId>workspaceCanvas</outputNodeId>
345
      <stylesheet>Help.xsl</stylesheet>
346
    </Widget>
347
  </widgets>
348
  <!--
349
    All static images should be relative to this URL.
350
    This dir is relative the dir of the main html file.
351
  -->
352
	<skinDir>../../lib/skin/default</skinDir>
353
</MapbuilderConfig>
(6-6/14)