Pete,
I managed to do this in 2 different ways :
1. Use the alpha hack on .png
var boundaries = new OpenLayers.Layer.WMS("Layer1",
"http://your-url",
{ layers: "0,1,2"
,transparent: "true"
,srs: "EPSG:3035"
},
{'buffer':0, 'format':"image/png", 'isBaseLayer':false,
'transparent':true},
{'alpha':true}
);
2. Specify "image/gif" as the format ( but I think you specify your
format in the wrong place !! )
var boundaries = new OpenLayers.Layer.WMS("Layer1",
"http://your-url",
{ layers: "0,1,2"
,transparent: "true"
,srs: "EPSG:3035"
},
{'buffer':0, 'format':"image/gif", 'isBaseLayer':false,
'transparent':true}
);
Both work in Firefox, IE6 and IE7
Peter Dawn wrote:
>
>
> now i need to use IE6, hence my image format needs to be GIF (as you
> know PNG is not supported by IE6).
>
> so my question is how can i achieve layer transparency with IE6 and
> GIF format. i have tried
>
> untiled = new OpenLayers.Layer.WMS(
> "Locality", "http://localhost:8080/geoserver/wms",
> {
> height: '600',
> width: '600',
> layers: 'my_layer',
> styles: '',
> transparent: 'TRUE',
> format: format,
> tiled: 'true',
> },
>
> but am still not able to achieve transparency. if i use PNG and use
> firefox it works. but i need to use IE6 and hence GIF.
>
> any help.
>
> thanks.
> pete.
> _______________________________________________
> Users mailing list
> [email protected]
> http://openlayers.org/mailman/listinfo/users
>
>
--
View this message in context:
http://n2.nabble.com/IE6-GIF-transparency-issue-tp2972366p2973736.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users