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: http://www.gnu.org/copyleft/lesser.html
|
9
|
|
10
|
$Id: config.xml 3875 2008-02-27 11:10:55Z steven $
|
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
|
<MapPaneOL id="mainMapWidget">
|
21
|
<htmlTagId>mainMapPane</htmlTagId>
|
22
|
<fixedSize>true</fixedSize>
|
23
|
</MapPaneOL>
|
24
|
<!--Loading id="loading" /-->
|
25
|
<CursorTrack id="cursorTrack"/>
|
26
|
<Legend id="legend" />
|
27
|
<Version id="version" />
|
28
|
<OverviewMap id="locatorWidget">
|
29
|
<htmlTagId>locatorMap</htmlTagId>
|
30
|
<width>180</width>
|
31
|
<layers>
|
32
|
<layerName>basic</layerName>
|
33
|
<layerName>topp:tasmania_water_bodies</layerName>
|
34
|
<layerName>topp:tasmania_roads</layerName>
|
35
|
<layerName>topp:tasmania_cities</layerName>
|
36
|
</layers>
|
37
|
</OverviewMap>
|
38
|
</widgets>
|
39
|
</Context>
|
40
|
<Transaction id="transaction">
|
41
|
<widgets>
|
42
|
<TransactionResponse id="transactionResponse"></TransactionResponse>
|
43
|
</widgets>
|
44
|
</Transaction>
|
45
|
<FeatureCollection id="featureCollection">
|
46
|
<widgets>
|
47
|
<TipWidgetOL id="featurePopup">
|
48
|
<width>200</width>
|
49
|
<height>150</height>
|
50
|
<opacity>0.8</opacity>
|
51
|
<backgroundColor>#D0D0D0</backgroundColor>
|
52
|
<border>1px solid black</border>
|
53
|
</TipWidgetOL>
|
54
|
<GmlRendererOL id="testGmlRenderer">
|
55
|
<targetModel>mainMap</targetModel>
|
56
|
<sldModel>sld</sldModel>
|
57
|
<featureOnClick>featurePopup</featureOnClick>
|
58
|
</GmlRendererOL>
|
59
|
<FeatureList id="featureList"></FeatureList>
|
60
|
</widgets>
|
61
|
<tools>
|
62
|
<FeatureSelectHandler id="featureHighlighter">
|
63
|
<targetModel>mainMap</targetModel>
|
64
|
</FeatureSelectHandler>
|
65
|
</tools>
|
66
|
<namespace>xmlns:gml='http://www.opengis.net/gml' xmlns:wfs='http://www.opengis.net/wfs' xmlns:topp='http://www.openplans.org/topp'</namespace>
|
67
|
</FeatureCollection>
|
68
|
<StyledLayerDescriptor id="sld">
|
69
|
<defaultModelUrl>../data/features.sld</defaultModelUrl>
|
70
|
</StyledLayerDescriptor>
|
71
|
</models>
|
72
|
<widgets>
|
73
|
<ZoomIn id="zoomIn">
|
74
|
<buttonBar>mainButtonBar</buttonBar>
|
75
|
<targetModel>mainMap</targetModel>
|
76
|
<class>RadioButton</class>
|
77
|
<selected>true</selected>
|
78
|
<enabledSrc>/images/ZoomInEnable.png</enabledSrc>
|
79
|
<disabledSrc>/images/ZoomInDisable.png</disabledSrc>
|
80
|
</ZoomIn>
|
81
|
<ZoomOut id="zoomOut">
|
82
|
<buttonBar>mainButtonBar</buttonBar>
|
83
|
<targetModel>mainMap</targetModel>
|
84
|
<class>RadioButton</class>
|
85
|
<enabledSrc>/images/ZoomOutEnable.png</enabledSrc>
|
86
|
<disabledSrc>/images/ZoomOutDisable.png</disabledSrc>
|
87
|
</ZoomOut>
|
88
|
<DragPan id="dragPan">
|
89
|
<buttonBar>mainButtonBar</buttonBar>
|
90
|
<targetModel>mainMap</targetModel>
|
91
|
<class>RadioButton</class>
|
92
|
<enabledSrc>/images/PanEnable.png</enabledSrc>
|
93
|
<disabledSrc>/images/PanDisable.png</disabledSrc>
|
94
|
</DragPan>
|
95
|
<Reset id="reset">
|
96
|
<buttonBar>mainButtonBar</buttonBar>
|
97
|
<targetModel>mainMap</targetModel>
|
98
|
<class>Button</class>
|
99
|
<disabledSrc>/images/ResetExtentDisable.png</disabledSrc>
|
100
|
</Reset>
|
101
|
<EditPoint id="editPoint">
|
102
|
<buttonBar>mainButtonBar</buttonBar>
|
103
|
<targetModel>featureCollection</targetModel>
|
104
|
<targetContext>mainMap</targetContext>
|
105
|
<class>RadioButton</class>
|
106
|
<enabledSrc>/images/EditPointEnable.png</enabledSrc>
|
107
|
<disabledSrc>/images/EditPointDisable.png</disabledSrc>
|
108
|
<transactionResponseModel>transaction</transactionResponseModel>
|
109
|
<featureXpath>/gml:FeatureCollection/gml:featureMember/topp:tasmania_cities/topp:the_geom/gml:MultiPoint/gml:pointMember/gml:Point/gml:coordinates</featureXpath>
|
110
|
<defaultModelUrl>template_cities.xml</defaultModelUrl>
|
111
|
</EditPoint>
|
112
|
<EditLine id="editLine">
|
113
|
<buttonBar>mainButtonBar</buttonBar>
|
114
|
<targetModel>featureCollection</targetModel>
|
115
|
<targetContext>mainMap</targetContext>
|
116
|
<class>RadioButton</class>
|
117
|
<enabledSrc>/images/EditLineEnable.png</enabledSrc>
|
118
|
<disabledSrc>/images/EditLineDisable.png</disabledSrc>
|
119
|
<transactionResponseModel>transaction</transactionResponseModel>
|
120
|
<featureXpath>//gml:coordinates</featureXpath>
|
121
|
<defaultModelUrl>template_road.xml</defaultModelUrl>
|
122
|
</EditLine>
|
123
|
<EditPolygon id="editPolygon">
|
124
|
<buttonBar>mainButtonBar</buttonBar>
|
125
|
<targetModel>featureCollection</targetModel>
|
126
|
<targetContext>mainMap</targetContext>
|
127
|
<class>RadioButton</class>
|
128
|
<enabledSrc>/images/EditPolygonEnable.png</enabledSrc>
|
129
|
<disabledSrc>/images/EditPolygonDisable.png</disabledSrc>
|
130
|
<transactionResponseModel>transaction</transactionResponseModel>
|
131
|
<featureXpath>//gml:coordinates</featureXpath>
|
132
|
<defaultModelUrl>template_waterbodies.xml</defaultModelUrl>
|
133
|
</EditPolygon>
|
134
|
<InsertFeature id="insertFeature">
|
135
|
<buttonBar>mainButtonBar</buttonBar>
|
136
|
<targetModel>featureCollection</targetModel>
|
137
|
<targetContext>mainMap</targetContext>
|
138
|
<class>Button</class>
|
139
|
<disabledSrc>/images/SaveDisable.png</disabledSrc>
|
140
|
<transactionResponseModel>transaction</transactionResponseModel>
|
141
|
<webServiceUrl>../../../geoserver/wfs</webServiceUrl>
|
142
|
</InsertFeature>
|
143
|
<DeleteFeature id="deleteFeature">
|
144
|
<buttonBar>mainButtonBar</buttonBar>
|
145
|
<targetModel>featureCollection</targetModel>
|
146
|
<targetContext>mainMap</targetContext>
|
147
|
<class>Button</class>
|
148
|
<disabledSrc>/images/DeleteDisable.png</disabledSrc>
|
149
|
<transactionResponseModel>transaction</transactionResponseModel>
|
150
|
<webServiceUrl>../../../geoserver/wfs</webServiceUrl>
|
151
|
</DeleteFeature>
|
152
|
<WfsGetFeature id="wfsGetFeature">
|
153
|
<buttonBar>mainButtonBar</buttonBar>
|
154
|
<targetModel>mainMap</targetModel>
|
155
|
<class>RadioButton</class>
|
156
|
<enabledSrc>/images/QueryEnable.png</enabledSrc>
|
157
|
<disabledSrc>/images/QueryDisable.png</disabledSrc>
|
158
|
<transactionResponseModel>featureCollection</transactionResponseModel>
|
159
|
<webServiceUrl>../../../geoserver/wfs</webServiceUrl>
|
160
|
<typeName>topp:tasmania_cities,topp:tasmania_roads,topp:tasmania_water_bodies</typeName>
|
161
|
<tolerance>5</tolerance>
|
162
|
<maxFeatures>100</maxFeatures>
|
163
|
</WfsGetFeature>
|
164
|
<ExampleList id="exampleList"><!-- this is the widget that draws the example menu -->
|
165
|
<scriptFile>../ExampleList.js</scriptFile>
|
166
|
<stylesheet>../ExampleList.xsl</stylesheet>
|
167
|
</ExampleList>
|
168
|
</widgets>
|
169
|
<skinDir>../../lib/skin/default</skinDir>
|
170
|
<!-- Url of LOCAL redirection script, required to access external URLs -->
|
171
|
</MapbuilderConfig>
|