Hi Hartmuth,
as far as I know you can simply put the customParams property in the layer
spec with your env value, as in the following example:

...
layers:[
...
{
   "baseURL":"http://localhost:8080/geoserver/wms?";,
   "opacity":1,
   "singleTile":false,
   "type":"WMS",
   "layers":[
      "topp:states"
   ],
   "format":"image/jpeg",
   "styles":[
      "population"
   ],
   "customParams":{
      "TRANSPARENT":false,
      "TILED":true,
      *"ENV":"myenv:myvalue"*
   }
}
...
]
...

Regards,
Mauro Bartolomeoli


2013/12/10 Hartmuth Schachinger <[email protected]>

> Hello!
>
> I am useing the printing module in geoserver.
> I use some styles which use variable substitution. That works fine for kml
> and wms output. Till now I don't know how to pass the env paramter to the
> printing module. The documentation says, there are custom parameters for
> wms, but I did not find an example.
>
> Please give me a hint, how to pass custom parameters to the wms service.
>
> Thanks in advance
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.mapfish.org/mailman/listinfo/users
>



-- 
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.
==

Dott. Mauro Bartolomeoli
@mauro_bart
Senior Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:     +39 0584 1660272

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------
------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to