Hello. I am trying to load an ImageServer from an arcgis portal using the ArcGISServerRestLayer.cs class. I’m on version 13.1.2.
Here is the url of the image server I’m trying to load:
https://sampleserver6.arcgisonline.com/arcgis/rest/services/Elevation/earthquakedemoelevation/ImageServer/exportImage?bbox=344337.12498628,3784364.8258005,369637.12498628,3804664.8258005
My map’s unit is in meters and everything is using srid of 3395. Here is what I’m doing to create the layer:
ArcGISServerRestLayer test = new ArcGISServerRestLayer(new Uri("https://sampleserver6.arcgisonline.com/arcgis/rest/services/Elevation/earthquakedemoelevation/ImageServer/exportImage"));
test.Parameters.Add("imageSR", "3395");
test.Parameters.Add("bboxSR", "3395");
test.ImageFormat = ArcGISServerRestLayerImageFormat.Png;
// add layer to overlay here
After adding, it’s just a black square that covers the entire map. Here is the full URL generated by the class:
https://sampleserver6.arcgisonline.com/arcgis/rest/services/Elevation/earthquakedemoelevation/ImageServer/exportImage?IMAGESR=3395&BBOXSR=3395&BBOX=14964879.6212408%2C869533.931175921%2C15798269.8082101%2C1702924.11814522&SIZE=512%2C512&format=Png24&F=image
Is there something I’m doing wrong?

