<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><div>I am trying to get google maps to show up under some gps track logs that are stored in a postgis database.<br><br>I modified google.html that comes in the examples/ folder to use my WMS server instead of whatever it was set to<br><br>My MAP file for MapServer is setup fairly basic and is shown at the bottom of this msg.<br><br>My modified google.html is shortly following.<br><br>The issue i am having though is that in IE 7, the WMS layer is non-transparent overtop the GoogleMaps layer(s).<br>In firefox the WMS layer isn't visible at all even though the layer is checked in the layer selector. It also pulls the image from my mapserver but doesn't display it over the google maps.<br><br>I'd appreciate any suggestions.<br><br>Curtis<br><br>GOOGLE.HTML---------------------------------<br><span></span><br>
<head><br> <style type="text/css"><br> #map {<br> width: 100%;<br> height: 100%;<br> border: 1px solid black;<br> background-color: red;<br> }<br><br> body {<br> margin: 0px;<br> padding: 0px;<br> }<br> </style><br><br><span> <script src="%3Ca%20target=" _blank="" href="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAR368KGH7sEpRSGVuyx9bqhQ6T14TsMnNzsQ2T02NPhpUqvH4JxTK1LZBrKRLBfC6g-XZbGjPbmWGvA">http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAR368KGH7sEpRSGVuyx9bqhQ6T14TsMnNzsQ2T02NPhpUqvH4JxTK1LZBrKRLBfC6g-XZbGjPbmWGvA</a>'></script></span><br>
<script src="lib/OpenLayers.js"></script><br> <script type="text/javascript"><br> <!--<br> var lon = 5;<br> var lat = 40;<br> var zoom = 17;<br> var map, layer;<br><br> function init(){<br> map = new OpenLayers.Map( $('map') , <br> { controls: [new OpenLayers.Control.MouseDefaults()] , 'numZoomLevels':20});<br><br> var satellite = new OpenLayers.Layer.Google( "Google Satellite" , {type: G_SATELLITE_MAP, 'maxZoomLevel':18} );<br>
var hybrid = new OpenLayers.Layer.Google( "Google Hybrid" , {type: G_HYBRID_MAP, 'maxZoomLevel':18} );<br><br> map.addLayers([satellite,hybrid]);<br><span> var tracklog = new OpenLayers.Layer.WMS.Untiled( "Track Log", "<a target="_blank" href="http://lappie/cgi-bin/mapserv">http://lappie/cgi-bin/mapserv</a>?", </span><br> {map: '/www/kismet/tracklog.map', transparent:'true', layers: 'Track Log',srs:'EPSG:4326', 'format':'gif'},{<br> isBaseLayer:false } );<br> map.addLayer(tracklog);<br><br> map.setCenter(new
OpenLayers.LonLat(-98.47,29.49), 15);<br> map.addControl( new OpenLayers.Control.LayerSwitcher() );<br> map.addControl( new OpenLayers.Control.PanZoomBar() );<br><br> }<br> <br> // --><br><br> </script><br> </head><br> <body onload="init()"><br> <div id="map"></div><br> </body><br></html><br><br><br>MAPFILE--------------------------------------------------------------------------<br>MAPFILE--------------------------------------------------------------------------<br>MAPFILE--------------------------------------------------------------------------<br><br>MAP<br> NAME "Track Log WMS"<br> IMAGETYPE
gif<br> UNITS dd<br> IMAGECOLOR 255 255 255<br> PROJECTION <br> "init=epsg:4326"<br> END<br> <br> WEB<br> METADATA<br> "wms_title" "Track Log WMS"<br><span> "wms_onlineresource" "<a target="_blank" href="http://lappie/cgi-bin/mapserv?map=/www/kismet/tracklog.map">http://lappie/cgi-bin/mapserv?map=/www/kismet/tracklog.map</a>&"</span><br> "wms_srs" "EPSG:4326"<br> END<br> END<br> <br>
OUTPUTFORMAT<br> NAME png<br> DRIVER "GD/PNG"<br> MIMETYPE "image/png"<br> IMAGEMODE PC256<br> EXTENSION "png"<br> TRANSPARENT on<br> END<br> <br> OUTPUTFORMAT<br> NAME gif<br> DRIVER "GD/GIF"<br> MIMETYPE "image/gif"<br> IMAGEMODE PC256<br> EXTENSION "gif"<br> TRANSPARENT on<br> END<br> <br> LAYER <br> NAME "Track Log"<br> CONNECTION "user=password
password=password dbname=deathstar host=localhost"<br> CONNECTIONTYPE postgis<br> DATA "point from track_log"<br> TYPE point<br> STATUS on<br> <br> METADATA<br> "wms_title" "Track Log"<br> END<br> <br> CLASS<br> STYLE<br> SYMBOL "circle"<br> SIZE 5<br> COLOR 255 0 0 <br>
END<br> END<br> END<br> <br> SYMBOL<br> NAME "circle"<br> TYPE ellipse<br> FILLED true<br> POINTS<br> 1 1<br> END<br> END<br>END<br></div></div></body></html>