I have been working with sdk javascript for a short time.
I want to add the WMS service from http://ovc.catastro.meh.es/cartografia/INSPIRE/spadgcwms.aspx as a layer.
I have tried with const layer = new WMSLayer({ url: "http://ovc.catastro.meh.es/cartografia/INSPIRE/spadgcwms.aspx" });
It gives me cors error.
How to create the layer with the cadastre service?
Thanks