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" 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: GPL as per: http://www.gnu.org/copyleft/gpl.html
|
8
|
|
9
|
$Id: africa_frame_config.xml 3459 2007-09-17 21:56:45Z leinfelder $
|
10
|
-->
|
11
|
<!--
|
12
|
All static images should be relative to this URL.
|
13
|
This dir is relative the dir of the main html file.
|
14
|
-->
|
15
|
<models>
|
16
|
<Context id="mainMap">
|
17
|
<defaultModelUrl>africa_frame_model.xml</defaultModelUrl>
|
18
|
<widgets>
|
19
|
<Loading id="loading"/>
|
20
|
<Loading2 id="loading2">
|
21
|
<mapContainerId>mainMapPane</mapContainerId>
|
22
|
</Loading2>
|
23
|
|
24
|
<MapPane id="mainMapWidget">
|
25
|
<htmlTagId>mainMapPane</htmlTagId>
|
26
|
<mapContainerId>mainMapContainer</mapContainerId>
|
27
|
</MapPane>
|
28
|
<AoiBoxWZ id="aoiBox2">
|
29
|
<htmlTagId>mainMapPane</htmlTagId>
|
30
|
<stylesheet>../../../../spatial/mapbuilder/lib/widget/GmlRenderer.xsl</stylesheet>
|
31
|
<lineColor>#FF0000</lineColor>
|
32
|
<lineWidth>1</lineWidth>
|
33
|
<crossSize>15</crossSize>
|
34
|
<mapContainerId>mainMapContainer</mapContainerId>
|
35
|
</AoiBoxWZ>
|
36
|
<CursorTrack id="cursorTrack">
|
37
|
<mouseHandler>mainMap</mouseHandler>
|
38
|
<showDMS>false</showDMS>
|
39
|
<showLatLong>true</showLatLong>
|
40
|
</CursorTrack>
|
41
|
<Legend id="legend">
|
42
|
</Legend>
|
43
|
<MapScaleText id="mapScaleText">
|
44
|
</MapScaleText>
|
45
|
</widgets>
|
46
|
<tools>
|
47
|
<AoiMouseHandler id="mainAoi"/>
|
48
|
<DragPanHandler id="mainDragPan">
|
49
|
<enabled>false</enabled>
|
50
|
</DragPanHandler>
|
51
|
<MouseClickHandler id="mainMouseClick"/>
|
52
|
</tools>
|
53
|
</Context>
|
54
|
|
55
|
<Context id="locator">
|
56
|
<defaultModelUrl>africa_frame_model.xml</defaultModelUrl>
|
57
|
<widgets>
|
58
|
<MapPane id="locatorWidget">
|
59
|
<htmlTagId>locatorMap</htmlTagId>
|
60
|
<targetModel>mainMap</targetModel>
|
61
|
<mapContainerId>locatorContainer</mapContainerId>
|
62
|
<fixedWidth>180</fixedWidth>
|
63
|
</MapPane>
|
64
|
<AoiBoxWZ id="aoiBox2">
|
65
|
<htmlTagId>locatorMap</htmlTagId>
|
66
|
<stylesheet>../../../../spatial/mapbuilder/lib/widget/GmlRenderer.xsl</stylesheet>
|
67
|
<lineColor>#FF0000</lineColor>
|
68
|
<lineWidth>1</lineWidth>
|
69
|
<crossSize>15</crossSize>
|
70
|
<mapContainerId>locatorContainer</mapContainerId>
|
71
|
</AoiBoxWZ>
|
72
|
</widgets>
|
73
|
<tools>
|
74
|
<AoiMouseHandler id="locatorAoi"/>
|
75
|
<ZoomToAoi id="locatorZoomToAoi">
|
76
|
<targetModel>mainMap</targetModel>
|
77
|
</ZoomToAoi>
|
78
|
</tools>
|
79
|
</Context>
|
80
|
|
81
|
<Model id="locations">
|
82
|
<defaultModelUrl>./named_locations.xml</defaultModelUrl>
|
83
|
<widgets>
|
84
|
<Locations id="locationsSelect">
|
85
|
<targetModel>mainMap</targetModel>
|
86
|
</Locations>
|
87
|
</widgets>
|
88
|
<tools>
|
89
|
<ZoomToAoi id="locationsZoomToAoi">
|
90
|
<targetModel>mainMap</targetModel>
|
91
|
</ZoomToAoi>
|
92
|
</tools>
|
93
|
</Model>
|
94
|
|
95
|
<Transaction id="transaction">
|
96
|
<widgets>
|
97
|
<TransactionResponse id="transactionResponse">
|
98
|
</TransactionResponse>
|
99
|
</widgets>
|
100
|
</Transaction>
|
101
|
<FeatureCollection id="featureCollection">
|
102
|
<namespace>xmlns:gml='http://www.opengis.net/gml' xmlns:wfs='http://www.opengis.net/wfs' xmlns:topp='http://www.openplans.org/topp'</namespace>
|
103
|
<widgets>
|
104
|
<GmlRendererWZ id="testGmlRenderer">
|
105
|
<htmlTagId>mainMapPane</htmlTagId>
|
106
|
<targetModel>mainMap</targetModel>
|
107
|
<mapContainerId>mainMapContainer</mapContainerId>
|
108
|
<lineColor>#FF0000</lineColor>
|
109
|
<lineWidth>1</lineWidth>
|
110
|
<pointDiameter>10</pointDiameter>
|
111
|
</GmlRendererWZ>
|
112
|
<FeatureList id="featureList">
|
113
|
</FeatureList>
|
114
|
</widgets>
|
115
|
</FeatureCollection>
|
116
|
</models>
|
117
|
<widgets>
|
118
|
<ZoomIn id="zoomIn">
|
119
|
<buttonBar>mainButtonBar</buttonBar>
|
120
|
<targetModel>mainMap</targetModel>
|
121
|
<mouseHandler>mainAoi</mouseHandler>
|
122
|
<class>RadioButton</class>
|
123
|
<selected>true</selected>
|
124
|
<enabledSrc>/images/ZoomInEnable.png</enabledSrc>
|
125
|
<disabledSrc>/images/ZoomInDisable.png</disabledSrc>
|
126
|
<tooltip xml:lang="en">click map or drag to zoom in</tooltip>
|
127
|
<!--tooltip xml:lang="fr">cliquer et faire glisser la souris pour agrandir</tooltip-->
|
128
|
</ZoomIn>
|
129
|
<ZoomOut id="zoomOut">
|
130
|
<buttonBar>mainButtonBar</buttonBar>
|
131
|
<targetModel>mainMap</targetModel>
|
132
|
<mouseHandler>mainAoi</mouseHandler>
|
133
|
<class>RadioButton</class>
|
134
|
<enabledSrc>/images/ZoomOutEnable.png</enabledSrc>
|
135
|
<disabledSrc>/images/ZoomOutDisable.png</disabledSrc>
|
136
|
<tooltip xml:lang="en">click map to zoom out</tooltip>
|
137
|
<!--tooltip xml:lang="fr">cliquer pour rée</tooltip-->
|
138
|
</ZoomOut>
|
139
|
<DragPan id="dragPan">
|
140
|
<buttonBar>mainButtonBar</buttonBar>
|
141
|
<targetModel>mainMap</targetModel>
|
142
|
<mouseHandler>mainDragPan</mouseHandler>
|
143
|
<class>RadioButton</class>
|
144
|
<enabledSrc>/images/PanEnable.png</enabledSrc>
|
145
|
<disabledSrc>/images/PanDisable.png</disabledSrc>
|
146
|
<tooltip xml:lang="en">click and drag to pan</tooltip>
|
147
|
<!--tooltip xml:lang="fr">cliquer et faire glisser la souris pour voir un autre parti de la carte</tooltip-->
|
148
|
</DragPan>
|
149
|
<Reset id="reset">
|
150
|
<buttonBar>mainButtonBar</buttonBar>
|
151
|
<targetModel>mainMap</targetModel>
|
152
|
<class>Button</class>
|
153
|
<disabledSrc>/images/ResetExtentDisable.png</disabledSrc>
|
154
|
<tooltip xml:lang="en">reset the map to full extent</tooltip>
|
155
|
<!--tooltip xml:lang="fr">redonner la carte ses dimensions complèts</tooltip-->
|
156
|
</Reset>
|
157
|
|
158
|
<!--
|
159
|
<EditPoint id="editPoint">
|
160
|
<buttonBar>mainButtonBar</buttonBar>
|
161
|
<mouseHandler>mainMouseClick</mouseHandler>
|
162
|
<class>RadioButton</class>
|
163
|
<enabledSrc>/images/EditPointEnable.png</enabledSrc>
|
164
|
<disabledSrc>/images/EditPointDisable.png</disabledSrc>
|
165
|
<tooltip xml:lang="en">click on map to create a point feature</tooltip>
|
166
|
<tooltip xml:lang="fr">click on map to create a point feature</tooltip>
|
167
|
<targetModel>featureCollection</targetModel>
|
168
|
<transactionResponseModel>transaction</transactionResponseModel>
|
169
|
<webServiceUrl>../../../../wfs</webServiceUrl>
|
170
|
<featureXpath>/gml:featureMember/topp:metacat_testdata/topp:the_geom/gml:Point/gml:coordinates</featureXpath>
|
171
|
<featureXpath>/gml:featureMember/topp:metacat_testdata/topp:ID</featureXpath>
|
172
|
<defaultModelUrl>template_metacat.xml</defaultModelUrl>
|
173
|
<targetContext>mainMap</targetContext>
|
174
|
</EditPoint>
|
175
|
-->
|
176
|
|
177
|
<!-- <GetFeatureInfo id="getFeatureInfo">
|
178
|
<buttonBar>mainButtonBar</buttonBar>
|
179
|
<targetModel>mainMap</targetModel>
|
180
|
<context>mainMap</context>
|
181
|
<mouseHandler>mainAoi</mouseHandler>
|
182
|
<class>RadioButton</class>
|
183
|
<enabledSrc>/images/QueryEnable.png</enabledSrc>
|
184
|
<disabledSrc>/images/QueryDisable.png</disabledSrc>
|
185
|
<tooltip xml:lang="en">select single dataset</tooltip>
|
186
|
</GetFeatureInfo> -->
|
187
|
|
188
|
<!--SetAoi id="setAoi">
|
189
|
<buttonBar>mainButtonBar</buttonBar>
|
190
|
<targetModel>mainMap</targetModel>
|
191
|
<mouseHandler>mainAoi</mouseHandler>
|
192
|
<class>RadioButton</class>
|
193
|
<enabledSrc>/images/SetAoiEnable.png</enabledSrc>
|
194
|
<disabledSrc>/images/SetAoiDisable.png</disabledSrc>
|
195
|
</SetAoi-->
|
196
|
|
197
|
<AoiMetacatQuery id="aoiMetacatQuery">
|
198
|
<buttonBar>mainButtonBar</buttonBar>
|
199
|
<targetModel>mainMap</targetModel>
|
200
|
<mouseHandler>mainAoi</mouseHandler>
|
201
|
<class>RadioButton</class>
|
202
|
<enabledSrc>/images/QueryEnable.png</enabledSrc>
|
203
|
<disabledSrc>/images/QueryDisable.png</disabledSrc>
|
204
|
<tooltip xml:lang="en">select multiple datasets</tooltip>
|
205
|
<metacat>../../../../metacat</metacat>
|
206
|
<skin>sanparks</skin>
|
207
|
<pixel_tolerance>5</pixel_tolerance>
|
208
|
</AoiMetacatQuery>
|
209
|
|
210
|
</widgets>
|
211
|
<skinDir>../../../../spatial/mapbuilder/lib/skin/default</skinDir>
|
212
|
<!-- Url of LOCAL redirection script, required to access external URLs -->
|
213
|
<proxyUrl>../../proxy.jsp</proxyUrl>
|
214
|
<!--
|
215
|
<serializeUrl>../../../../spatial/mapbuilder/writeXml</serializeUrl>
|
216
|
-->
|
217
|
</MapbuilderConfig>
|
218
|
|