Project

General

Profile

1 5829 leinfelder
<%@ page language="java" %>
2 5858 leinfelder
<%@page import="edu.ucsb.nceas.metacat.util.GeoserverUtil"%>
3 5829 leinfelder
<!--
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$'
13
  *     '$Date$'
14
  * '$Revision$'
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 5858 leinfelder
	String GEOSERVER_URL = GeoserverUtil.getGeoserverContextURL();
36 5829 leinfelder
%>
37
<!-- *********************** START Map ************************* -->
38 5858 leinfelder
<html>
39 5829 leinfelder
  <head>
40 5934 leinfelder
	<link rel="stylesheet" type="text/css" href="<%=STYLE_COMMON_URL%>/spatial/map.css" />
41 8673 leinfelder
    <script src="<%=STYLE_COMMON_URL%>/spatial/OpenLayers-2.13.1/OpenLayers.js"></script>
42 5858 leinfelder
    <script src="<%=STYLE_COMMON_URL%>/spatial/map.js"></script>
43 5829 leinfelder
    <script type="text/javascript">
44 5858 leinfelder
        function init() {
45 5829 leinfelder
            var bounds = new OpenLayers.Bounds(-180,-90,180,90);
46 5858 leinfelder
            // make the map for this skin
47
            initMap("<%=GEOSERVER_URL%>", "<%=SERVLET_URL%>", "default", bounds);
48 5829 leinfelder
        }
49
    </script>
50
  </head>
51
  <body onload="init()">
52
    <div id="map"></div>
53 5856 leinfelder
	<div id="featureList">
54
		<form>
55 5859 leinfelder
			<select id="locations" name="locations" onchange="zoomToLocation(this)">
56 5856 leinfelder
				<%@ include file="locations.jsp"%>
57
			</select>
58
		</form>
59
	</div>
60 5829 leinfelder
  </body>
61
</html>