Having some issues with this.

The basemap is google. The wms can serve tiles in the 900913 projection 
(geoserver). However, the wms layer on geoserver is in something different.
                         layer[i] = new 
OpenLayers.Layer.WMS(myname,my.url, {
                             layers: layname,
                             transparent: true
                         }, {
                             isBaseLayer: lay.baseLayer,
                             projection:projection;
                             maxExtent: new 
OpenLayers.Bounds(left,bottom,right,top),
                             displayinLayerSwitcher: true
                         });
The values of left,bottom,etc. projection, (in this EPSG:27200 which I 
have included supported for in the header) are extracted from a 
wmsGetCapabilities call.

While the getMap request sends the 27200 EPSG, the coordinates requested 
are wrong.
When the tile queue is created, the getMaxExtent in initGriddedTiles is 
not adjusted for the baselayer projection so the tiles are screwed up. 
When the wms layer is created, it is not known what the projection of 
baselayer will be, so I would have thought that it should have 
determined extent by projecting against the baselayer projection?

Any thoughts on how I deal with this one? Is openlayers wrong or should 
I be changing the maxextent explicitly of all my wms layers when ever 
the baselayer is changed?

-- 
Phil Scadden, Senior Scientist GNS Science Ltd 764 Cumberland St, 
Private Bag 1930, Dunedin, New Zealand Ph +64 3 4799663, fax +64 3 477 5232


Notice: This email and any attachments are confidential. If received in error 
please destroy and immediately notify us. Do not copy or disclose the contents.

_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to