[OpenLayers-Users] WMS Layer opacity, different behaviour in 2.11-RC2

Andreas Hocevar ahocevar at opengeo.org
Wed Aug 10 11:31:25 EDT 2011


Hi,

this is a known regression (http://trac.osgeo.org/openlayers/ticket/3455) and already fixed on trunk, and will of course be in rc3.

Andreas.

On Aug 10, 2011, at 17:23 , Daniel Behr wrote:

> Hi,
> I just gave OL 2.11RC2 a try and saw that my WMS Layers [1] which have set 'opacity: 0.5' look more like 0.25 now. When adding an opacity slider its not possible to get the layer fully opaque. Pushing the slider to max looks like 0.5 then...
> removing the opacity option makes it fully opaque, though.
> 
> The range is still 0-1 and I cant see why this differs from 2.10 to 2.11?!
> 
> Any clues?
> cheers
> Daniel
> 
> [1] layer def like this:
> var sk2Fruehling = new OpenLayers.Layer.WMS("Spring",
> 	"http://", {
> 	layers: "testns:SK2_Fruehling",
> 	transparent: true,
> 	format: "image/png"
> 	},{
> 	isBaseLayer: false,
> 	visibility: false,
> 	opacity: 0.5,
> 	singleTile: true
> }
> Helmholtz-Zentrum Geesthacht Zentrum für Material- und Küstenforschung GmbH Max-Planck-Straße 1 I 21502 Geesthacht I Deutschland/Germany 
> Geschäftsführer/Board of Management: Prof. Dr. Wolfgang Kaysser, Dipl.-Ing. Michael Ganß Vorsitzender des Aufsichtsrates/Chairman of the Supervisory Board: MinDirig Wilfried Kraus Amtsgericht Lübeck HRB 285 GE (Register Court) Internet: http://www.hzg.de  _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users



-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.



More information about the Users mailing list