Project

General

Profile

1
<%@ page language="java" %>
2
<%@page import="edu.ucsb.nceas.metacat.util.GeoserverUtil"%>
3
<!--
4
/**
5
  *  '$RCSfile$'
6
  *      Authors:     Matthew Perry
7
  *      Copyright:   2005 University of New Mexico and
8
  *                   Regents of the University of California and the
9
  *                   National Center for Ecological Analysis and Synthesis
10
  *      For Details: http://www.nceas.ucsb.edu/
11
  *
12
  *   '$Author: leinfelder $'
13
  *     '$Date: 2011-02-09 09:55:45 -0800 (Wed, 09 Feb 2011) $'
14
  * '$Revision: 5934 $'
15
  * 
16
  * This program is free software; you can redistribute it and/or modify
17
  * it under the terms of the GNU General Public License as published by
18
  * the Free Software Foundation; either version 2 of the License, or
19
  * (at your option) any later version.
20
  *
21
  * This program is distributed in the hope that it will be useful,
22
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
23
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24
  * GNU General Public License for more details.
25
  *
26
  * You should have received a copy of the GNU General Public License
27
  * along with this program; if not, write to the Free Software
28
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
29
  *
30
  */
31
-->
32
<%@ include file="../settings.jsp"%>
33
<%
34
	String GEOSERVER_URL = GeoserverUtil.getGeoserverContextURL();
35
%>
36
<!-- *********************** START Map ************************* -->
37
<html>
38
  <head>
39
    <link rel="stylesheet" type="text/css" href="<%=STYLE_COMMON_URL%>/spatial/map.css" />
40
    <script src="http://www.openlayers.org/api/OpenLayers.js"></script>
41
    <script src="<%=STYLE_COMMON_URL%>/spatial/map.js"></script>
42
    <script type="text/javascript">
43
        function init() {	
44
            var bounds = new OpenLayers.Bounds(16.5,-35,32.5,-22);
45
         	// include the sanparks layer
46
            var sanparks_boundaries = new OpenLayers.Layer.WMS(
47
                    "SANParks Boundaries",
48
            		"<%=GEOSERVER_URL%>" + "/wms",
49
                    {layers: "SANParks_Boundaries_gcs_wgs84",
50
                     transparent: "true", format: "image/gif"} );
51
            // make the map for this skin
52
            initMap("<%=GEOSERVER_URL%>", "<%=SERVLET_URL%>", "saeon", bounds, [sanparks_boundaries]);
53
        }
54
    </script>
55
  </head>
56
  <body onload="init()">
57
    <div id="map"></div>
58
	<div id="featureList">
59
		<form>
60
			<select id="locations" name="locations" onchange="zoomToLocation(this)">
61
				<%@ include file="locations.jsp"%>
62
			</select>
63
		</form>
64
	</div>
65
  </body>
66
</html>
(2-2/2)