1 |
4307
|
leinfelder
|
<?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.xml 3980 2008-04-17 09:03:57Z steven $
|
13 |
|
|
-->
|
14 |
|
|
<models>
|
15 |
|
|
<Context id="mainMap">
|
16 |
|
|
<defaultModelUrl>../data/context/demisWorldMap.xml</defaultModelUrl>
|
17 |
|
|
<widgets>
|
18 |
|
|
<MapPaneOL id="mainMapWidget">
|
19 |
|
|
<htmlTagId>mainMapPane</htmlTagId>
|
20 |
|
|
<fixedSize>true</fixedSize>
|
21 |
|
|
</MapPaneOL>
|
22 |
|
|
<CursorTrack id="cursorTrack"/>
|
23 |
|
|
<LayerControl id="contextLegend">
|
24 |
|
|
<htmlTagId>workspace</htmlTagId>
|
25 |
|
|
<outputNodeId>workspaceCanvas</outputNodeId>
|
26 |
|
|
<legendImageEnable>/images/LegendEnable.png</legendImageEnable>
|
27 |
|
|
<legendImageDisable>/images/LegendDisable.png</legendImageDisable>
|
28 |
|
|
<moveUpImage>/images/LayerMoveUpDisable.png</moveUpImage>
|
29 |
|
|
<moveDownImage>/images/LayerMoveDownDisable.png</moveDownImage>
|
30 |
|
|
<deleteImage>/images/LayerRemoveDisable.png</deleteImage>
|
31 |
|
|
</LayerControl>
|
32 |
|
|
<Loading2 id="loading2">
|
33 |
|
|
</Loading2>
|
34 |
|
|
</widgets>
|
35 |
|
|
<tools>
|
36 |
|
|
<WebServiceRequest id="featureInfoController">
|
37 |
|
|
<targetModel>featureInfoResponse</targetModel>
|
38 |
|
|
<requestName>wms:GetFeatureInfo</requestName>
|
39 |
|
|
<infoFormat>application/vnd.ogc.gml</infoFormat>
|
40 |
|
|
<featureCount>1</featureCount>
|
41 |
|
|
</WebServiceRequest>
|
42 |
|
|
</tools>
|
43 |
|
|
<nodeSelectXpath>/wmc:ViewContext/wmc:LayerList/wmc:Layer</nodeSelectXpath>
|
44 |
|
|
</Context>
|
45 |
|
|
<Context id="locator">
|
46 |
|
|
<defaultModelUrl>../data/context/locatorMap.xml</defaultModelUrl>
|
47 |
|
|
<widgets>
|
48 |
|
|
<MapPaneOL id="locatorWidget">
|
49 |
|
|
<htmlTagId>locatorMap</htmlTagId>
|
50 |
|
|
<targetModel>mainMap</targetModel>
|
51 |
|
|
<fixedSize>true</fixedSize>
|
52 |
|
|
<imageBuffer>1</imageBuffer>
|
53 |
|
|
</MapPaneOL>
|
54 |
|
|
<AoiBoxOL id="aoiBoxLocator">
|
55 |
|
|
<htmlTagId>locatorMap</htmlTagId>
|
56 |
|
|
<lineColor>#FF0000</lineColor>
|
57 |
|
|
<lineWidth>1</lineWidth>
|
58 |
|
|
<crossSize>15</crossSize>
|
59 |
|
|
</AoiBoxOL>
|
60 |
|
|
</widgets>
|
61 |
|
|
<tools>
|
62 |
|
|
<ZoomToAoi id="locatorZoomToAoi">
|
63 |
|
|
<targetModel>mainMap</targetModel>
|
64 |
|
|
</ZoomToAoi>
|
65 |
|
|
</tools>
|
66 |
|
|
</Context>
|
67 |
|
|
<Model id="myMapCollection">
|
68 |
|
|
<defaultModelUrl>../data/context/worldMapsCollection.xml</defaultModelUrl>
|
69 |
|
|
<widgets>
|
70 |
|
|
<CollectionList id="mapList">
|
71 |
|
|
<targetModel>mainMap</targetModel>
|
72 |
|
|
</CollectionList>
|
73 |
|
|
</widgets>
|
74 |
|
|
</Model>
|
75 |
|
|
<!-- use this with a WFS capabilities model -->
|
76 |
|
|
<WfsCapabilities id="wfsCapTemplate">
|
77 |
|
|
<defaultModelUrl>/geoserver/wfs?version=1.0.0&service=WFS&request=GetCapabilities</defaultModelUrl>
|
78 |
|
|
<models>
|
79 |
|
|
<Model id="featureTypeTemplate" template="true">
|
80 |
|
|
<widgets>
|
81 |
|
|
<FilterAttributes id="attributeFilter">
|
82 |
|
|
<htmlTagId>workspace</htmlTagId>
|
83 |
|
|
<outputNodeId>workspaceCanvas</outputNodeId>
|
84 |
|
|
</FilterAttributes>
|
85 |
|
|
</widgets>
|
86 |
|
|
</Model>
|
87 |
|
|
<FeatureCollection id="getFeatureTemplate" template="true">
|
88 |
|
|
<method>get</method>
|
89 |
|
|
<widgets>
|
90 |
|
|
|
91 |
|
|
<GmlRendererOL id="testGmlRenderer">
|
92 |
|
|
<targetModel>mainMap</targetModel>
|
93 |
|
|
</GmlRendererOL>
|
94 |
|
|
<Legend id="wfsLegend">
|
95 |
|
|
<htmlTagId>workspace</htmlTagId>
|
96 |
|
|
<outputNodeId>workspaceCanvas</outputNodeId>
|
97 |
|
|
</Legend>
|
98 |
|
|
</widgets>
|
99 |
|
|
</FeatureCollection>
|
100 |
|
|
<!--Transaction id="transactionTemplate" template="true">
|
101 |
|
|
<method>post</method>
|
102 |
|
|
<widgets>
|
103 |
|
|
<TransactionResponse id="transResponse"/>
|
104 |
|
|
</widgets>
|
105 |
|
|
</Transaction-->
|
106 |
|
|
</models>
|
107 |
|
|
<widgets>
|
108 |
|
|
<SelectFeatureType id="featureTypes">
|
109 |
|
|
<htmlTagId>workspace</htmlTagId>
|
110 |
|
|
<outputNodeId>workspaceCanvas</outputNodeId>
|
111 |
|
|
<toolId>wfsController</toolId>
|
112 |
|
|
</SelectFeatureType>
|
113 |
|
|
<ModelUrlInput id="wfsUrlInput">
|
114 |
|
|
<htmlTagId>workspace</htmlTagId>
|
115 |
|
|
<outputNodeId>workspaceCanvas</outputNodeId>
|
116 |
|
|
<title>Enter a WFS GetCapabilities URL:</title>
|
117 |
|
|
</ModelUrlInput>
|
118 |
|
|
</widgets>
|
119 |
|
|
<tools>
|
120 |
|
|
<WebServiceRequest id="wfsGetFeature">
|
121 |
|
|
<targetModel>getFeatureTemplate</targetModel>
|
122 |
|
|
<requestName>wfs:GetFeature</requestName>
|
123 |
|
|
<maxFeatures>20</maxFeatures>
|
124 |
|
|
</WebServiceRequest>
|
125 |
|
|
<WebServiceRequest id="wfsDescribeFeature">
|
126 |
|
|
<targetModel>featureTypeTemplate</targetModel>
|
127 |
|
|
<requestName>wfs:DescribeFeatureType</requestName>
|
128 |
|
|
</WebServiceRequest>
|
129 |
|
|
<!--WebServiceRequest id="wfsTransaction">
|
130 |
|
|
<targetModel>transactionTemplate</targetModel>
|
131 |
|
|
<requestName>wfs:Transaction</requestName>
|
132 |
|
|
</WebServiceRequest-->
|
133 |
|
|
</tools>
|
134 |
|
|
<nodeSelectXpath>/wfs:WFS_Capabilities/wfs:FeatureTypeList/wfs:FeatureType</nodeSelectXpath>
|
135 |
|
|
</WfsCapabilities>
|
136 |
|
|
<WmsCapabilities id="wmsCapTemplate">
|
137 |
|
|
<title>OGC Web Map Server (WMS)</title>
|
138 |
|
|
<defaultModelUrl>/geoserver/wms?request=GetCapabilities&service=WMS</defaultModelUrl>
|
139 |
|
|
<models>
|
140 |
|
|
<Model id="featureInfoResponse" template="true">
|
141 |
|
|
<widgets>
|
142 |
|
|
<FeatureInfo id="features">
|
143 |
|
|
<htmlTagId>workspace</htmlTagId>
|
144 |
|
|
<outputNodeId>workspaceCanvas</outputNodeId>
|
145 |
|
|
</FeatureInfo>
|
146 |
|
|
</widgets>
|
147 |
|
|
<namespace>xmlns:gml='http://www.opengis.net/gml' xmlns:wfs='http://www.opengis.net/wfs' xmlns:topp='http://www.openplans.org/topp'</namespace>
|
148 |
|
|
</Model>
|
149 |
|
|
</models>
|
150 |
|
|
<widgets>
|
151 |
|
|
<SelectMapLayers id="layerList">
|
152 |
|
|
<htmlTagId>workspace</htmlTagId>
|
153 |
|
|
<outputNodeId>workspaceCanvas</outputNodeId>
|
154 |
|
|
</SelectMapLayers>
|
155 |
|
|
<ModelUrlInput id="wmsUrlInput">
|
156 |
|
|
<htmlTagId>workspace</htmlTagId>
|
157 |
|
|
<outputNodeId>workspaceCanvas</outputNodeId>
|
158 |
|
|
<title>Enter a WMS GetCapabilities URL:</title>
|
159 |
|
|
</ModelUrlInput>
|
160 |
|
|
</widgets>
|
161 |
|
|
<tools>
|
162 |
|
|
<WebServiceRequest id="wmsController">
|
163 |
|
|
<targetModel>featureInfoResponse</targetModel>
|
164 |
|
|
<requestName>wms:GetFeatureInfo</requestName>
|
165 |
|
|
</WebServiceRequest>
|
166 |
|
|
<EditContext id="editContext">
|
167 |
|
|
<targetModel>mainMap</targetModel>
|
168 |
|
|
</EditContext>
|
169 |
|
|
</tools>
|
170 |
|
|
<nodeSelectXpath>//Layer</nodeSelectXpath>
|
171 |
|
|
</WmsCapabilities>
|
172 |
|
|
</models>
|
173 |
|
|
<widgets>
|
174 |
|
|
<ZoomIn id="zoomIn">
|
175 |
|
|
<buttonBar>mainButtonBar</buttonBar>
|
176 |
|
|
<targetModel>mainMap</targetModel>
|
177 |
|
|
<class>RadioButton</class>
|
178 |
|
|
<selected>true</selected>
|
179 |
|
|
<enabledSrc>/images/ZoomInEnable.png</enabledSrc>
|
180 |
|
|
<disabledSrc>/images/ZoomInDisable.png</disabledSrc>
|
181 |
|
|
</ZoomIn>
|
182 |
|
|
<ZoomOut id="zoomOut">
|
183 |
|
|
<buttonBar>mainButtonBar</buttonBar>
|
184 |
|
|
<targetModel>mainMap</targetModel>
|
185 |
|
|
<class>RadioButton</class>
|
186 |
|
|
<enabledSrc>/images/ZoomOutEnable.png</enabledSrc>
|
187 |
|
|
<disabledSrc>/images/ZoomOutDisable.png</disabledSrc>
|
188 |
|
|
</ZoomOut>
|
189 |
|
|
<DragPan id="dragPan">
|
190 |
|
|
<buttonBar>mainButtonBar</buttonBar>
|
191 |
|
|
<targetModel>mainMap</targetModel>
|
192 |
|
|
<class>RadioButton</class>
|
193 |
|
|
<enabledSrc>/images/PanEnable.png</enabledSrc>
|
194 |
|
|
<disabledSrc>/images/PanDisable.png</disabledSrc>
|
195 |
|
|
</DragPan>
|
196 |
|
|
<GetFeatureInfoWSR id="getFeatureInfo">
|
197 |
|
|
<buttonBar>mainButtonBar</buttonBar>
|
198 |
|
|
<targetModel>mainMap</targetModel>
|
199 |
|
|
<class>RadioButton</class>
|
200 |
|
|
<enabledSrc>/images/QueryEnable.png</enabledSrc>
|
201 |
|
|
<disabledSrc>/images/QueryDisable.png</disabledSrc>
|
202 |
|
|
<controller>featureInfoController</controller>
|
203 |
|
|
</GetFeatureInfoWSR>
|
204 |
|
|
<Reset id="reset">
|
205 |
|
|
<buttonBar>mainButtonBar</buttonBar>
|
206 |
|
|
<targetModel>mainMap</targetModel>
|
207 |
|
|
<class>Button</class>
|
208 |
|
|
<disabledSrc>/images/ResetExtentDisable.png</disabledSrc>
|
209 |
|
|
</Reset>
|
210 |
|
|
<Save id="save">
|
211 |
|
|
<buttonBar>mainButtonBar</buttonBar>
|
212 |
|
|
<targetModel>mainMap</targetModel>
|
213 |
|
|
<class>Button</class>
|
214 |
|
|
<disabledSrc>/images/SaveDisable.png</disabledSrc>
|
215 |
|
|
<popupWindowName>modelXML</popupWindowName>
|
216 |
|
|
</Save>
|
217 |
|
|
<ExampleList id="exampleList"><!-- this is the widget that draws the example menu -->
|
218 |
|
|
<scriptFile>../ExampleList.js</scriptFile>
|
219 |
|
|
<stylesheet>../ExampleList.xsl</stylesheet>
|
220 |
|
|
</ExampleList>
|
221 |
|
|
</widgets>
|
222 |
|
|
<!--
|
223 |
|
|
All static images should be relative to this URL.
|
224 |
|
|
This dir is relative the dir of the main html file.
|
225 |
|
|
-->
|
226 |
|
|
<skinDir>../../lib/skin/default</skinDir>
|
227 |
|
|
</MapbuilderConfig>
|