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-01-28 15:00:16 -0800 (Fri, 28 Jan 2011) $'
14
  * '$Revision: 5858 $'
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="../common-settings.jsp"%>
33
<%@ include file="../configure-check.jsp"%>
34
<%
35
	String GEOSERVER_URL = GeoserverUtil.getGeoserverContextURL();
36
%>
37
<!-- *********************** START Map ************************* -->
38
<html>
39
  <head>
40
    <style type="text/css">
41
        body { background-color:white; }
42
        #map {
43
            width: 760px;
44
            height: 380px;
45
            border: 1px solid #cccccc;
46
        }
47
    </style>
48
    <script src="http://www.openlayers.org/api/OpenLayers.js"></script>
49
    <script src="<%=STYLE_COMMON_URL%>/spatial/map.js"></script>
50
    <script type="text/javascript">
51
        function init() {
52
            var bounds = new OpenLayers.Bounds(-180,-90,180,90);
53
            // make the map for this skin
54
            initMap("<%=GEOSERVER_URL%>", "<%=SERVLET_URL%>", "default", bounds);
55
        }
56
    </script>
57
  </head>
58
  <body onload="init()">
59
    <div id="map"></div>
60
	<div id="featureList">
61
		<form>
62
			<select id="locations" onchange="zoomToLocation(this)">
63
				<%@ include file="locations.jsp"%>
64
			</select>
65
		</form>
66
	</div>
67
  </body>
68
</html>
(3-3/3)