For some reason this is not working for me, I changed the settings in the
Mapfile and defined the OUTPUTFORMAT and then added the format:'image/png',
to my Openlayers folder. I even tried changing my mapfile to export as jpeg
so as to match Openayers but no luck.

Could it have something to do with that I am using the
MapServer.Untiledlayer function instead of a
WMS.Untiled layer?

On 7/10/07, Andrew Hughes <[EMAIL PROTECTED]> wrote:

 Bart's correct... but just be warned.... jpeg is A LOT smaller is size
than png-24. There's a reason why jpeg is the default in OpenLayers.

--AH

Bart van den Eijnden (OSGIS) wrote:

OpenLayers uses jpeg by default for WMS layers, so change it in the
constructor of your WMS.Untiled layer:

'format':'image/png', i.e.:

baselayer0 = new OpenLayers.Layer.WMS.Untiled( "Standaard",

"http://test.intranet.rijkswaterstaat.nl/services/geoservices/startkaart?"; 
<http://test.intranet.rijkswaterstaat.nl/services/geoservices/startkaart?>,
{layers: 'startkaart', 'format':'image/png', 'transparent':'TRUE'},
{'numZoomLevels': 12, 'ratio':1, isBaseLayer: true} );

Also check you have image/png mapped as a mimetype for PNG24 in your
Mapserver MAP file (OUTPUTFORMAT section).

Best regards,
Bart

--
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl


--------- Oorspronkelijk bericht --------
Van: Bradley Mclain <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
Naar: OpenLayers ML <[email protected]> <[email protected]>
Onderwerp: [OpenLayers-Dev] Poor Image Quality
Datum: 10/07/07 05:07



 I am importing an image as an untiled Mapserver layer into OpenLayers and

 it is of extremely good quality but when it shows up in OpenLayers it&#39;s
quality is terrible.The image when viewed through Mapserver is not as good
as the original but it still much better than what it is showing up as in
OpenLayers. I have my Mapserver image format as PNG24.

 Any ideas on what might be causing this and how to fix it?CheersBrad





_______________________________________________
Dev mailing list
[EMAIL PROTECTED]://openlayers.org/mailman/listinfo/dev


_______________________________________________
Dev mailing list
[EMAIL PROTECTED]://openlayers.org/mailman/listinfo/dev



--

Regards,

*Andrew Hughes*
Software Engineer
LISAsoft Pty. Ltd. (Adelaide)

------------------------------
   LISAsoft Pty. Ltd. <http://www.lisasoft.com>  *ADELAIDE Office*
 <http://terrapages.net/mapbutton/RetrieveButtonServlet?buttonID=4>
38 Greenhill Road
Wayville SA 5034
Australia
*Telephone +61 8 8272 1555*
*Facsimile +61 8 8271 1199*
 *SYDNEY Office*
 <http://terrapages.net/mapbutton/RetrieveButtonServlet?buttonID=1>
Suite 112 The Lower Deck
Jones Bay Wharf
19-21 Pirrama Road
Pyrmont NSW 2009 AUS
*Telephone +61 2 8570 5060*
*Facsimile +61 2 8570 5099*
 *MELBOURNE Office*
 <http://terrapages.net/mapbutton/RetrieveButtonServlet?buttonID=3>
Level 7 520 Collins Street
Melbourne VIC 3000
Australia
*Telephone +61 3 9629 1799*
*Facsimile +61 3 9629 4955*
------------------------------

_______________________________________________
Dev mailing list
[email protected]
http://openlayers.org/mailman/listinfo/dev



_______________________________________________
Dev mailing list
[email protected]
http://openlayers.org/mailman/listinfo/dev

Reply via email to