<html>
<head>
<!--Adding Google Maps API-->
<script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAjpkAC9ePGem0lIq5XcMiuhR_wWLPFku8Ix9i2SXYRVK3e45q1BQUd_beF8dtzKET_EteAjPdGDwqpQ" type="text/javascript">
</script>
<!--Adding OpenLayers Script-->
<script src="../lib/OpenLayers.js">
</script>
</head>
<body>
<h4>Debortoli Wines OpenLayers Test</h4>
<div style="width:100%; height:80%" id="map"></div>
<!--Creating Map-->
<script defer="defer" type="text/javascript">
OpenLayers.ProxyHost="/proxy/?url=";
//Creating Map
var map = new OpenLayers.Map( 'map', {controls: [new OpenLayers.Control.PanZoomBar()]} );
//Defining Variables for Longitude, Latitude and Zoom
var lon = 135;
var lat = -30;
var zoom = 4;
//Adding map controls
map.addControl(new OpenLayers.Control.MouseToolbar());
map.addControl(new OpenLayers.Control.MousePosition());
map.addControl(new OpenLayers.Control.Permalink());
//Layer Switcher
var layer_switcher = new OpenLayers.Control.LayerSwitcher();
map.addControl(layer_switcher);
layer_switcher.maximizeControl();
//Creating Google Layers
var google = new OpenLayers.Layer.Google("Google");
var googles = new OpenLayers.Layer.Google("Google Satellite", { 'type': G_SATELLITE_MAP });
var googleh = new OpenLayers.Layer.Google("Google Hybrid", { 'type': G_HYBRID_MAP });
//Creating Debortoli WMS Layer
var dbwwms = new OpenLayers.Layer.WMS( "De Bortoli Mapserver",
"http://192.168.1.130/cgi-bin/mapserv?map=/usr/local/mapfiles/dbw.map",
//{layers: 'dbwap','bcadbd','hcadbd'},
//{mode: 'map'},
//{service: 'wms'},
//{version: '1.1'}
//{request: 'getmap'}
);
//Adding Layers
map.addLayers([google, googles, googleh]);
//Setting map centre using predefined variables
map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
                
</script>
</body>
</html>