Project

General

Profile

metacat / lib / style / skins / knb2 / spatial / config.xml @ 3106

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 3106 2006-12-06 23:14:19Z 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>../../../../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
          <showDMS>false</showDMS>
49
          <showLatLong>true</showLatLong>
50
        </CursorTrack>
51
        <Legend id="legend">
52
        </Legend>
53
        <MapScaleText id="mapScaleText">
54
        </MapScaleText>
55
      </widgets>
56
      <tools>
57
        <AoiMouseHandler id="mainAoi"/>
58
        <DragPanHandler id="mainDragPan">
59
          <enabled>false</enabled>
60
        </DragPanHandler>
61
        <MouseClickHandler id="mainMouseClick"/>
62
      </tools>
63
    </Context>
64
    
65
<!--
66
    <Context id="locator">
67
      <defaultModelUrl>config.xml</defaultModelUrl>
68
      <widgets>
69
        <MapPane id="locatorWidget">
70
          <htmlTagId>locatorMap</htmlTagId>
71
          <targetModel>mainMap</targetModel>
72
          <mapContainerId>locatorContainer</mapContainerId>
73
          <fixedWidth>180</fixedWidth>
74
        </MapPane>
75
        <AoiBoxWZ id="aoiBox2">
76
          <htmlTagId>locatorMap</htmlTagId>
77
          <stylesheet>../../../../spatial/mapbuilder/lib/widget/GmlRenderer.xsl</stylesheet>
78
          <lineColor>#FF0000</lineColor>
79
          <lineWidth>1</lineWidth>
80
          <crossSize>15</crossSize>
81
          <mapContainerId>locatorContainer</mapContainerId>
82
        </AoiBoxWZ>
83
      </widgets>
84
      <tools>
85
        <AoiMouseHandler id="locatorAoi"/>
86
        <ZoomToAoi id="locatorZoomToAoi">
87
          <targetModel>mainMap</targetModel>
88
        </ZoomToAoi>
89
      </tools>
90
    </Context>
91
-->
92
        <Model id="locations">
93
            <defaultModelUrl>./named_locations.xml</defaultModelUrl>
94
            <widgets>
95
                <Locations id="locationsSelect">
96
                    <targetModel>mainMap</targetModel>
97
                </Locations>
98
            </widgets>
99
            <tools>
100
                <ZoomToAoi id="locationsZoomToAoi">
101
                    <targetModel>mainMap</targetModel>
102
                </ZoomToAoi>
103
            </tools>
104
        </Model>
105

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

185