<%@ page language="java" %>
<%@page import="edu.ucsb.nceas.metacat.util.GeoserverUtil"%>
<!--
/**
  *  '$RCSfile$'
  *      Authors:     Matthew Perry
  *      Copyright:   2005 University of New Mexico and
  *                   Regents of the University of California and the
  *                   National Center for Ecological Analysis and Synthesis
  *      For Details: http://www.nceas.ucsb.edu/
  *
  *   '$Author$'
  *     '$Date$'
  * '$Revision$'
  * 
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  *
  */
-->
<%@ include file="../settings.jsp"%>
<%
	String GEOSERVER_URL = GeoserverUtil.getGeoserverContextURL();
%>
<!-- *********************** START Map ************************* -->
<html>
  <head>
    <link rel="stylesheet" type="text/css" href="<%=STYLE_COMMON_URL%>/spatial/map.css" />
    <script src="<%=STYLE_COMMON_URL%>/spatial/OpenLayers-2.13.1/OpenLayers.js"></script>
    <script src="<%=STYLE_COMMON_URL%>/spatial/map.js"></script>
    <script type="text/javascript">
        function init() {	
            // set the bounds for this map
            var bounds = new OpenLayers.Bounds(16.5,-35,32.5,-22);
            // include the sanparks layer
            var sanparks_boundaries = new OpenLayers.Layer.WMS(
                    "SANParks Boundaries",
            		"<%=GEOSERVER_URL%>" + "/wms",
                    {layers: "SANParks_Boundaries_gcs_wgs84",
                     transparent: "true", format: "image/gif"} );
            // make the map for this skin
            initMap("<%=GEOSERVER_URL%>", "<%=SERVLET_URL%>", "sanparks", bounds, [sanparks_boundaries]);
        }
    </script>
  </head>
  <body onload="init()">
    <div id="map"></div>
	<div id="featureList">
		<form>
			<select id="locations" name="locations" onchange="zoomToLocation(this)">
				<%@ include file="locations.jsp"%>
			</select>
		</form>
	</div>
  </body>
</html>
