How to achieve the access layer attribute data and highlight, here is my code.
/**
* initialize
*
* @param promise
*/
@ReactMethod
public void initializeSDK(final Promise promise) {
try {
ArcGISScene scene = new ArcGISScene();
scene.setBasemap(Basemap.createImagery());
mSceneView.setScene(scene);
mSceneView.setOnTouchListener(new DefaultSceneViewOnTouchListener(mSceneView) {
@Override
public boolean onTouch(View view, MotionEvent motionEvent) {
float x = motionEvent.getX();
float y = motionEvent.getY();
double tolerance = 20.0;
android.graphics.Point point = new android.graphics.Point(Math.round(x), Math.round(y));
final ListenableFuture<List<IdentifyLayerResult>> featureResult = mSceneView.identifyLayersAsync(point, tolerance, true);
featureResult.addDoneListener(new Runnable() {
@Override
public void run() {
try {
List<IdentifyLayerResult> lstfeature = featureResult.get();
Log.i(REACT_CLASS