Select to view content in your preferred language

identifyLayersAsync problem v100.1

590
1
08-18-2017 11:43 AM
FrancisGagne
Emerging Contributor

Hello,
We have a MapImageLayer and a FeatureLayer from a service on the map.
We tried to use the identifyLayersAsync() of the MapView but there is no result for the FeatureLayer.

final ListenableFuture<List<IdentifyLayerResult>> future =
viewerModel.getMapView().identifyLayersAsync(clickedPoint.getScreenPoint(), tolerance, false, 1000);
future.addDoneListener(new Runnable() {
@Override
public void run() {
try {
List<IdentifyLayerResult> identifyLayerResults = future.get();

for (IdentifyLayerResult result : identifyLayerResults) {

//NO RESULT FOR FEATUE LAYER HERE BUT IMAGELAYER IS OK

}

} catch (Exception e) {}

});

We use Energy/Geology (FeatureServer)  and USA (MapServer) 

Thanks,

0 Kudos
1 Reply
AlexanderNohe1
Honored Contributor

That is interesting.

I am getting feature services returned but not map services.  Can you confirm that map services are being returned for you?

0 Kudos