Hello, community
I am trying to add a geotiff to my webmap created with ArcGIS JS API 4.x. Since it needs to be a service to serve the image, I installed a local instance of GeoServer on my computer and published a WMS for the image in question. However, everytime I try to call the service via URL, the console shows the following errors:
- [esri.layers.WMSLayer] #load() Failed to load layer (title: 'Layer', id: '172336bbd33-layer-0')
- message: "XML Parse Error"
- [esri.views.LayerViewManager] Failed to create view for layer 'Layer, id:172336bbd33-layer-0' of type 'wms'
The following piece of code is what I am using:
var layer = new WMSLayer({
});
map.add(layer);
The API seems to expect a XML and not a geotiff. Any suggestions?
Thanks and have a nice day!