[OpenLayers-Users] mapserver layer with bad rendering

Arnd Wippermann arnd.wippermann at web.de
Mon Oct 27 12:47:04 EDT 2008


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: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] Im
Auftrag von Didrik Pinte
Gesendet: Montag, 27. Oktober 2008 15:44
An: users at openlayers.org
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




More information about the Users mailing list