Loading a specific WMS layer on a 10 inch tablet fails to load.
上次发布: November 29, 2016ArcGIS Runtime SDK for Android
漏洞 ID 编号
BUG-000100398
已提交
October 27, 2016
上次修改时间
March 30, 2022
适用范围
ArcGIS Runtime SDK for Android
找到的版本
10.2.8
服务器平台
Android
客户端平台
5.1x
状态
Will Not Be Addressed
开发团队已考虑过该问题或请求,并决定不会解决该问题。 问题的“其他信息”部分可能包含进一步说明。
附加信息
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.
解决办法
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); }}