Hello,
I’m having trouble getting a good response using the ArcGisServerRestLayer for the Natural England data sets which are presented by ArcGIS as Feature Services - are these supported?
arcGISServerRestLayer arcGisLayer = new ArcGISServerRestLayer();
arcGisLayer.ServerUri = new Uri("https://services.arcgis.com/JJzESW51TqeY9uat/ArcGIS/rest/services/DalbyFields/FeatureServer/query");
arcGisLayer.ImageFormat = ArcGISServerRestLayerImageFormat.Png;
arcGisLayer.Parameters.Add("layerDefs", @"[{'layerId' : 0}]");
arcGisLayer.Parameters.Add("returngeometry ", "true");
LayerOverlay layerOverlay = new LayerOverlay();
layerOverlay.Layers.Add("ArcGISServerRestLayer", arcGisLayer);
winformsMap1.Overlays.Add(layerOverlay);
The request is fine(manually) if the F=Image is removed so I’m assuming my approach to this is wrong.
I have the current extent set.
Thanks,
Sam