Project

General

Profile

« Previous | Next » 

Revision 3034

Added by perry about 18 years ago

initial import of changes to metacat source and config files to support spatial option

View differences:

index.jsp
25 25
  */
26 26
%>
27 27
<%@ include file="../../common/common-settings.jsp"%>
28
<%@ include file="../../common/map-settings.jsp"%>
29
<% 
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
String mapUrl = "@systemidserver@/@context@/style/skins/knp/spatial/pma.html";
44
%>
28 45
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
29 46
<html>
30 47
<head>
......
39 56
</head>
40 57
<body>
41 58
<script language="JavaScript">
59

  
42 60
function getMapFrame() {
43 61
	return document.getElementById('mapFrame');
44 62
}
45 63
insertTemplateOpening();
46 64
insertSearchBox();
47 65
</script>
66

  
48 67
<table width="100%" border="0" cellspacing="0" cellpadding="0">
49 68
  <tr><td colspan="1" style="padding-right:60px">
50 69
<p>
......
178 197
</p>
179 198
  </td>
180 199
  <td class="mapColumn" rowspan="2" style="vertical-align:top">
181
	<iframe src="http://dataknp.sanparks.org/geoserver/data/mbdemos/demo/metacat_wfs/pma.html" class="mapFrame" 
182
	id="mapFrame" name="mapFrame" marginheight="0" marginwidth="0" border="0" framespacing="0" hspace="0" vspace="0" frameborder="0" scrolling="no">Your browser does not support the iframe tag. &lt;a href="http://dataknp.sanparks.org/geoserver/data/mbdemos/demo/metacat_wfs/pma.html" target="_blank"&gt;This content&lt;/a&gt; should have been displayed at this location</iframe>
200
	<iframe src="<%=mapUrl%>" class="mapFrame" 
201
	id="mapFrame" name="mapFrame" marginheight="0" marginwidth="0" border="0" 
202
	framespacing="0" hspace="0" vspace="0" frameborder="0" scrolling="no">
203
	  Your browser does not support the iframe tag. 
204
	  &lt;a href="<%=mapUrl%>" target="_blank"&gt;
205
	  This content&lt;/a&gt; should have been displayed at this location
206
	</iframe>
183 207
  </td></tr>
184 208
  <tr><td>
185 209
    <p>

Also available in: Unified diff