You have to change the parameter for the image format. I think, it has to be format: "png24".
Calling MapServer directly delivers the image in the default format, but in the OpenLayers Request you get the image in the format you have choosen. Arnd Wippermann -----Ursprüngliche Nachricht----- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Didrik Pinte Gesendet: Montag, 27. Oktober 2008 15:44 An: [email protected] Betreff: [OpenLayers-Users] mapserver layer with bad rendering Hi, I've setted up an OpenLayers client connected on a WMS MapServer. It works fine except with a raster layer. When calling mapserver directly, the raster layer is rendered fine : http://public.dpinte.fastmail.fm/downloads/mapserver.png When rendered using OpenLayers, they are some dirty pixels on the picture. See http://public.dpinte.fastmail.fm/downloads/openlayers.png Is there a way to correct this ? The layer definition is the following : var ortho = new OpenLayers.Layer.MapServer( "Orthophotoplans", "http://myserver/cgi-bin/mapserv", { map: '/var/data/wms.map', transparent: 'false', layers: 'ortho', format: 'png', }, { 'singleTile': false, 'isBaseLayer': false, 'displayInLayerSwitcher':true } ); Best regards, Didrik _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
