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

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

    
(1-1/6)