[OpenLayers-Dev] Poor Image Quality
Bart van den Eijnden (OSGIS)
bartvde at osgis.nl
Tue Jul 10 03:29:30 EDT 2007
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?",
{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 <bradleym06 at gmail.com>
Naar: OpenLayers ML <dev at openlayers.org>
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'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
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev
>
More information about the Dev
mailing list