Hello,
I am trying to change the appearance of a WMSLayer in ArcGIS API for JS v4.24 by setting the effect parameter. But for some reason, I cannot see any change in the rendered output.
To make sure it's not a problem with my code or WMS service, I used the official WMSLayer example:
https://developers.arcgis.com/javascript/latest/sample-code/layers-wms/
I modified the constructor in the provided CodePen by adding the effect parameter:
const layer = new WMSLayer({
url: "https://ows.terrestris.de/osm/service",
sublayers: [
{
name: "OSM-WMS"
}
],
effect: "invert(100%)"
});
I also tried "blur(5px)", "brightness(50%)" and "hue-rotate(270deg)" but never saw any difference after zooming and panning the map.
Am I missing something here? I could not find any hints in the documentation or other community posts.