[Geoserver-users] Layer Transparency

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

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?

···

On 11 August 2015 at 12:10, Jair Santos <jsantos5954@anonymised.com> 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
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Jody Garnett

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:jody.garnett@anonymised.com]
Sent: Tuesday, August 11, 2015 12:28 PM
To: Jair Santos jsantos5954@anonymised.com
Cc: GeoServer Mailing List List geoserver-users@lists.sourceforge.net
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 <jsantos5954@anonymised.com…84…> 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
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Thanks again Jody.

The PolygonSymbolizer did the trick.

JJ.

From: Jody Garnett [mailto:jody.garnett@anonymised.com]
Sent: Tuesday, August 11, 2015 12:28 PM
To: Jair Santos jsantos5954@anonymised.com
Cc: GeoServer Mailing List List geoserver-users@lists.sourceforge.net
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 <jsantos5954@anonymised.com> 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
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users