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$
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>metacat.xml</defaultModelUrl>
18
      <widgets>
19
        <MapPane id="mainMapWidget">
20
          <htmlTagId>mainMapPane</htmlTagId>
21
          <mapContainerId>mainMapContainer</mapContainerId>
22
        </MapPane>
23
        
24
        <AoiBoxWZ id="aoiBox2">
25
          <htmlTagId>mainMapPane</htmlTagId>
26
          <stylesheet>../../lib/widget/GmlRenderer.xsl</stylesheet>
27
          <lineColor>#FF0000</lineColor>
28
          <lineWidth>1</lineWidth>
29
          <crossSize>15</crossSize>
30
          <mapContainerId>mainMapContainer</mapContainerId>
31
        </AoiBoxWZ>
32
        <CursorTrack id="cursorTrack">
33
          <mouseHandler>mainMap</mouseHandler>
34
        </CursorTrack>
35
        <Legend id="legend">
36
        </Legend>
37
        <MapScaleText id="mapScaleText">
38
        </MapScaleText>
39
      </widgets>
40
      <tools>
41
        <AoiMouseHandler id="mainAoi"/>
42
        <DragPanHandler id="mainDragPan">
43
          <enabled>false</enabled>
44
        </DragPanHandler>
45
        <MouseClickHandler id="mainMouseClick"/>
46
      </tools>
47
    </Context>
48

    
49
    <Context id="locator">
50
      <defaultModelUrl>metacat.xml</defaultModelUrl>
51
      <widgets>
52
        <MapPane id="locatorWidget">
53
          <htmlTagId>locatorMap</htmlTagId>
54
          <targetModel>mainMap</targetModel>
55
          <mapContainerId>locatorContainer</mapContainerId>
56
          <fixedWidth>180</fixedWidth>
57
        </MapPane>
58
        <AoiBoxWZ id="aoiBox2">
59
          <htmlTagId>locatorMap</htmlTagId>
60
          <stylesheet>../../lib/widget/GmlRenderer.xsl</stylesheet>
61
          <lineColor>#FF0000</lineColor>
62
          <lineWidth>1</lineWidth>
63
          <crossSize>15</crossSize>
64
          <mapContainerId>locatorContainer</mapContainerId>
65
        </AoiBoxWZ>
66
      </widgets>
67
      <tools>
68
        <AoiMouseHandler id="locatorAoi"/>
69
        <ZoomToAoi id="locatorZoomToAoi">
70
          <targetModel>mainMap</targetModel>
71
        </ZoomToAoi>
72
      </tools>
73
    </Context>
74

    
75
    <Transaction id="transaction">
76
      <widgets>
77
        <TransactionResponse id="transactionResponse">
78
        </TransactionResponse>
79
      </widgets>
80
    </Transaction>
81

    
82
<FeatureCollection id="featureCollection">
83
  <namespace>
84
  xmlns:gml='http://www.opengis.net/gml' xmlns:wfs='http://www.opengis.net/wfs'xmlns:topp='http://www.openplans.org/topp'
85
  </namespace>
86
  
87
    <widgets>
88
    
89
      <GmlRendererWZ id="testGmlRenderer">
90
      <htmlTagId>mainMapPane</htmlTagId>
91
      <targetModel>mainMap</targetModel>
92
      <mapContainerId>mainMapContainer</mapContainerId>
93
      <lineColor>#FF0000</lineColor>
94
      <lineWidth>1</lineWidth>
95
      <pointDiameter>10</pointDiameter>
96
      </GmlRendererWZ>
97
      <FeatureList id="featureList">
98
              </FeatureList>
99
              </widgets>
100
  </FeatureCollection>  
101
  
102
  </models>
103
  <widgets>
104
    <ZoomIn id="zoomIn">
105
      <buttonBar>mainButtonBar</buttonBar>
106
      <targetModel>mainMap</targetModel>
107
      <mouseHandler>mainAoi</mouseHandler>
108
      <class>RadioButton</class>
109
      <selected>true</selected>
110
      <enabledSrc>/images/ZoomInEnable.gif</enabledSrc>
111
      <disabledSrc>/images/ZoomInDisable.gif</disabledSrc>
112
      <tooltip xml:lang="en">click and drag to zoom in</tooltip>
113
      <tooltip xml:lang="fr">cliquer et faire glisser la souris pour agrandir</tooltip>
114
    </ZoomIn>
115
    <ZoomOut id="zoomOut">
116
      <buttonBar>mainButtonBar</buttonBar>
117
      <targetModel>mainMap</targetModel>
118
      <mouseHandler>mainAoi</mouseHandler>
119
      <class>RadioButton</class>
120
      <enabledSrc>/images/ZoomOutEnable.gif</enabledSrc>
121
      <disabledSrc>/images/ZoomOutDisable.gif</disabledSrc>
122
      <tooltip xml:lang="en">click to zoom out</tooltip>
123
      <tooltip xml:lang="fr">cliquer pour rée</tooltip>
124
    </ZoomOut>
125
    <GetFeatureInfo id="getFeatureInfo">
126
      <buttonBar>mainButtonBar</buttonBar>
127
      <!-- <targetModel>mainMap</targetModel> -->
128
      <!-- <targetModel>featureCollection</targetModel> -->
129
      <context>mainMap</context>
130
      <mouseHandler>mainMouseClick</mouseHandler>
131
      <!-- <mouseHandler>mainAoi</mouseHandler> -->
132
      <class>RadioButton</class>
133
      <enabledSrc>/images/QueryEnable.gif</enabledSrc>
134
      <disabledSrc>/images/QueryDisable.gif</disabledSrc>
135
      
136
      <targetModel>featureCollection</targetModel>
137
      <transactionResponseModel>transaction</transactionResponseModel>
138
      <webServiceUrl>../../../../wfs</webServiceUrl>
139
      <featureXpath>/gml:featureMember/topp:topp:metacat_testdata/topp:ID/gml:MultiPoint/gml:pointMember/gml:Point/gml:coordinates</featureXpath>
140
      <defaultModelUrl>template_metacat.xml</defaultModelUrl>
141
      <targetContext>mainMap</targetContext>
142
    
143
    </GetFeatureInfo>
144
    
145
    <EditPoint id="editPoint">
146
      <buttonBar>mainButtonBar</buttonBar>
147
      <!-- <mouseHandler>mainAoi</mouseHandler> -->
148
      <mouseHandler>mainMouseClick</mouseHandler>
149
      <class>RadioButton</class>
150
      <enabledSrc>/images/EditPointEnable.gif</enabledSrc>
151
      <disabledSrc>/images/EditPointDisable.gif</disabledSrc>
152
      <tooltip xml:lang="en">click on map to create a point feature</tooltip>
153
      <tooltip xml:lang="fr">click on map to create a point feature</tooltip>
154
      <targetModel>featureCollection</targetModel>
155
      <transactionResponseModel>transaction</transactionResponseModel>
156
      <webServiceUrl>../../../../wfs</webServiceUrl>
157
      <featureXpath>/gml:featureMember/topp:topp:metacat_testdata/topp:ID/gml:MultiPoint/gml:pointMember/gml:Point/gml:coordinates</featureXpath>
158
      <defaultModelUrl>template_metacat.xml</defaultModelUrl>
159
      <targetContext>mainMap</targetContext>
160
    </EditPoint>
161
  </widgets>
162
  <skinDir>../../lib/skin/default</skinDir>
163
  <!-- Url of LOCAL redirection script, required to access external URLs -->
164
  <proxyUrl>../../proxy.jsp</proxyUrl>
165
  <widgetTextUrl>widgetText.xml</widgetTextUrl>
166
  <!-- 
167
  <serializeUrl>../../writeXml</serializeUrl>
168
   -->
169
</MapbuilderConfig>
170

    
(9-9/32)