WMSLayer selection feature

Discussion created by gkaradagan on Nov 26, 2013
Hi everyone ,

i have wmslayer and i can show on the map that is my code :

  mMapView  = (MapView)findViewById(R.id.map);
        String wmsURL = "http://********:8080/geoserver/AAA/wms?service=WMS&version=1.1.0&request=GetMap";
        TextView yazi = (TextView) findViewById(R.id.yazi);
        wmsLayer = new WMSLayer(wmsURL);
        mMapView .addLayer(wmsLayer);

it shows me our maps.

Now i work on about highlightfeatures examples. But this example is with rest server and they have index on layers.

i implement my wmsserver url and change ArcGISTiledMapServiceLayer to WMSLayer and it show me map but when i press long into map, it couldnt get layers information.

inputParameters.setLayers(new int[] { layerIndexes[selectedLayerIndex] });

i think this code is problem i have no index on my wmslayer. how could i fix it ? or do you have sample about wmslayer selection feature ?