laptop and a wrench

漏洞

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

上次发布: November 29, 2016 ArcGIS 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); }}

重现步骤

漏洞 ID: BUG-000100398

软件:

  • ArcGIS Runtime SDK for Android

从 ArcGIS 专家处获得帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项

发现关于本主题的更多内容