alu.23349

WmsLayerInfo[] null.....

Discussion created by alu.23349 on Nov 29, 2013
Latest reply on Feb 27, 2014 by andreasbjerga
Hi friend. I an a student that I have discovered the ERSI SDK Runtime for Android recently. I am adding a WMS layer in my map how the sample ESRI.

When I try to get the WMSLayerinfo[] I receive a null object. It's empy¡¡

My code...

mMapView = (MapView)findViewById(R.id.map);
 
String wmsURL = "http://sampleserver1.arcgisonline.com/ArcGIS/services/Specialty/ESRI_StateCityHighway_USA/MapServer/WMSServer";
WMSLayer wmsLayer = new WMSLayer(wmsURL);
mMapView.addLayer(wmsLayer);
 
String[] visibleLayers = {"0","1","2"};
wmsLayer.setVisibleLayer(visibleLayers);
 
WMSLayerInfo[] wmsLayerInfo = wmsLayer.getLayers();    <-------------- Here I have the problem.


Can you help me please??

Thanks, and sorry by my english.

Best Regards.

Outcomes