Revision 3036
Added by perry about 18 years ago
lib/style/skins/knp/index.jsp | ||
---|---|---|
25 | 25 |
*/ |
26 | 26 |
%> |
27 | 27 |
<%@ include file="../../common/common-settings.jsp"%> |
28 |
<%@ include file="../../common/map-settings.jsp"%> |
|
29 | 28 |
<% |
30 |
|
|
31 |
//SPATIAL_MAP = "knp"; |
|
32 |
SPATIAL_TEMPLATE = "basic_layers"; |
|
33 |
|
|
34 |
/* Construct Web Map URL |
|
35 |
String mapUrl = SPATIAL_BASE_URL + |
|
36 |
"?map=" + SPATIAL_MAP + |
|
37 |
"&template=" + SPATIAL_TEMPLATE + |
|
38 |
"&client=" + SPATIAL_CLIENT; |
|
39 |
*/ |
|
40 |
|
|
41 |
//String mapUrl = "@systemidserver@/@context@/spatial/mapbuilder/demo/metacat_knp/pma.html"; |
|
42 |
|
|
43 | 29 |
String mapUrl = "@systemidserver@/@context@/style/skins/knp/spatial/pma.html"; |
44 | 30 |
%> |
45 | 31 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
lib/style/skins/knp/spatial/pma.html | ||
---|---|---|
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> |
|
2 |
|
|
3 |
|
|
4 |
<html> |
|
5 |
<head> |
|
6 |
<title>Metacat Spatial Option Demo</title> |
|
7 |
|
|
8 |
<link rel="stylesheet" href="/style.css" type="text/css"/> |
|
9 |
<link rel="stylesheet" href="./html.css" type="text/css"/> |
|
10 |
|
|
11 |
<link href="../knp.css" type="text/css" rel="stylesheet"/> |
|
12 |
<script src="../knp.js" type="text/JavaScript" language="Javascript"></script> |
|
13 |
|
|
14 |
<link href="./map.css" type="text/css" rel="stylesheet"/> |
|
15 |
|
|
16 |
<script src="../../../common/prototype.js" type="text/JavaScript" language="Javascript"></script> |
|
17 |
<script src="../../../common/effects.js" type="text/JavaScript" language="Javascript"></script> |
|
18 |
|
|
19 |
<script language="JavaScript"> |
|
20 |
function submitform(action,form_ref) { |
|
21 |
form_ref.action.value=action; |
|
22 |
form_ref.sessionid.value=""; |
|
23 |
form_ref.qformat.value="knp"; |
|
24 |
form_ref.submit(); |
|
25 |
} |
|
26 |
</script> |
|
27 |
|
|
28 |
<script type="text/javascript"> |
|
29 |
var mbConfigUrl="africa_frame_config.xml"; |
|
30 |
</script> |
|
31 |
<script type="text/javascript" src="../../../../spatial/mapbuilder/lib/Mapbuilder.js"></script> |
|
32 |
|
|
33 |
|
|
34 |
<script language="JavaScript"> |
|
35 |
function show_map() { |
|
36 |
Element.show('mapControlHide') |
|
37 |
Element.hide('mapControlShow') |
|
38 |
|
|
39 |
// reset the map position in the iframe |
|
40 |
$("mapContainer").setAttribute("style", "right:-212px;"); |
|
41 |
|
|
42 |
// expand the iframe |
|
43 |
var frm = top.getMapFrame(); |
|
44 |
frm.setAttribute("style", "width:295px;right:0;"); |
|
45 |
|
|
46 |
var element = $('mapContainer') |
|
47 |
new Effect.Move(element, { x: -212, y: 0, duration: 0.2}) |
|
48 |
|
|
49 |
//setTimeout('$("mapContainer").setAttribute("style", "position:absolute;left:0;")', 300); |
|
50 |
|
|
51 |
//alert('moved'); |
|
52 |
//do_move_anim(-260); |
|
53 |
} |
|
54 |
|
|
55 |
/* |
|
56 |
* Don't animate. Just shrink the outer frame and make left:0. |
|
57 |
*/ |
|
58 |
function hide_map() { |
|
59 |
Element.show('mapControlShow') |
|
60 |
Element.hide('mapControlHide') |
|
61 |
var element = $('mapContainer') |
|
62 |
//new Effect.Move(element, { x: 260, y: 0, duration: 0.1}) |
|
63 |
$("mapContainer").setAttribute("style", "left:0px;"); |
|
64 |
|
|
65 |
|
|
66 |
|
|
67 |
//alert('moved'); |
|
68 |
//setTimeout('getElementsByClassName(top.document, "iframe", "iframeMap")[0].setAttribute("style", "width:35px;right:0;")', 200); |
|
69 |
|
|
70 |
// shrink the iframe |
|
71 |
var frm = top.getMapFrame(); |
|
72 |
frm.setAttribute("style", "width:35px;right:-3px;"); |
|
73 |
|
|
74 |
|
|
75 |
//alert('closed'); |
|
76 |
//alert('now'); |
|
77 |
//setTimeout('$("mapContainer").setAttribute("style", "left:0;")', 400); |
|
78 |
//$("mapContainer").setAttribute("style", "right:-212px;"); |
|
79 |
//alert($("mapContainer").getAttribute("style")); |
|
80 |
//alert('adjusted'); |
|
81 |
|
|
82 |
//do_move_anim(260); |
|
83 |
} |
|
84 |
|
|
85 |
|
|
86 |
// |
|
87 |
// animate the drawer |
|
88 |
// |
|
89 |
function do_move_anim(xdelta) { |
|
90 |
|
|
91 |
var element = $('mapContainer') |
|
92 |
var old_right = Element.getStyle(element, 'right') |
|
93 |
//alert("right:" + old_right); |
|
94 |
old_right = old_right.substring(0,old_right.indexOf("px")); |
|
95 |
var new_right = old_right + xdelta; |
|
96 |
new_right = new_right + "px"; |
|
97 |
new_right = "0px"; |
|
98 |
var new_left; |
|
99 |
|
|
100 |
if (xdelta > 0) { |
|
101 |
// hide |
|
102 |
new_left = "0px"; |
|
103 |
new_right = "0px"; |
|
104 |
} else { |
|
105 |
// show |
|
106 |
new_left = "0px"; |
|
107 |
new_right = "0px"; |
|
108 |
} |
|
109 |
|
|
110 |
var newStyle = { |
|
111 |
left: new_left, |
|
112 |
right: new_right}; |
|
113 |
Element.setStyle(element, newStyle); |
|
114 |
|
|
115 |
|
|
116 |
//alert(xdelta + ": " + Element.getStyle(element, 'left') + "=l R=" + Element.getStyle(element, 'right')); |
|
117 |
/* |
|
118 |
*/ |
|
119 |
//new Effect.Move(element, { x: xdelta, y: 0, duration: 0.3}) |
|
120 |
|
|
121 |
/* |
|
122 |
new Effect.Move(element, { x: xdelta, y: 0, duration: 0.3, |
|
123 |
afterFinishInternal: function(effect) { with(Element) { |
|
124 |
undoPositioned(effect.element); setStyle(effect.element, newStyle); }}}) |
|
125 |
new Effect.Move(element, { x: xdelta, y: 0, duration: 0.3, |
|
126 |
afterFinishInternal: function(effect) { with(Element) { |
|
127 |
setStyle(effect.element, newStyle); }}}) |
|
128 |
*/ |
|
129 |
|
|
130 |
//Element.setStyle(element, newStyle); |
|
131 |
|
|
132 |
|
|
133 |
|
|
134 |
//alert(Element.getStyle(element, 'left') + "=l R=" + Element.getStyle(element, 'right')); |
|
135 |
} |
|
136 |
|
|
137 |
function getElementsByClassName(oElm, strTagName, strClassName){ |
|
138 |
var arrElements = (strTagName == "*" && document.all)? document.all : oElm.getElementsByTagName(strTagName); |
|
139 |
var arrReturnElements = new Array(); |
|
140 |
strClassName = strClassName.replace(/\-/g, "\\-"); |
|
141 |
var oRegExp = new RegExp("(^|\\s)" + strClassName + "(\\s|$)"); |
|
142 |
var oElement; |
|
143 |
for(var i=0; i<arrElements.length; i++){ |
|
144 |
oElement = arrElements[i]; |
|
145 |
if(oRegExp.test(oElement.className)){ |
|
146 |
arrReturnElements.push(oElement); |
|
147 |
} |
|
148 |
} |
|
149 |
return (arrReturnElements) |
|
150 |
} |
|
151 |
|
|
152 |
|
|
153 |
|
|
154 |
</script> |
|
155 |
</head> |
|
156 |
<!-- |
|
157 |
<body onload="document.location='/wms/GetCapabilities'"> |
|
158 |
--> |
|
159 |
<body onload="mbDoLoad()"> |
|
160 |
|
|
161 |
<div id="mapContainer"> |
|
162 |
|
|
163 |
<table border="0" cellpadding="0" cellspacing="0"> |
|
164 |
<tr> |
|
165 |
<td style="border-width:0;"> |
|
166 |
<div id="mapControl"> |
|
167 |
<div id="mapControlShow" style="display:none"><a href="#" onclick="show_map();return false;"> </a></div> |
|
168 |
<div id="mapControlHide"><a href="#" onclick="hide_map();return false;"> </a></div> |
|
169 |
</div> |
|
170 |
</td> |
|
171 |
<td valign="top"> |
|
172 |
<table border="0" style="border: 1px solid #525d76;"> |
|
173 |
<tr> |
|
174 |
<!-- <td colspan="2" id="mainMapPane" style="background-color: white;" /> --> |
|
175 |
<td colspan="2"> |
|
176 |
<div id="mainMapPane" style="background-color:white;" /> |
|
177 |
<div id="loading"> |
|
178 |
<p> Loading Map |
|
179 |
<img src="../../../../spatial/mapbuilder/lib/skin/default/images/Loading.gif"/> |
|
180 |
</p> |
|
181 |
</div> |
|
182 |
</td> |
|
183 |
|
|
184 |
</tr> |
|
185 |
<tr align="left"> |
|
186 |
<td> |
|
187 |
|
|
188 |
<table border="0"> |
|
189 |
<tr> |
|
190 |
<!--<td align="center" id="mapScaleText"/> |
|
191 |
<td colspan="1"></td> |
|
192 |
<td align="center" id="cursorTrack" />--> |
|
193 |
</tr> |
|
194 |
<tr> <td id="locatorMap" style="display:none"/> </tr> |
|
195 |
<tr> <td id="mainButtonBar" /> </tr> |
|
196 |
<tr> <td id="legend" valign="top"/> </tr> |
|
197 |
<tr> <td colspan="3" id="featureList" /> </tr> |
|
198 |
</table> |
|
199 |
|
|
200 |
</td> |
|
201 |
</tr> |
|
202 |
|
|
203 |
</table> |
|
204 |
</td> |
|
205 |
</tr> |
|
206 |
</table> |
|
207 |
</div> |
|
208 |
|
|
209 |
<div id="debug"></div> |
|
210 |
|
|
211 |
</body> |
|
212 |
</html> |
|
0 | 213 |
lib/style/skins/knp/spatial/africa_frame_config.xml | ||
---|---|---|
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>africa_frame_model.xml</defaultModelUrl> |
|
18 |
<widgets> |
|
19 |
<Loading id="loading"/> |
|
20 |
<Loading2 id="loading2"> |
|
21 |
<mapContainerId>mainMapPane</mapContainerId> |
|
22 |
</Loading2> |
|
23 |
|
|
24 |
<MapPane id="mainMapWidget"> |
|
25 |
<htmlTagId>mainMapPane</htmlTagId> |
|
26 |
<mapContainerId>mainMapContainer</mapContainerId> |
|
27 |
</MapPane> |
|
28 |
<AoiBoxWZ id="aoiBox2"> |
|
29 |
<htmlTagId>mainMapPane</htmlTagId> |
|
30 |
<stylesheet>../../../../spatial/mapbuilder/lib/widget/GmlRenderer.xsl</stylesheet> |
|
31 |
<lineColor>#FF0000</lineColor> |
|
32 |
<lineWidth>1</lineWidth> |
|
33 |
<crossSize>15</crossSize> |
|
34 |
<mapContainerId>mainMapContainer</mapContainerId> |
|
35 |
</AoiBoxWZ> |
|
36 |
<!-- <CursorTrack id="cursorTrack"> |
|
37 |
<mouseHandler>mainMap</mouseHandler> |
|
38 |
</CursorTrack> --> |
|
39 |
<Legend id="legend"> |
|
40 |
</Legend> |
|
41 |
<MapScaleText id="mapScaleText"> |
|
42 |
</MapScaleText> |
|
43 |
</widgets> |
|
44 |
<tools> |
|
45 |
<AoiMouseHandler id="mainAoi"/> |
|
46 |
<DragPanHandler id="mainDragPan"> |
|
47 |
<enabled>false</enabled> |
|
48 |
</DragPanHandler> |
|
49 |
<MouseClickHandler id="mainMouseClick"/> |
|
50 |
</tools> |
|
51 |
</Context> |
|
52 |
|
|
53 |
<Context id="locator"> |
|
54 |
<defaultModelUrl>africa_frame_model.xml</defaultModelUrl> |
|
55 |
<widgets> |
|
56 |
<MapPane id="locatorWidget"> |
|
57 |
<htmlTagId>locatorMap</htmlTagId> |
|
58 |
<targetModel>mainMap</targetModel> |
|
59 |
<mapContainerId>locatorContainer</mapContainerId> |
|
60 |
<fixedWidth>180</fixedWidth> |
|
61 |
</MapPane> |
|
62 |
<AoiBoxWZ id="aoiBox2"> |
|
63 |
<htmlTagId>locatorMap</htmlTagId> |
|
64 |
<stylesheet>../../../../spatial/mapbuilder/lib/widget/GmlRenderer.xsl</stylesheet> |
|
65 |
<lineColor>#FF0000</lineColor> |
|
66 |
<lineWidth>1</lineWidth> |
|
67 |
<crossSize>15</crossSize> |
|
68 |
<mapContainerId>locatorContainer</mapContainerId> |
|
69 |
</AoiBoxWZ> |
|
70 |
</widgets> |
|
71 |
<tools> |
|
72 |
<AoiMouseHandler id="locatorAoi"/> |
|
73 |
<ZoomToAoi id="locatorZoomToAoi"> |
|
74 |
<targetModel>mainMap</targetModel> |
|
75 |
</ZoomToAoi> |
|
76 |
</tools> |
|
77 |
</Context> |
|
78 |
|
|
79 |
<Transaction id="transaction"> |
|
80 |
<widgets> |
|
81 |
<TransactionResponse id="transactionResponse"> |
|
82 |
</TransactionResponse> |
|
83 |
</widgets> |
|
84 |
</Transaction> |
|
85 |
<FeatureCollection id="featureCollection"> |
|
86 |
<namespace>xmlns:gml='http://www.opengis.net/gml' xmlns:wfs='http://www.opengis.net/wfs' xmlns:topp='http://www.openplans.org/topp'</namespace> |
|
87 |
<widgets> |
|
88 |
<GmlRendererWZ id="testGmlRenderer"> |
|
89 |
<htmlTagId>mainMapPane</htmlTagId> |
|
90 |
<targetModel>mainMap</targetModel> |
|
91 |
<mapContainerId>mainMapContainer</mapContainerId> |
|
92 |
<lineColor>#FF0000</lineColor> |
|
93 |
<lineWidth>1</lineWidth> |
|
94 |
<pointDiameter>10</pointDiameter> |
|
95 |
</GmlRendererWZ> |
|
96 |
<FeatureList id="featureList"> |
|
97 |
</FeatureList> |
|
98 |
</widgets> |
|
99 |
</FeatureCollection> |
|
100 |
</models> |
|
101 |
<widgets> |
|
102 |
<ZoomIn id="zoomIn"> |
|
103 |
<buttonBar>mainButtonBar</buttonBar> |
|
104 |
<targetModel>mainMap</targetModel> |
|
105 |
<mouseHandler>mainAoi</mouseHandler> |
|
106 |
<class>RadioButton</class> |
|
107 |
<selected>true</selected> |
|
108 |
<enabledSrc>/images/ZoomInEnable.png</enabledSrc> |
|
109 |
<disabledSrc>/images/ZoomInDisable.png</disabledSrc> |
|
110 |
<tooltip xml:lang="en">click map or drag to zoom in</tooltip> |
|
111 |
<!--tooltip xml:lang="fr">cliquer et faire glisser la souris pour agrandir</tooltip--> |
|
112 |
</ZoomIn> |
|
113 |
<ZoomOut id="zoomOut"> |
|
114 |
<buttonBar>mainButtonBar</buttonBar> |
|
115 |
<targetModel>mainMap</targetModel> |
|
116 |
<mouseHandler>mainAoi</mouseHandler> |
|
117 |
<class>RadioButton</class> |
|
118 |
<enabledSrc>/images/ZoomOutEnable.png</enabledSrc> |
|
119 |
<disabledSrc>/images/ZoomOutDisable.png</disabledSrc> |
|
120 |
<tooltip xml:lang="en">click map to zoom out</tooltip> |
|
121 |
<!--tooltip xml:lang="fr">cliquer pour rée</tooltip--> |
|
122 |
</ZoomOut> |
|
123 |
<DragPan id="dragPan"> |
|
124 |
<buttonBar>mainButtonBar</buttonBar> |
|
125 |
<targetModel>mainMap</targetModel> |
|
126 |
<mouseHandler>mainDragPan</mouseHandler> |
|
127 |
<class>RadioButton</class> |
|
128 |
<enabledSrc>/images/PanEnable.png</enabledSrc> |
|
129 |
<disabledSrc>/images/PanDisable.png</disabledSrc> |
|
130 |
<tooltip xml:lang="en">click and drag to pan</tooltip> |
|
131 |
<!--tooltip xml:lang="fr">cliquer et faire glisser la souris pour voir un autre parti de la carte</tooltip--> |
|
132 |
</DragPan> |
|
133 |
<Reset id="reset"> |
|
134 |
<buttonBar>mainButtonBar</buttonBar> |
|
135 |
<targetModel>mainMap</targetModel> |
|
136 |
<class>Button</class> |
|
137 |
<disabledSrc>/images/ResetExtentDisable.png</disabledSrc> |
|
138 |
<tooltip xml:lang="en">reset the map to full extent</tooltip> |
|
139 |
<!--tooltip xml:lang="fr">redonner la carte ses dimensions complèts</tooltip--> |
|
140 |
</Reset> |
|
141 |
|
|
142 |
<!-- |
|
143 |
<EditPoint id="editPoint"> |
|
144 |
<buttonBar>mainButtonBar</buttonBar> |
|
145 |
<mouseHandler>mainMouseClick</mouseHandler> |
|
146 |
<class>RadioButton</class> |
|
147 |
<enabledSrc>/images/EditPointEnable.png</enabledSrc> |
|
148 |
<disabledSrc>/images/EditPointDisable.png</disabledSrc> |
|
149 |
<tooltip xml:lang="en">click on map to create a point feature</tooltip> |
|
150 |
<tooltip xml:lang="fr">click on map to create a point feature</tooltip> |
|
151 |
<targetModel>featureCollection</targetModel> |
|
152 |
<transactionResponseModel>transaction</transactionResponseModel> |
|
153 |
<webServiceUrl>../../../../wfs</webServiceUrl> |
|
154 |
<featureXpath>/gml:featureMember/topp:metacat_testdata/topp:the_geom/gml:Point/gml:coordinates</featureXpath> |
|
155 |
<featureXpath>/gml:featureMember/topp:metacat_testdata/topp:ID</featureXpath> |
|
156 |
<defaultModelUrl>template_metacat.xml</defaultModelUrl> |
|
157 |
<targetContext>mainMap</targetContext> |
|
158 |
</EditPoint> |
|
159 |
--> |
|
160 |
|
|
161 |
<!-- <GetFeatureInfo id="getFeatureInfo"> |
|
162 |
<buttonBar>mainButtonBar</buttonBar> |
|
163 |
<targetModel>mainMap</targetModel> |
|
164 |
<context>mainMap</context> |
|
165 |
<mouseHandler>mainAoi</mouseHandler> |
|
166 |
<class>RadioButton</class> |
|
167 |
<enabledSrc>/images/QueryEnable.png</enabledSrc> |
|
168 |
<disabledSrc>/images/QueryDisable.png</disabledSrc> |
|
169 |
<tooltip xml:lang="en">select single dataset</tooltip> |
|
170 |
</GetFeatureInfo> --> |
|
171 |
|
|
172 |
<!--SetAoi id="setAoi"> |
|
173 |
<buttonBar>mainButtonBar</buttonBar> |
|
174 |
<targetModel>mainMap</targetModel> |
|
175 |
<mouseHandler>mainAoi</mouseHandler> |
|
176 |
<class>RadioButton</class> |
|
177 |
<enabledSrc>/images/SetAoiEnable.png</enabledSrc> |
|
178 |
<disabledSrc>/images/SetAoiDisable.png</disabledSrc> |
|
179 |
</SetAoi--> |
|
180 |
|
|
181 |
<AoiMetacatQuery id="aoiMetacatQuery"> |
|
182 |
<buttonBar>mainButtonBar</buttonBar> |
|
183 |
<targetModel>mainMap</targetModel> |
|
184 |
<mouseHandler>mainAoi</mouseHandler> |
|
185 |
<class>RadioButton</class> |
|
186 |
<enabledSrc>/images/QueryEnable.png</enabledSrc> |
|
187 |
<disabledSrc>/images/QueryDisable.png</disabledSrc> |
|
188 |
<tooltip xml:lang="en">select multiple datasets</tooltip> |
|
189 |
<metacat>http://pmark.msi.ucsb.edu:8180/knb/metacat</metacat> |
|
190 |
<skin>knp</skin> |
|
191 |
<pixel_tolerance>5</pixel_tolerance> |
|
192 |
</AoiMetacatQuery> |
|
193 |
|
|
194 |
</widgets> |
|
195 |
<skinDir>../../../../spatial/mapbuilder/lib/skin/default</skinDir> |
|
196 |
<!-- Url of LOCAL redirection script, required to access external URLs --> |
|
197 |
<proxyUrl>../../proxy.jsp</proxyUrl> |
|
198 |
<!-- |
|
199 |
<serializeUrl>../../../../spatial/mapbuilder/writeXml</serializeUrl> |
|
200 |
--> |
|
201 |
</MapbuilderConfig> |
|
202 |
|
|
0 | 203 |
lib/style/skins/knp/spatial/map.css | ||
---|---|---|
1 |
/* |
|
2 |
* '$RCSfile$' |
|
3 |
* Purpose: Default style sheet for KNB project web pages |
|
4 |
* Using this stylesheet rather than placing styles directly in |
|
5 |
* the KNB web documents allows us to globally change the |
|
6 |
* formatting styles of the entire site in one easy place. |
|
7 |
* Copyright: 2000 Regents of the University of California and the |
|
8 |
* National Center for Ecological Analysis and Synthesis |
|
9 |
* Authors: Matt Jones |
|
10 |
* |
|
11 |
* '$Author$' |
|
12 |
* '$Date$' |
|
13 |
* '$Revision$' |
|
14 |
* |
|
15 |
* This program is free software; you can redistribute it and/or modify |
|
16 |
* it under the terms of the GNU General Public License as published by |
|
17 |
* the Free Software Foundation; either version 2 of the License, or |
|
18 |
* (at your option) any later version. |
|
19 |
* |
|
20 |
* This program is distributed in the hope that it will be useful, |
|
21 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
22 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
23 |
* GNU General Public License for more details. |
|
24 |
* |
|
25 |
* You should have received a copy of the GNU General Public License |
|
26 |
* along with this program; if not, write to the Free Software |
|
27 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
28 |
*/ |
|
29 |
#mapContainer { |
|
30 |
position: absolute; |
|
31 |
right: 0px; |
|
32 |
top: 0px; |
|
33 |
} |
|
34 |
|
|
35 |
#mapControl { |
|
36 |
height: 48px; |
|
37 |
width: 31px; |
|
38 |
} |
|
39 |
|
|
40 |
div#mapControlHide, |
|
41 |
div#mapControlShow { |
|
42 |
width: 100%; |
|
43 |
height: 100%; |
|
44 |
vertical-align: center; |
|
45 |
} |
|
46 |
|
|
47 |
div#mapControl a { |
|
48 |
display: block; |
|
49 |
margin: 0; padding:0; |
|
50 |
width:100%; |
|
51 |
height:100%; |
|
52 |
overflow:hidden; |
|
53 |
text-decoration:none; |
|
54 |
} |
|
55 |
|
|
56 |
|
|
57 |
div#mapControlShow { |
|
58 |
background: transparent url(../images/show_map.gif) no-repeat bottom left; |
|
59 |
} |
|
60 |
|
|
61 |
div#mapControlHide { |
|
62 |
background: transparent url(../images/hide_map.gif) no-repeat bottom left; |
|
63 |
} |
|
64 |
|
|
65 |
div#mapControlShow a { |
|
66 |
background: transparent url(../show_map.gif) no-repeat top left; |
|
67 |
text-decoration:none; |
|
68 |
} |
|
69 |
div#mapControlHide a { |
|
70 |
background: transparent url(../hide_map.gif) no-repeat top left; |
|
71 |
text-decoration:none; |
|
72 |
} |
|
73 |
|
|
74 |
div#mapControlShow a:hover { |
|
75 |
background:none; |
|
76 |
text-decoration: none; |
|
77 |
} |
|
78 |
|
|
79 |
div#mapControlHide a:hover { |
|
80 |
background:none; |
|
81 |
text-decoration: none; |
|
82 |
} |
|
83 |
|
|
0 | 84 |
lib/style/skins/knp/spatial/html.css | ||
---|---|---|
1 |
h2 { |
|
2 |
color: red; |
|
3 |
background-color: silver; |
|
4 |
} |
|
5 |
|
|
6 |
|
|
7 |
INPUT.bareinput { |
|
8 |
border: 0px blue none; |
|
9 |
font: 8pt Verdana, geneva, arial, sans-serif; |
|
10 |
color: #000000; |
|
11 |
background-color: transparent; |
|
12 |
} |
|
13 |
|
|
14 |
#mainMapContainer { |
|
15 |
border: 1px solid olive; |
|
16 |
cursor: crosshair; |
|
17 |
text-align: left; |
|
18 |
background-color: white; |
|
19 |
} |
|
20 |
|
|
21 |
#legend td { |
|
22 |
/* |
|
23 |
font-size: 70%; |
|
24 |
font-family: cursive; |
|
25 |
background-color: silver; |
|
26 |
*/ |
|
27 |
font: 11pt arial, sans-serif; |
|
28 |
color: #000; |
|
29 |
} |
|
30 |
|
|
31 |
|
|
32 |
img#query_topp\:metacat_testdata { display:none; } |
|
33 |
|
|
0 | 34 |
lib/style/skins/knp/spatial/africa_frame_model.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="iso-8859-1" standalone="no"?> |
|
2 |
<ViewContext version="1.0.0" id="atlas_world" |
|
3 |
xmlns="http://www.opengis.net/context" |
|
4 |
xmlns:xlink="http://www.w3.org/1999/xlink" |
|
5 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
6 |
xsi:schemaLocation="http://www.opengis.net/context http://schemas.opengis.net/context/1.0.0/context.xsd"> |
|
7 |
<General> |
|
8 |
<Window width="250" height="375" /> |
|
9 |
<BoundingBox SRS="EPSG:4326" minx="30.5912" miny="-25.535" maxx="32.3037" maxy="-22.325" /> |
|
10 |
<Title>Krueger National Park</Title> |
|
11 |
<KeywordList> |
|
12 |
<Keyword>metacat</Keyword> |
|
13 |
<Keyword>EML</Keyword> |
|
14 |
</KeywordList> |
|
15 |
<Abstract>Low resolution.</Abstract> |
|
16 |
</General> |
|
17 |
<LayerList> |
|
18 |
|
|
19 |
<Layer queryable="0" hidden="1"> |
|
20 |
<Server service="wms" version="1.1.0" title="wms"> |
|
21 |
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://wms.jpl.nasa.gov/wms.cgi?"/> |
|
22 |
</Server> |
|
23 |
<Name>global_mosaic</Name> |
|
24 |
<!-- <Name>BMNG</Name> --> |
|
25 |
<Title>satellite imagery</Title> |
|
26 |
<SRS>EPSG:4326</SRS> |
|
27 |
<FormatList> |
|
28 |
<Format current="1">image/jpeg</Format> |
|
29 |
</FormatList> |
|
30 |
</Layer> |
|
31 |
|
|
32 |
<Layer queryable="0" hidden="0"> |
|
33 |
<Server service="OGC:WMS" version="1.1.1" |
|
34 |
title="kruger boundary"> |
|
35 |
<OnlineResource xlink:type="simple" xlink:href="../../../../wms" /> |
|
36 |
</Server> |
|
37 |
<Name>knp:SOILS_VENTER</Name> |
|
38 |
<Title>Kruger soils</Title> |
|
39 |
<SRS>EPSG:4326</SRS> |
|
40 |
<FormatList> |
|
41 |
<Format current="1">image/png</Format> |
|
42 |
</FormatList> |
|
43 |
</Layer> |
|
44 |
|
|
45 |
<Layer queryable="0" hidden="0"> |
|
46 |
<Server service="OGC:WMS" version="1.1.1" |
|
47 |
title="kruger boundary"> |
|
48 |
<OnlineResource xlink:type="simple" xlink:href="../../../../wms" /> |
|
49 |
</Server> |
|
50 |
<Name>knp:INFRA_ROADSPUBLIC_VIEW</Name> |
|
51 |
<Title>Kruger Park roads</Title> |
|
52 |
<SRS>EPSG:4326</SRS> |
|
53 |
<FormatList> |
|
54 |
<Format current="1">image/png</Format> |
|
55 |
</FormatList> |
|
56 |
</Layer> |
|
57 |
|
|
58 |
<Layer queryable="0" hidden="0"> |
|
59 |
<Server service="OGC:WMS" version="1.1.1" |
|
60 |
title="kruger boundary"> |
|
61 |
<OnlineResource xlink:type="simple" xlink:href="../../../../wms" /> |
|
62 |
</Server> |
|
63 |
<Name>knp:BNDRY_BUSINESSUNITS</Name> |
|
64 |
<Title>Kruger Park business units</Title> |
|
65 |
<SRS>EPSG:4326</SRS> |
|
66 |
<FormatList> |
|
67 |
<Format current="1">image/png</Format> |
|
68 |
</FormatList> |
|
69 |
</Layer> |
|
70 |
|
|
71 |
|
|
72 |
<Layer queryable="0" hidden="0"> |
|
73 |
<Server service="OGC:WMS" version="1.1.1" |
|
74 |
title="kruger boundary"> |
|
75 |
<OnlineResource xlink:type="simple" xlink:href="../../../../wms" /> |
|
76 |
</Server> |
|
77 |
<Name>knp:BNDRY_KRUGERNP</Name> |
|
78 |
<Title>Kruger Park boundaries</Title> |
|
79 |
<SRS>EPSG:4326</SRS> |
|
80 |
<FormatList> |
|
81 |
<Format current="1">image/png</Format> |
|
82 |
</FormatList> |
|
83 |
</Layer> |
|
84 |
|
|
85 |
<Layer queryable="0" hidden="0"> |
|
86 |
<Server service="OGC:WMS" version="1.1.1" |
|
87 |
title="DatasetBounds"> |
|
88 |
<OnlineResource xlink:type="simple" xlink:href="../../../../wms" /> |
|
89 |
</Server> |
|
90 |
<Name>metacat:data_bounds</Name> |
|
91 |
<Title>Dataset Bounds</Title> |
|
92 |
<SRS>EPSG:4326</SRS> |
|
93 |
<FormatList> |
|
94 |
<Format current="1">image/gif</Format> |
|
95 |
</FormatList> |
|
96 |
</Layer> |
|
97 |
|
|
98 |
|
|
99 |
<Layer queryable="0" hidden="0"> |
|
100 |
<Server service="OGC:WMS" version="1.1.1" |
|
101 |
title="DatasetPoints"> |
|
102 |
<OnlineResource xlink:type="simple" xlink:href="../../../../wms" /> |
|
103 |
</Server> |
|
104 |
<Name>metacat:data_points</Name> |
|
105 |
<Title>Dataset Points</Title> |
|
106 |
<SRS>EPSG:4326</SRS> |
|
107 |
<FormatList> |
|
108 |
<Format current="1">image/gif</Format> |
|
109 |
</FormatList> |
|
110 |
</Layer> |
|
111 |
|
|
112 |
<!-- <Layer queryable="1" hidden="0"> |
|
113 |
<Server service="OGC:WMS" version="1.1.1" |
|
114 |
title="Datasets"> |
|
115 |
<OnlineResource xlink:type="simple" xlink:href="../../../../wms" /> |
|
116 |
</Server> |
|
117 |
<Name>metacat:metacat_testdata</Name> |
|
118 |
<Title>Datasets</Title> |
|
119 |
<SRS>EPSG:4326</SRS> |
|
120 |
<FormatList> |
|
121 |
<Format current="1">image/png</Format> |
|
122 |
</FormatList> |
|
123 |
</Layer> --> |
|
124 |
|
|
125 |
</LayerList> |
|
126 |
</ViewContext> |
|
0 | 127 |
Also available in: Unified diff
Fixed up mapbuilder config for knp skin