[OpenLayers-Users] SLD_BODY too many characters
Roald de Wit
roald.dewit at lisasoft.com
Thu Nov 5 03:27:17 EST 2009
Hi stash,
If you dare to 'live on the edge', use the development version of OL,
which has the following great addition: a WMS Post Layer [2]
That should solve your problem!
[1] http://dev.openlayers.org/nightly/OpenLayers.js
[2] http://dev.openlayers.org/docs/files/OpenLayers/Layer/WMS/Post-js.html
Regards, Roald
stash wrote:
> Hello,
> I have a Openlayers.layer.wms to show a map. Furthermore I have a sld_body
> to show not all features on the map.
>
> My big problem is, that my sld_body is very large (because of some filters
> i've added and various styles). I store my sld_body in a variable in
> javascript and add this variable with merge.newparams to my layer. And there
> is the problem.
>
> Thereby my sld_body contains so much characters, the variable doesn't
> contain the whole sld_body --> I get no features on my map. When I make my
> sld_body a bit shorter, everything is working. Then I try to add the
> sld_body direclty to the layer without mergenewparams later. The same
> problem.
>
> I'm sure that the variable can't store so much characters because I watched
> my javascript file in firebug and there, the variable didn't contain the
> whole sld_body.
>
> My question is now, if there is any possibility, that i can add my whole
> sld_body to my javascript. Are there variables, which can contain more
> characters in java script.
>
> (Maybe another solution would be to add 2 sld_bodys to my layer. Is this
> possible?)
>
> Please help me.
>
> Regards
> stash
>
More information about the Users
mailing list