Project

General

Profile

metacat / lib / style / skins / esa / spatial / config.xml @ 3137

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: config.xml 3137 2006-12-20 02:00:16Z perry $
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>context.xml</defaultModelUrl>
18
      <widgets>
19
        <Loading id="loading"/>
20
        <Loading2 id="loading2">
21
            <mapContainerId>mainMapPane</mapContainerId>
22
        </Loading2>
23
        <!-- <MapScaleBar id="scalebar">
24
          <displaySystem>metric</displaySystem>
25
          <minWidth>150</minWidth>
26
          <maxWidth>250</maxWidth>
27
          <divisions>4</divisions>
28
          <subdivisions>2</subdivisions>
29
          <showMinorMeasures>false</showMinorMeasures>
30
          <abbreviateLabel>true</abbreviateLabel>
31
          <singleLine>false</singleLine>
32
          <align>center</align>  
33
        </MapScaleBar> -->
34
        <MapPane id="mainMapWidget">
35
          <htmlTagId>mainMapPane</htmlTagId>
36
          <mapContainerId>mainMapContainer</mapContainerId>
37
        </MapPane>
38
        <AoiBoxWZ id="aoiBox2">
39
          <htmlTagId>mainMapPane</htmlTagId>
40
          <stylesheet>/esa/spatial/mapbuilder/lib/widget/GmlRenderer.xsl</stylesheet>
41
          <lineColor>#FF0000</lineColor>
42
          <lineWidth>1</lineWidth>
43
          <crossSize>15</crossSize>
44
          <mapContainerId>mainMapContainer</mapContainerId>
45
        </AoiBoxWZ>
46
        <CursorTrack id="cursorTrack">
47
          <mouseHandler>mainMap</mouseHandler>
48
        </CursorTrack>
49
        <Legend id="legend">
50
        </Legend>
51
        <MapScaleText id="mapScaleText">
52
        </MapScaleText>
53
      </widgets>
54
      <tools>
55
        <AoiMouseHandler id="mainAoi"/>
56
        <DragPanHandler id="mainDragPan">
57
          <enabled>false</enabled>
58
        </DragPanHandler>
59
        <MouseClickHandler id="mainMouseClick"/>
60
      </tools>
61
    </Context>
62
    
63
<!--
64
    <Context id="locator">
65
      <defaultModelUrl>config.xml</defaultModelUrl>
66
      <widgets>
67
        <MapPane id="locatorWidget">
68
          <htmlTagId>locatorMap</htmlTagId>
69
          <targetModel>mainMap</targetModel>
70
          <mapContainerId>locatorContainer</mapContainerId>
71
          <fixedWidth>180</fixedWidth>
72
        </MapPane>
73
        <AoiBoxWZ id="aoiBox2">
74
          <htmlTagId>locatorMap</htmlTagId>
75
          <stylesheet>../../../../spatial/mapbuilder/lib/widget/GmlRenderer.xsl</stylesheet>
76
          <lineColor>#FF0000</lineColor>
77
          <lineWidth>1</lineWidth>
78
          <crossSize>15</crossSize>
79
          <mapContainerId>locatorContainer</mapContainerId>
80
        </AoiBoxWZ>
81
      </widgets>
82
      <tools>
83
        <AoiMouseHandler id="locatorAoi"/>
84
        <ZoomToAoi id="locatorZoomToAoi">
85
          <targetModel>mainMap</targetModel>
86
        </ZoomToAoi>
87
      </tools>
88
    </Context>
89
-->
90
        <Model id="locations">
91
            <defaultModelUrl>./named_locations.xml</defaultModelUrl>
92
            <widgets>
93
                <Locations id="locationsSelect">
94
                    <targetModel>mainMap</targetModel>
95
                </Locations>
96
            </widgets>
97
            <tools>
98
                <ZoomToAoi id="locationsZoomToAoi">
99
                    <targetModel>mainMap</targetModel>
100
                </ZoomToAoi>
101
            </tools>
102
        </Model>
103

104
    <Transaction id="transaction">
105
      <widgets>
106
        <TransactionResponse id="transactionResponse">
107
        </TransactionResponse>
108
      </widgets>
109
    </Transaction>
110
    <FeatureCollection id="featureCollection">
111
      <namespace>xmlns:gml='http://www.opengis.net/gml' xmlns:wfs='http://www.opengis.net/wfs' xmlns:topp='http://www.openplans.org/topp'</namespace>
112
      <widgets>
113
        <GmlRendererWZ id="testGmlRenderer">
114
          <htmlTagId>mainMapPane</htmlTagId>
115
          <targetModel>mainMap</targetModel>
116
          <mapContainerId>mainMapContainer</mapContainerId>
117
          <lineColor>#FF0000</lineColor>
118
          <lineWidth>1</lineWidth>
119
          <pointDiameter>10</pointDiameter>
120
        </GmlRendererWZ>
121
        <FeatureList id="featureList">
122
        </FeatureList>
123
      </widgets>
124
    </FeatureCollection>
125
  </models>
126
  <widgets>
127
    <ZoomIn id="zoomIn">
128
      <buttonBar>mainButtonBar</buttonBar>
129
      <targetModel>mainMap</targetModel>
130
      <mouseHandler>mainAoi</mouseHandler>
131
      <class>RadioButton</class>
132
      <selected>true</selected>
133
      <enabledSrc>/images/ZoomInEnable.png</enabledSrc>
134
      <disabledSrc>/images/ZoomInDisable.png</disabledSrc>
135
      <tooltip xml:lang="en">click map or drag to zoom in</tooltip>
136
      <!--tooltip xml:lang="fr">cliquer et faire glisser la souris pour agrandir</tooltip-->
137
    </ZoomIn>
138
    <ZoomOut id="zoomOut">
139
      <buttonBar>mainButtonBar</buttonBar>
140
      <targetModel>mainMap</targetModel>
141
      <mouseHandler>mainAoi</mouseHandler>
142
      <class>RadioButton</class>
143
      <enabledSrc>/images/ZoomOutEnable.png</enabledSrc>
144
      <disabledSrc>/images/ZoomOutDisable.png</disabledSrc>
145
      <tooltip xml:lang="en">click map to zoom out</tooltip>
146
      <!--tooltip xml:lang="fr">cliquer pour rée</tooltip-->
147
    </ZoomOut>
148
    <DragPan id="dragPan">
149
      <buttonBar>mainButtonBar</buttonBar>
150
      <targetModel>mainMap</targetModel>
151
      <mouseHandler>mainDragPan</mouseHandler>
152
      <class>RadioButton</class>
153
      <enabledSrc>/images/PanEnable.png</enabledSrc>
154
      <disabledSrc>/images/PanDisable.png</disabledSrc>
155
      <tooltip xml:lang="en">click and drag to pan</tooltip>
156
      <!--tooltip xml:lang="fr">cliquer et faire glisser la souris pour voir un autre parti de la carte</tooltip-->
157
    </DragPan>
158
    <Reset id="reset">
159
      <buttonBar>mainButtonBar</buttonBar>
160
      <targetModel>mainMap</targetModel>
161
      <class>Button</class>
162
      <disabledSrc>/images/ResetExtentDisable.png</disabledSrc>
163
      <tooltip xml:lang="en">reset the map to full extent</tooltip>
164
      <!--tooltip xml:lang="fr">redonner la carte ses dimensions complèts</tooltip-->
165
    </Reset>
166
    <AoiMetacatQuery id="aoiMetacatQuery">
167
      <buttonBar>mainButtonBar</buttonBar>
168
      <targetModel>mainMap</targetModel>
169
      <mouseHandler>mainAoi</mouseHandler>
170
      <class>RadioButton</class>
171
      <enabledSrc>/images/QueryEnable.png</enabledSrc>
172
      <disabledSrc>/images/QueryDisable.png</disabledSrc>
173
      <tooltip xml:lang="en">select multiple datasets</tooltip>
174
      <metacat>/esa/metacat</metacat>
175
      <skin>esa</skin>
176
      <pixel_tolerance>5</pixel_tolerance>
177
    </AoiMetacatQuery>
178
  </widgets>
179
  <skinDir>/esa/spatial/mapbuilder/lib/skin/default</skinDir>
180
  <proxyUrl>/esa/proxy.jsp</proxyUrl>
181
</MapbuilderConfig>
182

183