ArcGIS for Android 点击选择
public void onSingleTap(float arg0, float arg1) { //selFeatureLayer.selectFeature(5); Point p = mMapView.toMapPoint(arg0, arg1); mAnchor=p; Log.d("==", "" + p.getX() + ":" + selFeatureLayer.getName()); QueryParameters q = new QueryParameters(); //q.setWhere("OBJECTID>10"); // //设置Query的各个参数 //q.setInSpatialReference(mMapView.getSpatialReference()); //q.setReturnGeometry(true); q.setSpatialRelationship(SpatialRelationship.INTERSECTS); q.setGeometry(p); //执行选择 if (selFeatureLayer != null) { //selFeatureLayer.selectFeatures(q, FeatureLayer.SelectionMode.NEW, new qCallBackLis()); selFeatureLayer.selectFeatures(q, FeatureLayer.SelectionMode.NEW, null); } }