Thank you Jody.

 

Yes, the image is there. The layer is a polygon.

 

Actually I got information from the openlayers list archives, and it seems that 
I have pretty much everything that is required to make the layer transparent. 
That’s why I thought that I might have  to do some settings in Geoserver to 
enable the feature in the layer.

 

JJ.

 

From: Jody Garnett [mailto:[email protected]] 
Sent: Tuesday, August 11, 2015 12:28 PM
To: Jair Santos <[email protected]>
Cc: GeoServer Mailing List List <[email protected]>
Subject: Re: [Geoserver-users] Layer Transparency

 

Do you have an image showing where you are at? I assume that you are talking 
transparency where you have no features (to control feature transparency use 
PolygonSymbolizer opacity).

 

You may wish to ask on the open layers list?




--

Jody Garnett

 

On 11 August 2015 at 12:10, Jair Santos <[email protected] 
<mailto:[email protected]> > wrote:

Hello all,

 

Is there anything that I have to set in geoserver to make a layer transparent?

 

I’ve been trying several different settings in Openlayers but nothing works.

 

new ol.layer.Image({

    source: new ol.source.ImageWMS({

      url: 'http://192.168.1.113:8080/geoserver/wms?transparent=true',

      params: { 'LAYERS': 'pzones' },

     /* transparent:true,*/

      projection: projection,

        format: 'image/png',

      serverType: 'geoserver'

    },

    {singleTile: true, ratio: 1, 

    isBaseLayer: false, 

    Opacity: 0.5} )

 

  }),

 

Thanks.

 

JJ

 


------------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
[email protected] 
<mailto:[email protected]> 
https://lists.sourceforge.net/lists/listinfo/geoserver-users

 

------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to