SLD issue

5 views
Skip to first unread message

Chokri

unread,
Oct 1, 2025, 3:52:27 AM (4 days ago) Oct 1
to mapstore-users
Hi guys,

I have an issue using a dynamic XML sld with a layer.

Actually, I defined the sld string in a variable :

const SLD_STYLE = `
<StyledLayerDescriptor version="1.0.0"
......
</StyledLayerDescriptor>`

And tried to apply it to the layer :

const properties = {
 params : { sld_body: encodeURIComponent(SLD_STYLE)}
};
changeLayerProperties(layer.id, properties);

But, the query is sent as GET, and as the SLD could be huge, the GET request is bloqued.

Is there a way to force POST when using "changeLayerProperties".

Thanks.
Reply all
Reply to author
Forward
0 new messages