English
Bug Number BUG-000100398
Submitted Oct 27, 2016
Modified Jun 11, 2020
Severity Medium
Applies To ArcGIS Runtime SDK for Android
Version Found 10.2.8
Prog Language N/A
Server Platform Android 5.1x
Client Platform Android 5.1x
Database N/A
Locale N/A
Status Not in Current Product Plan
Version Fixed
SP Fixed

Bug BUG-000100398

Synopsis

Loading a specific WMS layer on a 10 inch tablet fails to load.


Additional Information

Depending on the device, the requested image size can be huge; this is limited to ArcGIS for Server services with the known maximum configured size. There is no way of knowing the size of a non-ArcGIS for Server WMS service. Use the suggested workaround to resolve this problem.


Alternate Solution

Extend the WMSLayer and in the GetImage request, have it return the maximum size if the size requested exceeds the maximum:



public class MyWMS extends WMSLayer {

public MyWMS(String url) {

super(url);

}


@Override

protected byte[] getImage(int width, int height, Envelope extent) throws Exception {

if(width>1600) {

return super.getImage(1600, height, extent);

}

return super.getImage(width, height, extent);

}

}