The Web Map Service (WMS) layer is not visible when instantiating the layer from a collection of WMSLayerInfos.
上次发布: April 20, 2018ArcGIS Runtime SDK
漏洞 ID 编号
BUG-000113100
已提交
April 10, 2018
上次修改时间
June 5, 2024
适用范围
ArcGIS Runtime SDK
找到的版本
100.2.1
操作系统
Windows OS
操作系统版本
7.0 64 Bit
状态
Will Not Be Addressed
开发团队已考虑过该问题或请求,并决定不会解决该问题。 问题的“其他信息”部分可能包含进一步说明。
附加信息
The code snippet below shows how to add the WMS service to an ArcGIS Runtime SDK application using the WMSLayerInfos. Please reach out to Esri Technical Support if the issue persists.
// wms service
//WmsService wmsService = new WmsService("URLtoWMSService?request=GetCapabilities&service=WMS");
// load the service
wmsService.loadAsync();
wmsService.addDoneLoadingListener(() -> {
System.out.println("load status:" + wmsService.getLoadStatus().toString());
// get the layer infos
List layerInfos = wmsService.getServiceInfo().getLayerInfos();
for(WmsLayerInfo layerInfo : layerInfos) {
System.out.println("layer info title : " + layerInfo.getTitle());
// for each layer info, get the sub layer infos
List wmsSubLayerInfos = layerInfo.getSublayerInfos();
// list the layers for information only
for(WmsLayerInfo subLayerInfo : wmsSubLayerInfos) {
System.out.println("sub layer " + subLayerInfo.getTitle());
}
// add the layer from the sub layers
WmsLayer wmsLayer = new WmsLayer(wmsSubLayerInfos);
wmsLayer.loadAsync();
wmsLayer.addDoneLoadingListener(() -> {
System.out.println("layer load status : " + wmsLayer.getLoadStatus());
System.out.println("layer uri : " + wmsLayer.getUri());
});
map.getOperationalLayers().add(wmsLayer);
}
});