Project

General

Profile

1 2699 harris
<?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$
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>available_layers_model.xml</defaultModelUrl>
18
      <widgets>
19
        <MapPane id="mainMapWidget">
20
          <htmlTagId>mainMapPane</htmlTagId>
21
          <mapContainerId>mainMapContainer</mapContainerId>
22
        </MapPane>
23
        <AoiBoxWZ id="aoiBox2">
24
          <htmlTagId>mainMapPane</htmlTagId>
25
          <stylesheet>../../lib/widget/GmlRenderer.xsl</stylesheet>
26
          <lineColor>#FF0000</lineColor>
27
          <lineWidth>1</lineWidth>
28
          <crossSize>15</crossSize>
29
          <mapContainerId>mainMapContainer</mapContainerId>
30
        </AoiBoxWZ>
31
        <CursorTrack id="cursorTrack">
32
          <mouseHandler>mainMap</mouseHandler>
33
        </CursorTrack>
34
        <Legend id="legend">
35
        </Legend>
36
        <MapScaleText id="mapScaleText">
37
        </MapScaleText>
38
      </widgets>
39
      <tools>
40
        <AoiMouseHandler id="mainAoi"/>
41
        <DragPanHandler id="mainDragPan">
42
          <enabled>false</enabled>
43
        </DragPanHandler>
44
        <MouseClickHandler id="mainMouseClick"/>
45
      </tools>
46
    </Context>
47
48
    <Context id="locator">
49
      <defaultModelUrl>metacat.xml</defaultModelUrl>
50
      <widgets>
51
        <MapPane id="locatorWidget">
52
          <htmlTagId>locatorMap</htmlTagId>
53
          <targetModel>mainMap</targetModel>
54
          <mapContainerId>locatorContainer</mapContainerId>
55
          <fixedWidth>180</fixedWidth>
56
        </MapPane>
57
        <AoiBoxWZ id="aoiBox2">
58
          <htmlTagId>locatorMap</htmlTagId>
59
          <stylesheet>../../lib/widget/GmlRenderer.xsl</stylesheet>
60
          <lineColor>#FF0000</lineColor>
61
          <lineWidth>1</lineWidth>
62
          <crossSize>15</crossSize>
63
          <mapContainerId>locatorContainer</mapContainerId>
64
        </AoiBoxWZ>
65
      </widgets>
66
      <tools>
67
        <AoiMouseHandler id="locatorAoi"/>
68
        <ZoomToAoi id="locatorZoomToAoi">
69
          <targetModel>mainMap</targetModel>
70
        </ZoomToAoi>
71
      </tools>
72
    </Context>
73
74
    <Transaction id="transaction">
75
      <widgets>
76
        <TransactionResponse id="transactionResponse">
77
        </TransactionResponse>
78
      </widgets>
79
    </Transaction>
80
    <FeatureCollection id="featureCollection">
81
      <namespace>xmlns:gml='http://www.opengis.net/gml' xmlns:wfs='http://www.opengis.net/wfs' xmlns:topp='http://www.openplans.org/topp'</namespace>
82
      <widgets>
83
        <GmlRendererWZ id="testGmlRenderer">
84
          <htmlTagId>mainMapPane</htmlTagId>
85
          <targetModel>mainMap</targetModel>
86
          <mapContainerId>mainMapContainer</mapContainerId>
87
          <lineColor>#FF0000</lineColor>
88
          <lineWidth>1</lineWidth>
89
          <pointDiameter>10</pointDiameter>
90
        </GmlRendererWZ>
91
        <FeatureList id="featureList">
92
        </FeatureList>
93
      </widgets>
94
    </FeatureCollection>
95
  </models>
96
  <widgets>
97
    <ZoomIn id="zoomIn">
98
      <buttonBar>mainButtonBar</buttonBar>
99
      <targetModel>mainMap</targetModel>
100
      <mouseHandler>mainAoi</mouseHandler>
101
      <class>RadioButton</class>
102
      <selected>true</selected>
103
      <enabledSrc>/images/ZoomInEnable.gif</enabledSrc>
104
      <disabledSrc>/images/ZoomInDisable.gif</disabledSrc>
105
      <tooltip xml:lang="en">click and drag to zoom in</tooltip>
106
      <tooltip xml:lang="fr">cliquer et faire glisser la souris pour agrandir</tooltip>
107
    </ZoomIn>
108
    <ZoomOut id="zoomOut">
109
      <buttonBar>mainButtonBar</buttonBar>
110
      <targetModel>mainMap</targetModel>
111
      <mouseHandler>mainAoi</mouseHandler>
112
      <class>RadioButton</class>
113
      <enabledSrc>/images/ZoomOutEnable.gif</enabledSrc>
114
      <disabledSrc>/images/ZoomOutDisable.gif</disabledSrc>
115
      <tooltip xml:lang="en">click to zoom out</tooltip>
116
      <tooltip xml:lang="fr">cliquer pour rée</tooltip>
117
    </ZoomOut>
118
    <DragPan id="dragPan">
119
      <buttonBar>mainButtonBar</buttonBar>
120
      <targetModel>mainMap</targetModel>
121
      <mouseHandler>mainDragPan</mouseHandler>
122
      <class>RadioButton</class>
123
      <enabledSrc>/images/PanEnable.gif</enabledSrc>
124
      <disabledSrc>/images/PanDisable.gif</disabledSrc>
125
      <tooltip xml:lang="en">click and drag to pan</tooltip>
126
      <tooltip xml:lang="fr">cliquer et faire glisser la souris pour voir un autre parti de la carte</tooltip>
127
    </DragPan>
128
    <Reset id="reset">
129
      <buttonBar>mainButtonBar</buttonBar>
130
      <targetModel>mainMap</targetModel>
131
      <class>Button</class>
132
      <disabledSrc>/images/ResetExtentDisable.gif</disabledSrc>
133
      <tooltip xml:lang="en">reset the map to full extent</tooltip>
134
      <tooltip xml:lang="fr">redonner la carte ses dimensions complèts</tooltip>
135
    </Reset>
136
    <EditPoint id="editPoint">
137
      <buttonBar>mainButtonBar</buttonBar>
138
      <mouseHandler>mainMouseClick</mouseHandler>
139
      <class>RadioButton</class>
140
      <enabledSrc>/images/EditPointEnable.gif</enabledSrc>
141
      <disabledSrc>/images/EditPointDisable.gif</disabledSrc>
142
      <tooltip xml:lang="en">click on map to create a point feature</tooltip>
143
      <tooltip xml:lang="fr">click on map to create a point feature</tooltip>
144
      <targetModel>featureCollection</targetModel>
145
      <transactionResponseModel>transaction</transactionResponseModel>
146
      <webServiceUrl>../../../../wfs</webServiceUrl>
147
      <featureXpath>/gml:featureMember/topp:metacat_testdata/topp:the_geom/gml:Point/gml:coordinates</featureXpath>
148
      <featureXpath>/gml:featureMember/topp:metacat_testdata/topp:ID</featureXpath>
149
      <defaultModelUrl>template_metacat.xml</defaultModelUrl>
150
      <targetContext>mainMap</targetContext>
151
    </EditPoint>
152
153
    <GetFeatureInfo id="getFeatureInfo">
154
      <buttonBar>mainButtonBar</buttonBar>
155
       <targetModel>mainMap</targetModel>
156
     <!-- <targetModel>featureCollection</targetModel> -->
157
      <context>mainMap</context>
158
      <!-- <mouseHandler>mainMouseClick</mouseHandler> -->
159
       <mouseHandler>mainAoi</mouseHandler>
160
      <!-- <mouseHandler>mainAoi</mouseHandler> -->
161
      <class>RadioButton</class>
162
    <enabledSrc>/images/QueryEnable.gif</enabledSrc>
163
    <disabledSrc>/images/QueryDisable.gif</disabledSrc>
164
    </GetFeatureInfo>
165
  <SetAoi id="setAoi">
166
  <buttonBar>mainButtonBar</buttonBar>
167
  <targetModel>mainMap</targetModel>
168
  <mouseHandler>mainAoi</mouseHandler>
169
  <class>RadioButton</class>
170
  <enabledSrc>/images/SetAoiEnable.gif</enabledSrc>
171
  <disabledSrc>/images/SetAoiDisable.gif</disabledSrc>
172
  </SetAoi>
173
174
  </widgets>
175
  <skinDir>../../lib/skin/default</skinDir>
176
  <!-- Url of LOCAL redirection script, required to access external URLs -->
177
  <proxyUrl>../../proxy.jsp</proxyUrl>
178
  <!--
179
  <serializeUrl>../../writeXml</serializeUrl>
180
   -->
181
</MapbuilderConfig>