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"
3
  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: hhttp://www.gnu.org/copyleft/lesser.html
9
    
10
    $Id: completeConfig.xml 3929 2008-03-20 15:38:32Z ahocevar $
11
  -->
12
  <!--
13
    All static images should be relative to this URL.
14
    This dir is relative the dir of the main html file.
15
  -->
16
  <models>
17
    <!--Logger id="eventLogDoc">
18
      
19
      <widgets>
20
      <EventLog id="eventLog"/>
21
      </widgets>
22
      </Logger-->
23
    <Context id="mainMap">
24
      <defaultModelUrl>../data/context/demisWorldMap.xml</defaultModelUrl>
25
      <widgets>
26
        <MapPaneOL id="mainMapWidget">
27
          <htmlTagId>mainMapPane</htmlTagId>
28
          <fixedSize>true</fixedSize>
29
          <imageBuffer>1</imageBuffer>
30
        </MapPaneOL>
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
        <Loading2 id="loading2">
45
          <mapContainerId>mainMapPane</mapContainerId>
46
        </Loading2>
47
        <CursorTrack id="cursorTrack">
48
          <showXY>false</showXY>
49
        </CursorTrack>
50
        <Legend id="legend" />
51
        <Abstract id="abstract"/>
52
        <MapTitle id="mapTitle"/>
53
        <!--AoiForm id="aoiForm"/-->
54
        <MapScaleText id="mapScaleText" />
55
        <Save id="saveModelWidget">
56
          <htmlTagId>saveModel</htmlTagId>
57
        </Save>
58
        <LayerControl id="layerControl">
59
          <opacity>true</opacity>
60
          <legendImageEnable>/images/LegendEnable.png</legendImageEnable>
61
	        <legendImageDisable>/images/LegendDisable.png</legendImageDisable> 
62
          <moveUpImage>/images/LayerMoveUpDisable.png</moveUpImage>
63
          <moveDownImage>/images/LayerMoveDownDisable.png</moveDownImage>
64
          <deleteImage>/images/LayerRemoveDisable.png</deleteImage>
65
        </LayerControl>
66
        <!--
67
          <SearchForm id="searchForm">
68
          </SearchForm>
69
        -->
70
      </widgets>
71
      <tools>
72
        <History id="extentHistory">
73
          <targetModel>mainMap</targetModel>
74
        </History>
75
      </tools>
76
    </Context>
77
    <Context id="locator">
78
      <defaultModelUrl>../data/context/locatorMap.xml</defaultModelUrl>
79
      <widgets>
80
        <MapPaneOL id="locatorWidget">
81
          <htmlTagId>locatorMap</htmlTagId>
82
			    <fixedSize>true</fixedSize>
83
          <imageBuffer>1</imageBuffer>
84
        </MapPaneOL>
85
        <AoiBoxDHTML id="aoiBoxLocator">
86
          <htmlTagId>locatorMap</htmlTagId>
87
          <lineColor>#FF0000</lineColor>
88
          <lineWidth>1</lineWidth>
89
          <crossSize>15</crossSize>
90
        </AoiBoxDHTML>
91
        <ModelUrlInput id="urlInput">
92
          <defaultUrl>../data/context/modisWorld.xml</defaultUrl>
93
        </ModelUrlInput>
94
      </widgets>
95
      <tools>
96
        <AoiMouseHandler id="locatorAoi" />
97
        <ZoomToAoi id="locatorZoomToAoi">
98
          <targetModel>mainMap</targetModel>
99
        </ZoomToAoi>
100
      </tools>
101
    </Context>
102
    <Model id="collectionGroup">
103
      <defaultModelUrl>../data/context/demoCollection.xml</defaultModelUrl>
104
      <widgets>
105
        <CollectionList id="collectionList">
106
          <targetModel>mainMap</targetModel>
107
        </CollectionList>
108
      </widgets>
109
    </Model>
110
    <Model id="locations">
111
      <defaultModelUrl>../data/locations/Global.xml</defaultModelUrl>
112
      <widgets>
113
        <Locations id="locationsSelect">
114
          <targetModel>mainMap</targetModel>
115
        </Locations>
116
      </widgets>
117
    </Model>
118
    <Transaction id="transaction">
119
      <widgets>
120
        <TransactionResponse id="transactionResponse"></TransactionResponse>
121
      </widgets>
122
    </Transaction>
123
    <Model id="featureInfoResponse" template="true">
124
      <widgets>
125
        <FeatureInfo id="features">
126
          <htmlTagId>featureInfo</htmlTagId>
127
        </FeatureInfo>
128
      </widgets>
129
      <namespace>xmlns:gml='http://www.opengis.net/gml' xmlns:wfs='http://www.opengis.net/wfs' xmlns:topp='http://www.openplans.org/topp'</namespace>
130
    </Model>
131
    <FeatureCollection id="featureCollection">
132
      <widgets>
133
            <GmlRendererOL id="testGmlRenderer">
134
          <targetModel>mainMap</targetModel>
135
         </GmlRendererOL>
136

    
137
      </widgets>
138
      <namespace>xmlns:gml='http://www.opengis.net/gml' xmlns:wfs='http://www.opengis.net/wfs' xmlns:topp='http://www.openplans.org/topp'</namespace>
139
    </FeatureCollection>
140
    <FeatureCollection id="ntsGml" template="true">
141
      <!--defaultModelUrl>gml/NTSLookup.xml</defaultModelUrl-->
142
      <widgets>
143
            <GmlRendererOL id="testNTSRenderer">
144
          <targetModel>mainMap</targetModel>
145
         </GmlRendererOL>
146
      </widgets>
147
    </FeatureCollection>
148
    <FeatureCollection id="watershedGml">
149
      <!--defaultModelUrl>gml/NTSLookup.xml</defaultModelUrl-->
150
      <widgets>
151
        <GmlRendererOL id="watershedRenderer">
152
          <targetModel>mainMap</targetModel>
153
         </GmlRendererOL>
154
      </widgets>
155
    </FeatureCollection>
156
    <FeatureCollection id="featureCollection2">
157
      <widgets>
158
        <ShowDistance id='showDistance'>
159
          
160
        </ShowDistance>
161
      </widgets>
162
      <namespace>xmlns:gml='http://www.opengis.net/gml' xmlns:wfs='http://www.opengis.net/wfs' xmlns:topp='http://www.openplans.org/topp'</namespace>
163
    </FeatureCollection>
164
    <!-- example of the point feature renderer
165
      <FeatureCollection id="pointFeatures">
166
      <defaultModelUrl>../data/gml/topp_cities.xml</defaultModelUrl>
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
      <nodeSelectXpath>/wfs:FeatureCollection/gml:featureMember/topp:tasmania_cities</nodeSelectXpath>
169
      <widgets>
170
      <GmlPointRenderer id="pointRenderer">
171
      <htmlTagId>mainMapPane</htmlTagId>
172
      <mapContainerId>mainMapContainer</mapContainerId>
173
      <normalImage>/images/MarkerA.gif</normalImage>
174
      <highlightImage>/images/MarkerB.gif</highlightImage>
175
      </GmlPointRenderer>
176
      </widgets>
177
      </FeatureCollection>
178
    -->
179
    <WmsCapabilities id="wmsCapTemplate">
180
      <widgets>
181
        <SelectAllMapLayers id="loadAllLayers"/>
182
        <ModelStatus id="wmsLoadStatus">
183
          <htmlTagId>layerList</htmlTagId>
184
          <outputNodeId>layerListCanvas</outputNodeId>
185
        </ModelStatus>
186
        <SelectMapLayers id="layerListWidget">
187
          <htmlTagId>layerList</htmlTagId>
188
          <outputNodeId>layerListCanvas</outputNodeId>
189
        </SelectMapLayers>
190
      </widgets>
191
      <tools>
192
        <Caps2Context id="convertCaps">
193
          <targetModel>mainMap</targetModel>
194
        </Caps2Context>
195
        <EditContext id="editContext">
196
          <targetModel>mainMap</targetModel>
197
        </EditContext>
198
      </tools>
199
      <nodeSelectXpath>//Layer</nodeSelectXpath>
200
    </WmsCapabilities>
201
  </models>
202
  <widgets>
203
    <ModelUrlInput id="wmsCapsUrlInput">
204
      <targetModel>wmsCapTemplate</targetModel>
205
      <defaultUrl>http://localhost:8080/geoserver/wms/GetCapabilities</defaultUrl>
206
    </ModelUrlInput>
207
    <WebServiceForm id="ntsLookupForm">
208
      <targetModel>ntsGml</targetModel>
209
      <stylesheet>../../lib/widget/NtsForm.xsl</stylesheet>
210
      <webServiceUrl>http://geoservices.cgdi.ca/NTS/NTSLookup</webServiceUrl>
211
    </WebServiceForm>
212
    <WebServiceForm id="watershedLookupForm">
213
      <htmlTagId>ntsLookupForm</htmlTagId>
214
      <targetModel>watershedGml</targetModel>
215
      <stylesheet>../../lib/widget/CdnWatershedForm.xsl</stylesheet>
216
      <webServiceUrl>http://devgeo.cciw.ca:8080/WatershedLookupServlet/WatershedLookupServlet</webServiceUrl>
217
    </WebServiceForm>
218
    <Back id="back">
219
      <buttonBar>mainButtonBar</buttonBar>
220
      <targetModel>mainMap</targetModel>
221
      <class>Button</class>
222
      <disabledSrc>/images/UndoDisable.png</disabledSrc>
223
    </Back>
224
    <Forward id="forward">
225
      <buttonBar>mainButtonBar</buttonBar>
226
      <targetModel>mainMap</targetModel>
227
      <class>Button</class>
228
      <disabledSrc>/images/RedoDisable.png</disabledSrc>
229
    </Forward>
230
    <ZoomIn id="zoomIn">
231
      <buttonBar>mainButtonBar</buttonBar>
232
      <targetModel>mainMap</targetModel>
233
      <class>RadioButton</class>
234
      <selected>true</selected>
235
      <enabledSrc>/images/ZoomInEnable.png</enabledSrc>
236
      <disabledSrc>/images/ZoomInDisable.png</disabledSrc>
237
    </ZoomIn>
238
    <ZoomOut id="zoomOut">
239
      <buttonBar>mainButtonBar</buttonBar>
240
      <targetModel>mainMap</targetModel>
241
      <class>RadioButton</class>
242
      <enabledSrc>/images/ZoomOutEnable.png</enabledSrc>
243
      <disabledSrc>/images/ZoomOutDisable.png</disabledSrc>
244
    </ZoomOut>
245
    <DragPan id="dragPan">
246
      <buttonBar>mainButtonBar</buttonBar>
247
      <targetModel>mainMap</targetModel>
248
      <class>RadioButton</class>
249
      <enabledSrc>/images/PanEnable.png</enabledSrc>
250
      <disabledSrc>/images/PanDisable.png</disabledSrc>
251
    </DragPan>
252
    <SetAoi id="setAoi">
253
      <buttonBar>mainButtonBar</buttonBar>
254
      <targetModel>mainMap</targetModel>
255
      <class>RadioButton</class>
256
      <enabledSrc>/images/SetAoiEnable.png</enabledSrc>
257
      <disabledSrc>/images/SetAoiDisable.png</disabledSrc>
258
    </SetAoi>
259
    <Reset id="reset">
260
      <buttonBar>mainButtonBar</buttonBar>
261
      <targetModel>mainMap</targetModel>
262
      <class>Button</class>
263
      <disabledSrc>/images/ResetExtentDisable.png</disabledSrc>
264
    </Reset>
265
    <GetFeatureInfo id="getFeatureInfo">
266
      <buttonBar>mainButtonBar</buttonBar>
267
      <targetModel>featureInfoResponse</targetModel>
268
      <targetContext>mainMap</targetContext>
269
      <class>RadioButton</class>
270
      <enabledSrc>/images/QueryEnable.png</enabledSrc>
271
      <disabledSrc>/images/QueryDisable.png</disabledSrc>
272
    </GetFeatureInfo>
273
    <!--EditPoint id="editPoint">
274
      <buttonBar>mainButtonBar</buttonBar>
275
      <targetModel>featureCollection</targetModel>
276
      <mouseHandler>mainMouseClick</mouseHandler>
277
      <class>RadioButton</class>
278
      <enabledSrc>/images/EditPointEnable.png</enabledSrc>
279
      <disabledSrc>/images/EditPointDisable.png</disabledSrc>
280
      <transactionResponseModel>transaction</transactionResponseModel>
281
      <webServiceUrl>http://localhost:8080/geoserver/wfs</webServiceUrl>
282
      <featureXpath>/gml:featureMember/points/_SHAPE_/gml:MultiPoint/gml:pointMember/gml:Point/gml:coordinates</featureXpath>
283
      <defaultModelUrl>../data/gml/defaultAddPoint.xml</defaultModelUrl>
284
      <targetContext>mainMap</targetContext>
285
      </EditPoint-->
286
    <!--EditLine id="editLine">
287
      <buttonBar>mainButtonBar</buttonBar>
288
      <targetModel>featureCollection</targetModel>
289
      <mouseHandler>mainMouseClick</mouseHandler>
290
      <class>RadioButton</class>
291
      <enabledSrc>/images/EditLineEnable.png</enabledSrc>
292
      <disabledSrc>/images/EditLineDisable.png</disabledSrc>
293
      <transactionResponseModel>transaction</transactionResponseModel>
294
      <webServiceUrl>http://localhost:8080/geoserver/wfs</webServiceUrl>
295
      <featureXpath>/gml:featureMember/topp:bc_roads/topp:the_geom/gml:MultiLineString/gml:lineStringMember/gml:LineString/gml:coordinates</featureXpath>
296
      <defaultModelUrl>../data/gml/roads.xml</defaultModelUrl>
297
      <targetContext>mainMap</targetContext>
298
      </EditLine-->
299
    <Measurement id="measurement">
300
      <buttonBar>mainButtonBar</buttonBar>
301
      <targetModel>featureCollection2</targetModel>
302
      <targetContext>mainMap</targetContext>
303
      <class>RadioButton</class>
304
      <enabledSrc>/images/MeasureEnable.png</enabledSrc>
305
      <disabledSrc>/images/MeasureDisable.png</disabledSrc>
306
      <featureXpath>/gml:featureMember/topp:bc_roads/topp:the_geom/gml:MultiLineString/gml:lineStringMember/gml:LineString/gml:coordinates</featureXpath>
307
      <defaultModelUrl>../data/gml/measurement.xml</defaultModelUrl>
308
    </Measurement>
309
    <Save id="save">
310
      <buttonBar>mainButtonBar</buttonBar>
311
      <targetModel>mainMap</targetModel>
312
      <class>Button</class>
313
      <disabledSrc>/images/SaveDisable.png</disabledSrc>
314
      <popupWindowName>modelXML</popupWindowName>
315
    </Save>
316
  </widgets>
317
  <skinDir>../../lib/skin/default</skinDir>
318
</MapbuilderConfig>
(2-2/3)