Project

General

Profile

« Previous | Next » 

Revision 4308

bring up to date with map builder 1.5rc2. core functionality (zoom, pan, dataset search) is present.
note that the predefined locations dropdown is missing from this implementation - hopefully will be working again soon...

View differences:

africa_frame_config.xml
16 16
    <Context id="mainMap">
17 17
      <defaultModelUrl>africa_frame_model.xml</defaultModelUrl>
18 18
      <widgets>
19
        <Loading id="loading"/>
19
        
20
        <MapPaneOL id="mainMapWidget">
21
          <htmlTagId>mainMapPane</htmlTagId>
22
          <fixedSize>true</fixedSize>
23
          <transitionEffect>resize</transitionEffect>
24
        </MapPaneOL>
25
        <CursorTrack id="cursorTrack">
26
          <precision>5</precision>
27
        </CursorTrack>
28
        <MapScaleText id="scaleText"/>
20 29
        <Loading2 id="loading2">
21
            <mapContainerId>mainMapPane</mapContainerId>
30
          <mapContainerId>mainMapPane</mapContainerId>
22 31
        </Loading2>
23 32

  
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 33
      </widgets>
46 34
      <tools>
35
        <History id="extentHistory"/>
47 36
        <AoiMouseHandler id="mainAoi"/>
48
        <DragPanHandler id="mainDragPan">
49
          <enabled>false</enabled>
50
        </DragPanHandler>
51 37
        <MouseClickHandler id="mainMouseClick"/>
52 38
      </tools>
53 39
    </Context>
54 40
    
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 41
  </models>
117 42
  <widgets>
43
    
44
    <Back id="back">
45
      <buttonBar>mainButtonBar</buttonBar>
46
      <targetModel>mainMap</targetModel>
47
      <class>Button</class>
48
      <disabledSrc>/images/UndoDisable.png</disabledSrc>
49
    </Back>
50
    <Forward id="forward">
51
      <buttonBar>mainButtonBar</buttonBar>
52
      <targetModel>mainMap</targetModel>
53
      <class>Button</class>
54
      <disabledSrc>/images/RedoDisable.png</disabledSrc>
55
    </Forward>
118 56
    <ZoomIn id="zoomIn">
119 57
      <buttonBar>mainButtonBar</buttonBar>
120 58
      <targetModel>mainMap</targetModel>
121
      <mouseHandler>mainAoi</mouseHandler>
122 59
      <class>RadioButton</class>
123 60
      <selected>true</selected>
124 61
      <enabledSrc>/images/ZoomInEnable.png</enabledSrc>
125 62
      <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 63
    </ZoomIn>
129 64
    <ZoomOut id="zoomOut">
130 65
      <buttonBar>mainButtonBar</buttonBar>
131 66
      <targetModel>mainMap</targetModel>
132
      <mouseHandler>mainAoi</mouseHandler>
133 67
      <class>RadioButton</class>
134 68
      <enabledSrc>/images/ZoomOutEnable.png</enabledSrc>
135 69
      <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 70
    </ZoomOut>
139 71
    <DragPan id="dragPan">
140 72
      <buttonBar>mainButtonBar</buttonBar>
141 73
      <targetModel>mainMap</targetModel>
142
      <mouseHandler>mainDragPan</mouseHandler>
143 74
      <class>RadioButton</class>
144 75
      <enabledSrc>/images/PanEnable.png</enabledSrc>
145 76
      <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 77
    </DragPan>
149 78
    <Reset id="reset">
150 79
      <buttonBar>mainButtonBar</buttonBar>
151 80
      <targetModel>mainMap</targetModel>
152 81
      <class>Button</class>
153 82
      <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 83
    </Reset>
157

  
158
	<!--
159
    <EditPoint id="editPoint">
84
    <Loading id="loadingApp">
85
      <htmlTagId>mainMapPane</htmlTagId>
86
    </Loading>
87
    
88
    <AoiMetacatQuery id="aoiMetacatQuery">
160 89
      <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 90
      <targetModel>mainMap</targetModel>
200
      <mouseHandler>mainAoi</mouseHandler>
201 91
      <class>RadioButton</class>
92
      <mouseHandler>mainAoi</mouseHandler>      
202 93
      <enabledSrc>/images/QueryEnable.png</enabledSrc>
203 94
      <disabledSrc>/images/QueryDisable.png</disabledSrc>
204 95
      <tooltip xml:lang="en">select multiple datasets</tooltip>
205 96
      <metacat>../../../../metacat</metacat>
206 97
      <skin>sanparks</skin>
207 98
      <pixel_tolerance>5</pixel_tolerance>
208
  </AoiMetacatQuery>
209
  
99
    </AoiMetacatQuery>
100
    
210 101
  </widgets>
211 102
  <skinDir>../../../../spatial/mapbuilder/lib/skin/default</skinDir>
212 103
  <!-- Url of LOCAL redirection script, required to access external URLs -->
213 104
  <proxyUrl>../../proxy.jsp</proxyUrl>
214
  <!-- 
215
  <serializeUrl>../../../../spatial/mapbuilder/writeXml</serializeUrl>
216
   -->
217
</MapbuilderConfig>
218

  
105
</MapbuilderConfig>

Also available in: Unified diff