[OpenLayers-Users] transparent & WMS.POST

Andreas Hocevar ahocevar at opengeo.org
Fri Aug 13 10:30:30 EDT 2010


Hi,

two reasons I could think of:

 * a browser that does not support transparent iframes - what browser did you try?
 * transitionEffect: "resize" could be the problem. Try to remove that.

Regards,
Andreas.

On Aug 13, 2010, at 11:37 , Sascha Müller wrote:

> 
> 
> Hi,
> 
> I use:
> 
> Openlayers: 2.9
> GeoExt: trunk
> GeoServer: 1.7.7
> 
> I used following code:
> ...
> var addlayer = new OpenLayers.Layer.WMS.POST(
>                         layers_array[i][0],
>                         layers_array[i][1],
>                         {
>                             layers           : layers_array[i][2],
>                             format           : 'image/png',
>                             transparent      : true
>                         },
>                         {
>                             isBaseLayer      : layers_array[i][3],
>                             visibility       : layers_array[i][4],
>                             buffer           : 0,
>                             singleTile       : true,
>                             transitionEffect : "resize"
>                         }
>                     );
>                     map.addLayer(addlayer);
> ...
> 
> If I try to set the transparency of one these layers, the transparency 
> is not that what I expected. Only the color changed to to more brigther.
> 
> With this code:
> ...
> var addlayer = new OpenLayers.Layer.WMS(
>                         layers_array[i][0],
>                         layers_array[i][1],
>                         {
>                             layers           : layers_array[i][2],
>                             format           : 'image/png',
>                             transparent      : true
>                         },
>                         {
>                             isBaseLayer      : layers_array[i][3],
>                             visibility       : layers_array[i][4],
>                             buffer           : 0,
>                             singleTile       : true,
>                             transitionEffect : "resize"
>                         }
>                     );
>                     map.addLayer(addlayer);
> ...
> 
> Everything works how it should. The transparency looks transparency.
> 
> Is this behavior intended or a bug?
> 
> regards,
> 
> Sascha
> 
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users

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




More information about the Users mailing list