Project

General

Profile

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="referenceTemplate" 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
	<!--
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
		<Context id="mainMap">
18
			<defaultModelUrl>tasmania.xml</defaultModelUrl>
19
			<widgets>
20
				<MapPane id="mainMapWidget">
21
					<htmlTagId>mainMapPane</htmlTagId>
22
					<mapContainerId>mainMapContainer</mapContainerId>
23
				</MapPane>
24
				<Loading id="loading"/>
25
				<Loading2 id="loading2">
26
					<mapContainerId>mainMapContainer</mapContainerId>
27
				</Loading2>
28
				<AoiBoxWZ id="aoiBox2">
29
					<htmlTagId>mainMapPane</htmlTagId>
30
					<stylesheet>../../lib/widget/GmlRenderer.xsl</stylesheet>
31
					<mapContainerId>mainMapContainer</mapContainerId>
32
					<lineColor>#FF0000</lineColor>
33
					<lineWidth>1</lineWidth>
34
					<crossSize>15</crossSize>
35
				</AoiBoxWZ>
36
				<CursorTrack id="cursorTrack">
37
					<mouseHandler>mainMap</mouseHandler>
38
				</CursorTrack>
39
				<Legend id="legend"/>
40
				<Widget id="version">
41
					<stylesheet>../../lib/widget/Version.xsl</stylesheet>
42
				</Widget>
43
			</widgets>
44
			<tools>
45
				<AoiMouseHandler id="mainAoi"/>
46
				<DragPanHandler id="mainDragPan">
47
					<enabled>false</enabled>
48
				</DragPanHandler>
49
				<MouseClickHandler id="mainMouseClick"/>
50
			</tools>
51
		</Context>
52
		<Context id="locator">
53
			<defaultModelUrl>../data/context/locatorMap.xml</defaultModelUrl>
54
			<widgets>
55
				<MapPane id="locatorWidget">
56
					<htmlTagId>locatorMap</htmlTagId>
57
					<targetModel>mainMap</targetModel>
58
					<mapContainerId>locatorContainer</mapContainerId>
59
					<fixedWidth>180</fixedWidth>
60
				</MapPane>
61
				<AoiBoxWZ id="aoiBox3">
62
					<htmlTagId>locatorMap</htmlTagId>
63
					<stylesheet>../../lib/widget/GmlRenderer.xsl</stylesheet>
64
					<mapContainerId>locatorContainer</mapContainerId>
65
					<lineColor>#FF0000</lineColor>
66
					<lineWidth>1</lineWidth>
67
					<crossSize>15</crossSize>
68
				</AoiBoxWZ>
69
			</widgets>
70
			<tools>
71
				<AoiMouseHandler id="locatorAoi"/>
72
				<ZoomToAoi id="locatorZoomToAoi">
73
					<targetModel>mainMap</targetModel>
74
				</ZoomToAoi>
75
			</tools>
76
		</Context>
77
		<Transaction id="transaction">
78
			<widgets>
79
				<TransactionResponse id="transactionResponse">
80
        </TransactionResponse>
81
			</widgets>
82
		</Transaction>
83
		<FeatureCollection id="featureCollection">
84
			<widgets>
85
				<GmlRendererWZ id="testGmlRenderer">
86
					<htmlTagId>mainMapPane</htmlTagId>
87
					<targetModel>mainMap</targetModel>
88
					<mapContainerId>mainMapContainer</mapContainerId>
89
					<lineColor>#FF0000</lineColor>
90
					<lineWidth>3</lineWidth>
91
					<pointDiameter>10</pointDiameter>
92
				</GmlRendererWZ>
93
				<FeatureList id="featureList">
94
        </FeatureList>
95
			</widgets>
96
			<namespace>xmlns:gml='http://www.opengis.net/gml' xmlns:wfs='http://www.opengis.net/wfs' xmlns:topp='http://www.openplans.org/topp'</namespace>
97
		</FeatureCollection>
98
	</models>
99
	<widgets>
100
		<DeleteFeature id="deleteFeature">
101
			<buttonBar>mainButtonBar</buttonBar>
102
			<targetModel>featureCollection</targetModel>
103
			<class>Button</class>
104
			<disabledSrc>/images/DeleteDisable.png</disabledSrc>
105
			<transactionResponseModel>transaction</transactionResponseModel>
106
			<webServiceUrl>../../../geoserver/wfs</webServiceUrl>
107
			<targetContext>mainMap</targetContext>
108
		</DeleteFeature>
109
		<ZoomIn id="zoomIn">
110
			<buttonBar>mainButtonBar</buttonBar>
111
			<targetModel>mainMap</targetModel>
112
			<mouseHandler>mainAoi</mouseHandler>
113
			<class>RadioButton</class>
114
			<selected>true</selected>
115
			<enabledSrc>/images/ZoomInEnable.png</enabledSrc>
116
			<disabledSrc>/images/ZoomInDisable.png</disabledSrc>
117
		</ZoomIn>
118
		<ZoomOut id="zoomOut">
119
			<buttonBar>mainButtonBar</buttonBar>
120
			<targetModel>mainMap</targetModel>
121
			<mouseHandler>mainAoi</mouseHandler>
122
			<class>RadioButton</class>
123
			<enabledSrc>/images/ZoomOutEnable.png</enabledSrc>
124
			<disabledSrc>/images/ZoomOutDisable.png</disabledSrc>
125
		</ZoomOut>
126
		<DragPan id="dragPan">
127
			<buttonBar>mainButtonBar</buttonBar>
128
			<targetModel>mainMap</targetModel>
129
			<mouseHandler>mainDragPan</mouseHandler>
130
			<class>RadioButton</class>
131
			<enabledSrc>/images/PanEnable.png</enabledSrc>
132
			<disabledSrc>/images/PanDisable.png</disabledSrc>
133
		</DragPan>
134
		<Reset id="reset">
135
			<buttonBar>mainButtonBar</buttonBar>
136
			<targetModel>mainMap</targetModel>
137
			<class>Button</class>
138
			<disabledSrc>/images/ResetExtentDisable.png</disabledSrc>
139
		</Reset>
140
		<EditPoint id="editPoint">
141
			<buttonBar>mainButtonBar</buttonBar>
142
			<targetModel>featureCollection</targetModel>
143
			<mouseHandler>mainMouseClick</mouseHandler>
144
			<class>RadioButton</class>
145
			<enabledSrc>/images/EditPointEnable.png</enabledSrc>
146
			<disabledSrc>/images/EditPointDisable.png</disabledSrc>
147
			<transactionResponseModel>transaction</transactionResponseModel>
148
			<webServiceUrl>../../../geoserver/wfs</webServiceUrl>
149
			<targetContext>mainMap</targetContext>
150
			<featureXpath>/gml:featureMember/topp:tasmania_cities/topp:the_geom/gml:MultiPoint/gml:pointMember/gml:Point/gml:coordinates</featureXpath>
151
			<defaultModelUrl>template_cities.xml</defaultModelUrl>
152
		</EditPoint>
153
		<EditLine id="editLine">
154
			<buttonBar>mainButtonBar</buttonBar>
155
			<targetModel>featureCollection</targetModel>
156
			<mouseHandler>mainMouseClick</mouseHandler>
157
			<class>RadioButton</class>
158
			<enabledSrc>/images/EditLineEnable.png</enabledSrc>
159
			<disabledSrc>/images/EditLineDisable.png</disabledSrc>
160
			<transactionResponseModel>transaction</transactionResponseModel>
161
			<webServiceUrl>../../../geoserver/wfs</webServiceUrl>
162
			<targetContext>mainMap</targetContext>
163
			<featureXpath>/gml:featureMember/topp:tasmania_roads/topp:the_geom/gml:MultiLineString/gml:lineStringMember/gml:LineString/gml:coordinates</featureXpath>
164
			<defaultModelUrl>template_road.xml</defaultModelUrl>
165
		</EditLine>
166
		<InsertFeature id="insertFeature">
167
			<buttonBar>mainButtonBar</buttonBar>
168
			<targetModel>featureCollection</targetModel>
169
			<class>Button</class>
170
			<disabledSrc>/images/SaveDisable.png</disabledSrc>
171
			<transactionResponseModel>transaction</transactionResponseModel>
172
			<webServiceUrl>../../../geoserver/wfs</webServiceUrl>
173
			<targetContext>mainMap</targetContext>
174
		</InsertFeature>
175
		<WfsGetFeature id="wfsGetFeature">
176
			<buttonBar>mainButtonBar</buttonBar>
177
			<targetModel>mainMap</targetModel>
178
			<mouseHandler>mainMouseClick</mouseHandler>
179
			<class>RadioButton</class>
180
			<enabledSrc>/images/QueryEnable.png</enabledSrc>
181
			<disabledSrc>/images/QueryDisable.png</disabledSrc>
182
			<transactionResponseModel>featureCollection</transactionResponseModel>
183
			<webServiceUrl>../../../geoserver/wfs</webServiceUrl>
184
			<typeName>topp:tasmania_cities,topp:tasmania_roads</typeName>
185
			<tolerance>5</tolerance>
186
		</WfsGetFeature>
187
	</widgets>
188
	<skinDir>../../lib/skin/default</skinDir>
189
	<widgetTextUrl>/widgetText.xml</widgetTextUrl>
190
	<!-- relative to the skin dir -->
191
	<!-- Url of LOCAL redirection script, required to access external URLs -->
192
</MapbuilderConfig>
(1-1/6)