SLD issue

16 views
Skip to first unread message
Assigned to lorenzo...@geosolutionsgroup.com by me

Chokri

unread,
Oct 1, 2025, 3:52:27 AMOct 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.

Lorenzo Natali

unread,
Oct 31, 2025, 5:37:27 AM (6 days ago) Oct 31
to mapstore-users
Hi,
I'd suggest you to check first why the request is blocked.
You may need to check the reason on network tab in your browser's developer tool, to catch the effective reason of the failure and so have a better help.
e.g. COORS or Permissions, and I'd suggest also to take a look at the GeoServer documentation,https://docs.geoserver.org/main/en/user/styling/sld/working.html#external-styles  )
Because this is a request for developers, not for mapstore users I'm going to close this thread, if you need more help after checking network tool, write to the dev mailing list, with the information you collected.


Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages