[OpenLayers-Users] WMS Layer Request Problems

Christopher Schmidt crschmidt at metacarta.com
Fri Dec 14 07:31:58 EST 2007


On Fri, Dec 14, 2007 at 04:23:35PM +1100, Bradley McLain wrote:
> A styles parameter is not optional according to the WMS 1.1 spec, nor is
> it optional in MapServer 5.0. (This is probably the single most
> "controversial" change in 5.0, and I believe it's going away in 5.0.1.)
> 
> So these parameters have always been required? it was just the case that I
> was running an older version of mapserver that did not enforce them?

Yes.

> With "work at all" I was referring to simply trying to add in the additional
> parameter in the OpenLayers WMS Layer definition. Since then I have got a
> Mapserver Layer working, so I guess this narrows the problem down to a WMS
> issue. Currently my WMS definitions in OL are as follows:
> 
> 		var grap = new OpenLayers.Layer.WMS( "Griffith Aerial Photo",
> 		"http://192.168.1.130/cgi-bin/mapserv?map=/var/www/mapfiles/wms.map",
> 		{layers: 'grap', format:"image/png"},
> 		{isBaseLayer: false}
> 		);

And what doesn't work about this? Do images load at all? Do you get pink
tiles? Did you read the page I linked, about problems with images being
incorrect?

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list