Ok I made some progress but I have hit a few roadblocks. At the moment my code successfully displays the google map, hybrid and satelite images. However only if it is opened from its current location if I try to open it on my server, i get an error displaying that my google maps api does not correspond. However even when i registered a new one for
<a href="http://192.168.1.130">http://192.168.1.130</a> (my server address) the page simply displays as plain white.<br><br>My second problem is getting mapserver to display. Below is my current attempt to get it to work. What am supposed to call the mapfile?, or direct it to the url of the working map?
<br><br style="background-color: rgb(255, 255, 102);"><span style="background-color: rgb(255, 255, 102);"><html></span><br style="background-color: rgb(255, 255, 102);"><span style="background-color: rgb(255, 255, 102);">
<head></span><br style="background-color: rgb(255, 255, 102);"><span style="background-color: rgb(255, 255, 102);"> <script src="<a href="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAjpkAC9ePGem0lIq5XcMiuhR_wWLPFku8Ix9i2SXYRVK3e45q1BQUd_beF8dtzKET_EteAjPdGDwqpQ">
http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAjpkAC9ePGem0lIq5XcMiuhR_wWLPFku8Ix9i2SXYRVK3e45q1BQUd_beF8dtzKET_EteAjPdGDwqpQ</a>" type="text/javascript"></script></span><br style="background-color: rgb(255, 255, 102);">
<span style="background-color: rgb(255, 255, 102);"> <script src="../lib/OpenLayers.js" type="text/javascript"></script></span><br style="background-color: rgb(255, 255, 102);"><br style="background-color: rgb(255, 255, 102);">
<span style="background-color: rgb(255, 255, 102);"></head></span><br style="background-color: rgb(255, 255, 102);"><span style="background-color: rgb(255, 255, 102);"><body></span><br style="background-color: rgb(255, 255, 102);">
<span style="background-color: rgb(255, 255, 102);"><h4>Debortoli Wines OpenLayers Test</h4></span><br style="background-color: rgb(255, 255, 102);"><br style="background-color: rgb(255, 255, 102);"><span style="background-color: rgb(255, 255, 102);">
<div style="width:100%; height:80%" id="map"></div></span><br style="background-color: rgb(255, 255, 102);"><br style="background-color: rgb(255, 255, 102);"><span style="background-color: rgb(255, 255, 102);">
<script defer="defer" type="text/javascript"></span><br style="background-color: rgb(255, 255, 102);"><span style="background-color: rgb(255, 255, 102);"> OpenLayers.ProxyHost="/proxy/?url=";
</span><br style="background-color: rgb(255, 255, 102);"><br style="background-color: rgb(255, 255, 102);"><span style="background-color: rgb(255, 255, 102);"> var map = new OpenLayers.Map( 'map', {controls: [new
OpenLayers.Control.PanZoomBar()]} );</span><br style="background-color: rgb(255, 255, 102);"><span style="background-color: rgb(255, 255, 102);">//Adding Controls</span><br style="background-color: rgb(255, 255, 102);"><span style="background-color: rgb(255, 255, 102);">
map.addControl(new OpenLayers.Control.MouseToolbar());</span><br style="background-color: rgb(255, 255, 102);"><span style="background-color: rgb(255, 255, 102);"> map.addControl(new OpenLayers.Control.MousePosition
());</span><br style="background-color: rgb(255, 255, 102);"><span style="background-color: rgb(255, 255, 102);"> map.addControl(new OpenLayers.Control.Permalink());</span><br style="background-color: rgb(255, 255, 102);">
<br style="background-color: rgb(255, 255, 102);"><span style="background-color: rgb(255, 255, 102);"> var layer_switcher = new OpenLayers.Control.LayerSwitcher();</span><br style="background-color: rgb(255, 255, 102);">
<span style="background-color: rgb(255, 255, 102);"> map.addControl(layer_switcher);</span><br style="background-color: rgb(255, 255, 102);"><span style="background-color: rgb(255, 255, 102);"> layer_switcher.maximizeControl();
</span><br style="background-color: rgb(255, 255, 102);"><br style="background-color: rgb(255, 255, 102);"><span style="background-color: rgb(255, 255, 102);">//Adding Layers</span><br style="background-color: rgb(255, 255, 102);">
<span style="background-color: rgb(255, 255, 102);"> var google = new OpenLayers.Layer.Google("Google");</span><br style="background-color: rgb(255, 255, 102);"><span style="background-color: rgb(255, 255, 102);">
var googles = new OpenLayers.Layer.Google("Google Satellite", { 'type': G_SATELLITE_MAP });</span><br style="background-color: rgb(255, 255, 102);"><span style="background-color: rgb(255, 255, 102);">
var googleh = new OpenLayers.Layer.Google("Google Hybrid", { 'type': G_HYBRID_MAP });</span><br style="background-color: rgb(255, 255, 102);"><span style="background-color: rgb(255, 255, 102);"> var mapserv = new
Openlayers.Layer.HTTPRequest("Debortoli Mapserver", "<a href="http://192.168.1.130/cgi-bin/mapserv?map=/usr/local/mapfiles/dbw.map&layers=dbap&mode=browse">http://192.168.1.130/cgi-bin/mapserv?map=/usr/local/mapfiles/dbw.map&layers=dbap&mode=browse
</a>");</span><br style="background-color: rgb(255, 255, 102);"><br style="background-color: rgb(255, 255, 102);"><span style="background-color: rgb(255, 255, 102);"> map.addLayers([google, googles, googleh, mapserv]);
</span><br style="background-color: rgb(255, 255, 102);"><br style="background-color: rgb(255, 255, 102);"><span style="background-color: rgb(255, 255, 102);"> map.setCenter(new OpenLayers.LonLat(135,-28), 4);</span><br style="background-color: rgb(255, 255, 102);">
<span style="background-color: rgb(255, 255, 102);"> </span><br style="background-color: rgb(255, 255, 102);"><span style="background-color: rgb(255, 255, 102);"> </script></span><br style="background-color: rgb(255, 255, 102);">
<span style="background-color: rgb(255, 255, 102);"></body></span><br style="background-color: rgb(255, 255, 102);"><span style="background-color: rgb(255, 255, 102);"></html></span><br><br><div><span class="gmail_quote">
On 7/2/07, <b class="gmail_sendername">Bradley Mclain</b> <<a href="mailto:bradleym06@gmail.com">bradleym06@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Cool I'll look into that and get back to you with my progress. Currently having issues getting my google map to display, its just shows up as white. I registered a new key and everything.<div><span class="e" id="q_11384a812bff39f3_1">
<br><br><div><span class="gmail_quote">
On 7/2/07, <b class="gmail_sendername">Anselm Hook</b> <<a href="mailto:anselm@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">anselm@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Oh, actually that example is not perfectly clear; it doesn't expressly illuminate that you can choose to leave more than one layer on at a time.... in any case you can do so.<br><span><br> - a</span><div><span>
<br><br><div><span class="gmail_quote">
On 7/1/07, <b class="gmail_sendername">Anselm Hook</b> <<a href="mailto:anselm@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">anselm@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<a href="http://openlayers.org/gallery/multiple.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://openlayers.org/gallery/multiple.html</a><br><br><div><div><span>
<span class="gmail_quote">On 7/1/07, <b class="gmail_sendername">Bradley Mclain</b> <<a href="mailto:bradleym06@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
bradleym06@gmail.com</a>> wrote:</span></span></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><span>
Hey<br><br>What I am looking to do is to integrate Google Maps with a custom map which is being served from Mapserver. I currently have Mapserver working and serving the correct layers. I just have a few questions about this which I am hoping you can answer.
<br><br>Is it possible to use openlayers to integrate the two?<br>If not, are there any other possible programs which I can use to do this?<br>If so, how do I go about this?<br><br>Cheers<br><br>Brad<br>
<br></span></div><span>_______________________________________________<br>Dev mailing list<br><a href="mailto:Dev@openlayers.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Dev@openlayers.org
</a><br><a href="http://openlayers.org/mailman/listinfo/dev" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://openlayers.org/mailman/listinfo/dev</a><br><br></span></blockquote></div><br>
</blockquote></div><br>
</span></div></blockquote></div><br>
</span></div></blockquote></div><br>