[OpenLayers-Users] Overlaying Open street map and custom map with transparency

Christopher Schmidt crschmidt at metacarta.com
Tue Apr 7 16:53:54 EDT 2009


On Tue, Apr 07, 2009 at 01:47:49PM -0700, altserg at yahoo.com wrote:
> 
> Hi all,
> 
> I overlayed the open street map and my custom map served by geoserver on top of it. The problem is that my custom map covers very small piece of territory and not included parts are sent like white empty image and I do not see base layer. I've used setOpacity method for layer to set opacity of my layer to 0.5 so I can see the base layer. But maybe it's possible to configure kind of transparency in my layer ? To tell Open Layers that white color should not be rendered at all ?

Probably a WMS Layer? set transparent: 'true' in your WMS params (third
arg); and make sure your images can be served as 'not jpeg'.

-- Chris

> Thanks in adnavce,
> 
> Serg
> 
> 
> 
>       
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users

-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list