cadgis

simple query to select a point feature & Zoom to it

Discussion created by cadgis on Apr 3, 2013
As a beginner, I am doing a simple query to select a point feature & Zoom to it. Can some one help Please!!!

try {
   fLayer = new ArcGISFeatureLayer("http://xxx.xx.x.xx/ArcGIS/rest/services/xxxxxxx/MapServer/1",o);
   Query q = new Query();
   q.setWhere("Name = " + AcTv.getText().toString());
   q.setReturnGeometry(true);
   q.setOutFields(fLayer.getOutFields());
   fLayer.queryFeatures(q, null);
   map.addLayer(fLayer);


             
      }
catch (Exception e)
{
   // TODO Auto-generated catch block
   e.printStackTrace();
   }

Outcomes