OK, here is how I defined my WMS layer that I'm showing on top of Gmaps. The key is to define "srs" parameter to Geoserver. In my case this is a custom projection that can be defined in epsg.properties<div><br>
</div><div><div> var tiled = new OpenLayers.Layer.WMS("ulice_kutina - Tiled", "<a href="http://89.164.44.84/geoserver/wms">http://89.164.44.84/geoserver/wms</a>",</div><div><br></div><div> {</div>
<div> layers: 'zoran:ulice',</div><div> styles: '',</div><div> srs: '222222',</div><div> format: 'image/png',</div><div>
tiled: 'true',</div><div> transparent: true</div><div> },</div><div> {</div><div> 'opacity': 1, 'isBaseLayer': false, 'wrapDateLine': true</div>
<div> }</div><div> );</div></div><div><br><div>I also set up custom displayProjection, but for that I had to employ Proj4js-compressed.js (thanks Mike Adair!).</div><div>Google displayProjection and Geoserver, you'll find plenty of examples...</div>
<div><br></div><div>Best regards,<br clear="all">--- <br>Zoran Jankovic<br>ZIS-Izrada softvera i savjetovanje / ZIS - Software Development and Consulting<br><br><a href="http://www.zisis.hr">http://www.zisis.hr</a><br><br>
M: 00 385 98 682 902<br>T: 00 385 44 683 374<br><br>A. Senoe 4<br>44320 Kutina<br>Croatia<br>
<br><br><div class="gmail_quote">On Wed, Jun 16, 2010 at 6:00 PM, Jefferson Heard <span dir="ltr"><<a href="mailto:jefferson.r.heard@gmail.com">jefferson.r.heard@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Right, but GeoServer can; those servers can reproject my tiles for me, but I can't seem to figure out how to adjust the WMS request that OpenLayers is making.<br>
<div><div></div><div class="h5"><br>
On Jun 16, 2010, at 11:52 AM, <<a href="mailto:christopher.schmidt@nokia.com">christopher.schmidt@nokia.com</a>> <<a href="mailto:christopher.schmidt@nokia.com">christopher.schmidt@nokia.com</a>> wrote:<br>
<br>
><br>
> On Jun 16, 2010, at 11:47 AM, ext Jefferson Heard wrote:<br>
><br>
>> I'm trying to layer a WMS layer onto an OpenStreetMaps map. I'm getting WMS layers from WMSGetCapabilities records coming from GeoExt. My base layer is, of course, spherical mercator (OSM), but my WMS layers are EPSG:4326 - namely the NOAA Weather Radar Mosaic and IR base reflectivity images. Does anyone know how to do this? Currently, I'm doing this:<br>
>><br>
>> var grid = Ext.getCmp('avail_overlays_grid');<br>
>> var record = grid.getSelectionModel().getSelected();<br>
>> if(record) {<br>
>> var copy = record.copy();<br>
>> copy.data["layer"] = record.get("layer");<br>
>> copy.get("layer").mergeNewParams({<br>
>> format: "image/png",<br>
>> transparent: true,<br>
>> reproject: true<br>
>> });<br>
>> copy.get("layer").shared=false;<br>
>> copy.get("layer").displayInLayerSwitcher=true;<br>
>> panel.layers.add(copy);<br>
>> }<br>
><br>
> All raster layers must be in the same projection. OpenLayers<br>
> can't reproject images.<br>
><br>
> Regards,<br>
> --<br>
> Christopher Schmidt<br>
> Nokia<br>
><br>
<br>
_______________________________________________<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>
</div></div></blockquote></div><br></div></div>