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" 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 3404 2007-09-07 18:27:33Z 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
        </CursorTrack> -->
39
        <Legend id="legend">
40
        </Legend>
41
        <MapScaleText id="mapScaleText">
42
        </MapScaleText>
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
    
53
    <Context id="locator">
54
      <defaultModelUrl>africa_frame_model.xml</defaultModelUrl>
55
      <widgets>
56
        <MapPane id="locatorWidget">
57
          <htmlTagId>locatorMap</htmlTagId>
58
          <targetModel>mainMap</targetModel>
59
          <mapContainerId>locatorContainer</mapContainerId>
60
          <fixedWidth>180</fixedWidth>
61
        </MapPane>
62
        <AoiBoxWZ id="aoiBox2">
63
          <htmlTagId>locatorMap</htmlTagId>
64
          <stylesheet>../../../../spatial/mapbuilder/lib/widget/GmlRenderer.xsl</stylesheet>
65
          <lineColor>#FF0000</lineColor>
66
          <lineWidth>1</lineWidth>
67
          <crossSize>15</crossSize>
68
          <mapContainerId>locatorContainer</mapContainerId>
69
        </AoiBoxWZ>
70
      </widgets>
71
      <tools>
72
        <AoiMouseHandler id="locatorAoi"/>
73
        <ZoomToAoi id="locatorZoomToAoi">
74
          <targetModel>mainMap</targetModel>
75
        </ZoomToAoi>
76
      </tools>
77
    </Context>
78

    
79
    <Transaction id="transaction">
80
      <widgets>
81
        <TransactionResponse id="transactionResponse">
82
        </TransactionResponse>
83
      </widgets>
84
    </Transaction>
85
    <FeatureCollection id="featureCollection">
86
      <namespace>xmlns:gml='http://www.opengis.net/gml' xmlns:wfs='http://www.opengis.net/wfs' xmlns:topp='http://www.openplans.org/topp'</namespace>
87
      <widgets>
88
        <GmlRendererWZ id="testGmlRenderer">
89
          <htmlTagId>mainMapPane</htmlTagId>
90
          <targetModel>mainMap</targetModel>
91
          <mapContainerId>mainMapContainer</mapContainerId>
92
          <lineColor>#FF0000</lineColor>
93
          <lineWidth>1</lineWidth>
94
          <pointDiameter>10</pointDiameter>
95
        </GmlRendererWZ>
96
        <FeatureList id="featureList">
97
        </FeatureList>
98
      </widgets>
99
    </FeatureCollection>
100
  </models>
101
  <widgets>
102
    <ZoomIn id="zoomIn">
103
      <buttonBar>mainButtonBar</buttonBar>
104
      <targetModel>mainMap</targetModel>
105
      <mouseHandler>mainAoi</mouseHandler>
106
      <class>RadioButton</class>
107
      <selected>true</selected>
108
      <enabledSrc>/images/ZoomInEnable.png</enabledSrc>
109
      <disabledSrc>/images/ZoomInDisable.png</disabledSrc>
110
      <tooltip xml:lang="en">click map or drag to zoom in</tooltip>
111
      <!--tooltip xml:lang="fr">cliquer et faire glisser la souris pour agrandir</tooltip-->
112
    </ZoomIn>
113
    <ZoomOut id="zoomOut">
114
      <buttonBar>mainButtonBar</buttonBar>
115
      <targetModel>mainMap</targetModel>
116
      <mouseHandler>mainAoi</mouseHandler>
117
      <class>RadioButton</class>
118
      <enabledSrc>/images/ZoomOutEnable.png</enabledSrc>
119
      <disabledSrc>/images/ZoomOutDisable.png</disabledSrc>
120
      <tooltip xml:lang="en">click map to zoom out</tooltip>
121
      <!--tooltip xml:lang="fr">cliquer pour rée</tooltip-->
122
    </ZoomOut>
123
    <DragPan id="dragPan">
124
      <buttonBar>mainButtonBar</buttonBar>
125
      <targetModel>mainMap</targetModel>
126
      <mouseHandler>mainDragPan</mouseHandler>
127
      <class>RadioButton</class>
128
      <enabledSrc>/images/PanEnable.png</enabledSrc>
129
      <disabledSrc>/images/PanDisable.png</disabledSrc>
130
      <tooltip xml:lang="en">click and drag to pan</tooltip>
131
      <!--tooltip xml:lang="fr">cliquer et faire glisser la souris pour voir un autre parti de la carte</tooltip-->
132
    </DragPan>
133
    <Reset id="reset">
134
      <buttonBar>mainButtonBar</buttonBar>
135
      <targetModel>mainMap</targetModel>
136
      <class>Button</class>
137
      <disabledSrc>/images/ResetExtentDisable.png</disabledSrc>
138
      <tooltip xml:lang="en">reset the map to full extent</tooltip>
139
      <!--tooltip xml:lang="fr">redonner la carte ses dimensions complèts</tooltip-->
140
    </Reset>
141

    
142
	<!--
143
    <EditPoint id="editPoint">
144
      <buttonBar>mainButtonBar</buttonBar>
145
      <mouseHandler>mainMouseClick</mouseHandler>
146
      <class>RadioButton</class>
147
      <enabledSrc>/images/EditPointEnable.png</enabledSrc>
148
      <disabledSrc>/images/EditPointDisable.png</disabledSrc>
149
      <tooltip xml:lang="en">click on map to create a point feature</tooltip>
150
      <tooltip xml:lang="fr">click on map to create a point feature</tooltip>
151
      <targetModel>featureCollection</targetModel>
152
      <transactionResponseModel>transaction</transactionResponseModel>
153
      <webServiceUrl>../../../../wfs</webServiceUrl>
154
      <featureXpath>/gml:featureMember/topp:metacat_testdata/topp:the_geom/gml:Point/gml:coordinates</featureXpath>
155
      <featureXpath>/gml:featureMember/topp:metacat_testdata/topp:ID</featureXpath>
156
      <defaultModelUrl>template_metacat.xml</defaultModelUrl>
157
      <targetContext>mainMap</targetContext>
158
    </EditPoint>
159
    -->
160

    
161
    <!-- <GetFeatureInfo id="getFeatureInfo">
162
      <buttonBar>mainButtonBar</buttonBar>
163
       <targetModel>mainMap</targetModel>
164
      <context>mainMap</context>
165
       <mouseHandler>mainAoi</mouseHandler>
166
      <class>RadioButton</class>
167
    <enabledSrc>/images/QueryEnable.png</enabledSrc>
168
    <disabledSrc>/images/QueryDisable.png</disabledSrc>
169
	  <tooltip xml:lang="en">select single dataset</tooltip>
170
    </GetFeatureInfo> -->
171

    
172
  <!--SetAoi id="setAoi">
173
  <buttonBar>mainButtonBar</buttonBar>
174
  <targetModel>mainMap</targetModel>
175
  <mouseHandler>mainAoi</mouseHandler>
176
  <class>RadioButton</class>
177
  <enabledSrc>/images/SetAoiEnable.png</enabledSrc>
178
  <disabledSrc>/images/SetAoiDisable.png</disabledSrc>
179
  </SetAoi-->
180

    
181
  <AoiMetacatQuery id="aoiMetacatQuery">
182
      <buttonBar>mainButtonBar</buttonBar>
183
      <targetModel>mainMap</targetModel>
184
      <mouseHandler>mainAoi</mouseHandler>
185
      <class>RadioButton</class>
186
      <enabledSrc>/images/QueryEnable.png</enabledSrc>
187
      <disabledSrc>/images/QueryDisable.png</disabledSrc>
188
      <tooltip xml:lang="en">select multiple datasets</tooltip>
189
      <metacat>../../../../metacat</metacat>
190
      <skin>knp</skin>
191
      <pixel_tolerance>5</pixel_tolerance>
192
  </AoiMetacatQuery>
193
  
194
  </widgets>
195
  <skinDir>../../../../spatial/mapbuilder/lib/skin/default</skinDir>
196
  <!-- Url of LOCAL redirection script, required to access external URLs -->
197
  <proxyUrl>../../proxy.jsp</proxyUrl>
198
  <!-- 
199
  <serializeUrl>../../../../spatial/mapbuilder/writeXml</serializeUrl>
200
   -->
201
</MapbuilderConfig>
202

    
(1-1/5)