Project

General

Profile

1
<?xml version="1.0" encoding="utf-8" standalone="no"?>
2
<!-- edited with XMLSPY v5 U (http://www.xmlspy.com) by Tom Kralidis (NRCAN CCRs) -->
3
<MapbuilderConfig version="1.0.0" id="simpleTemplate" xmlns="http://mapbuilder.sourceforge.net/mapbuilder" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://mapbuilder.sourceforge.net/mapbuilder ../../lib/schemas/config.xsd">
4
	<models>
5
		<Context id="mainMap">
6
			<defaultModelUrl>tsEstPrecip.xml</defaultModelUrl>
7
			<widgets>
8
				<AoiBoxDHTML id="aoiBox2">
9
					<htmlTagId>mainMapPane</htmlTagId>
10
					<mapContainerId>mainMapContainer</mapContainerId>
11
					<lineColor>#FF0000</lineColor>
12
					<lineWidth>1</lineWidth>
13
					<crossSize>15</crossSize>
14
				</AoiBoxDHTML>
15
				<TimeSeries id="mainMapWidget">
16
					<htmlTagId>mainMapPane</htmlTagId>
17
					<stylesheet>../../lib/widget/MapPane.xsl</stylesheet>
18
					<mapContainerId>mainMapContainer</mapContainerId>
19
				</TimeSeries>
20
				<Timestamp id="timestamp">
21
        </Timestamp>
22
				<Legend id="legend">
23
        </Legend>
24
				<Widget id="abstract">
25
					<stylesheet>Abstract.xsl</stylesheet>
26
				</Widget>
27
				<Widget id="mapTitle">
28
					<stylesheet>../../lib/widget/MapTitle.xsl</stylesheet>
29
				</Widget>
30
				<!--SelectTimeFrame id="timeRangeSelect">
31
        </SelectTimeFrame-->
32
				<CursorTrack id="cursorTrack">
33
					<mouseHandler>mainMap</mouseHandler>
34
				</CursorTrack>
35
			</widgets>
36
			<tools>
37
				<AoiMouseHandler id="mainAoi"/>
38
				<DragPanHandler id="mainDragPan">
39
					<enabled>false</enabled>
40
				</DragPanHandler>
41
				<MovieLoop id="movieLoop">
42
					<framesPerSecond>4</framesPerSecond>
43
					<maxFrames>15</maxFrames>
44
				</MovieLoop>
45
			</tools>
46
		</Context>
47
		<ContextCollection id="collection">
48
			<defaultModelUrl>timeSeriesCollection.xml</defaultModelUrl>
49
			<widgets>
50
				<CollectionList id="collectionList">
51
					<targetModel>mainMap</targetModel>
52
				</CollectionList>
53
			</widgets>
54
		</ContextCollection>
55
		<WmsCapabilities id="wmsCapTemplate">
56
			<!--defaultModelUrl>../data/test/tsNasaCaps.xml</defaultModelUrl-->
57
			<title>OGC Web Map Server (WMS)</title>
58
			<widgets>
59
				<Widget id="layerList">
60
					<htmlTagId>workspace</htmlTagId>
61
					<outputNodeId>workspaceCanvas</outputNodeId>
62
					<stylesheet>../../lib/widget/SelectMapLayers.xsl</stylesheet>
63
				</Widget>
64
				<Loading2 id="loading2">
65
					<htmlTagId>workspace</htmlTagId>
66
					<outputNodeId>workspaceCanvas</outputNodeId>
67
					<textMessage>This is a large file, please wait for it to load...</textMessage>
68
				</Loading2>
69
			</widgets>
70
			<tools>
71
				<Caps2Context id="convertCaps">
72
					<targetModel>mainMap</targetModel>
73
				</Caps2Context>
74
			</tools>
75
			<nodeSelectXpath>//Layer</nodeSelectXpath>
76
		</WmsCapabilities>
77
	</models>
78
	<widgets>
79
		<ModelUrlInput id="wmsCapsUrlInput">
80
			<targetModel>wmsCapTemplate</targetModel>
81
			<title>Or load another WMS Capabilities URL: </title>
82
		</ModelUrlInput>
83
		<Button id="play">
84
			<buttonBar>tsButtonBar</buttonBar>
85
			<targetModel>mainMap</targetModel>
86
			<class>RadioButton</class>
87
			<enabledSrc>/images/PlayEnable.png</enabledSrc>
88
			<disabledSrc>/images/PlayDisable.png</disabledSrc>
89
			<tooltip>play the movie</tooltip>
90
			<action>movieLoop.play()</action>
91
		</Button>
92
		<Button id="stepBack">
93
			<buttonBar>tsButtonBar</buttonBar>
94
			<targetModel>mainMap</targetModel>
95
			<class>Button</class>
96
			<disabledSrc>/images/StepBackwardDisable.png</disabledSrc>
97
			<tooltip>step back one frame</tooltip>
98
			<action>movieLoop.nextFrame(-1)</action>
99
		</Button>
100
		<Button id="pause">
101
			<buttonBar>tsButtonBar</buttonBar>
102
			<targetModel>mainMap</targetModel>
103
			<class>RadioButton</class>
104
			<enabledSrc>/images/PauseEnable.png</enabledSrc>
105
			<disabledSrc>/images/PauseDisable.png</disabledSrc>
106
			<tooltip>pause the movie</tooltip>
107
			<action>movieLoop.pause()</action>
108
		</Button>
109
		<Button id="stop">
110
			<buttonBar>tsButtonBar</buttonBar>
111
			<targetModel>mainMap</targetModel>
112
			<class>RadioButton</class>
113
			<enabledSrc>/images/StopEnable.png</enabledSrc>
114
			<disabledSrc>/images/StopDisable.png</disabledSrc>
115
			<tooltip>stop and rewind to beginning</tooltip>
116
			<action>movieLoop.stop()</action>
117
		</Button>
118
		<Button id="stepAhead">
119
			<buttonBar>tsButtonBar</buttonBar>
120
			<targetModel>mainMap</targetModel>
121
			<class>Button</class>
122
			<disabledSrc>/images/StepForwardDisable.png</disabledSrc>
123
			<tooltip>step ahead one frame</tooltip>
124
			<action>movieLoop.nextFrame(1)</action>
125
		</Button>
126
		<ZoomIn id="zoomIn">
127
			<buttonBar>mainButtonBar</buttonBar>
128
			<targetModel>mainMap</targetModel>
129
			<mouseHandler>mainAoi</mouseHandler>
130
			<class>RadioButton</class>
131
			<selected>true</selected>
132
			<enabledSrc>/images/ZoomInEnable.png</enabledSrc>
133
			<disabledSrc>/images/ZoomInDisable.png</disabledSrc>
134
		</ZoomIn>
135
		<ZoomOut id="zoomOut">
136
			<buttonBar>mainButtonBar</buttonBar>
137
			<targetModel>mainMap</targetModel>
138
			<mouseHandler>mainAoi</mouseHandler>
139
			<class>RadioButton</class>
140
			<enabledSrc>/images/ZoomOutEnable.png</enabledSrc>
141
			<disabledSrc>/images/ZoomOutDisable.png</disabledSrc>
142
		</ZoomOut>
143
		<Reset id="reset">
144
			<buttonBar>mainButtonBar</buttonBar>
145
			<targetModel>mainMap</targetModel>
146
			<class>Button</class>
147
			<disabledSrc>/images/ResetExtentDisable.png</disabledSrc>
148
		</Reset>
149
	</widgets>
150
	<skinDir>../../lib/skin/default</skinDir>
151
	<widgetTextUrl>/widgetText.xml</widgetTextUrl>
152
	<!-- relative to the skin dir -->
153
</MapbuilderConfig>
(6-6/14)