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]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to