Thanks for the reply, does this mean I cannot use 4326 as an srs for my overlays? I have in the layer declaration srs: 'EPSG:4326', but in firebug I get a bad request 404 reported and in the call it says EPSG 900913.<br>
<br><div class="gmail_quote">On Thu, Jan 29, 2009 at 4:34 PM, Christopher Schmidt <span dir="ltr"><<a href="mailto:crschmidt@metacarta.com">crschmidt@metacarta.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="Ih2E3d">On Thu, Jan 29, 2009 at 04:18:34PM -0500, Robert Hicks wrote:<br>
> Hello all,<br>
> I am having an issue when I have some WMS Layers over top of a Google base<br>
> map. Basically what happens is when I toggle to layers on and off in the<br>
> layer switcher the next time the layer appears it is shifted down relative<br>
> to the Google map. It does not do this with the basic OpenLayers base map<br>
> from <a href="http://labs.metacarta.com/wms/vmap0" target="_blank">http://labs.metacarta.com/wms/vmap0</a>.<br>
<br>
</div>Use spherical mercator.<br>
<br>
<a href="http://docs.openlayers.org/library/spherical_mercator" target="_blank">http://docs.openlayers.org/library/spherical_mercator</a><br>
<a href="http://openlayers.org/dev/examples/spherical-mercator.html" target="_blank">http://openlayers.org/dev/examples/spherical-mercator.html</a><br>
<br>
-- Chris<br>
<div><div></div><div class="Wj3C7c"><br>
> Here are my layer definitions:<br>
><br>
> var parcels = new OpenLayers.Layer.WMS(<br>
> "Parcels", geoserverDomain,<br>
> {<br>
> //width: '800',<br>
> srs: 'EPSG:4326',<br>
> layers: 'mylayer_parcels',<br>
> //height: '341',<br>
> styles: '',<br>
> format: 'image/png',<br>
> transparent: 'true',<br>
> attribution: "A Service"<br>
> }<br>
> );<br>
> var munic = new OpenLayers.Layer.WMS(<br>
> "Municipality", geoserverDomain,<br>
> {<br>
> //width: '800',<br>
> srs: 'EPSG:4326',<br>
> layers: 'mylayer_munic',<br>
> //height: '341',<br>
> styles: '',<br>
> format: 'image/png',<br>
> transparent: 'true',<br>
> attribution: "A Service"<br>
> }<br>
> );<br>
> var roadcenterlines = new OpenLayers.Layer.WMS(<br>
> "Road Center Lines", geoserverDomain,<br>
> {<br>
> //width: '800',<br>
> srs: 'EPSG:4326',<br>
> layers: 'mylayer_roadcenterlines_ft',<br>
> //height: '341',<br>
> styles: '',<br>
> format: 'image/png',<br>
> transparent: 'true',<br>
> attribution: "A Service"<br>
> }<br>
> );<br>
> var raster = new OpenLayers.Layer.WMS(<br>
> "Defiance County Raster", geoserverDomain,<br>
> {<br>
> //width: '800',<br>
> srs: 'EPSG:4326',<br>
> layers: 'gv:county',<br>
> //height: '341',<br>
> styles: '',<br>
> format: 'image/png',<br>
> transparent: 'true',<br>
> attribution: "A Service"<br>
> }<br>
> );<br>
> var vector = new OpenLayers.Layer.Vector(<br>
> "GlobalView",<br>
> {<br>
> attribution:"A Service",<br>
> displayInLayerSwitcher: false<br>
> }<br>
> );<br>
> map.addLayers([wms, raster, parcels, munic, roadcenterlines,<br>
> vector]);<br>
> // setup controls and initial zooms<br>
> map.addControl(new OpenLayers.Control.PanZoomBar());<br>
> map.addControl(new OpenLayers.Control.Navigation());<br>
> map.addControl(new OpenLayers.Control.Scale($('scale')));<br>
> map.addControl(new OpenLayers.Control.MousePosition({element:<br>
> $('location')}));<br>
> map.addControl(new OpenLayers.Control.LayerSwitcher());<br>
> map.addControl(new OpenLayers.Control.Attribution());<br>
> map.setCenter(new<br>
> OpenLayers.LonLat(-84.52,41.35),11,false,false);<br>
><br>
> Has anyone encountered this?<br>
<br>
</div></div>> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
> <a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
<font color="#888888"><br>
<br>
--<br>
Christopher Schmidt<br>
MetaCarta<br>
</font></blockquote></div><br>