如何在ArcGIS runtime SDK for Android100.0.0中实现在10.2.8版本中的getGraphicIDs(float x, float y, int tolerance)

如何在ArcGIS runtime SDK for Android100.0.0中实现在10.2.8版本中的getGraphicIDs(float x, float y, int tolerance)方法?
已邀请:

勾戈雪黎

赞同来自:

【解决办法】:
ArcGIS runtime SDK for Android 10.2.8中getGraphicIDs(float x, float y, int tolerance)中的这个功能是在graphiclayer上实现的,但是在100.0.0的版本中是在MapView和GraphicOverlay(同老版本的GraphicLayer)上实现的。
实现步骤如下:
1. 先用以下方法获取GraphicOverlay,
public ListenableFuture<IdentifyGraphicsOverlayResult> identifyGraphicsOverlayAsync (GraphicsOverlay graphicsOverlay, Point screenPoint, double tolerance, boolean returnPopupsOnly, int maximumResults);
2. 然后再利用GraphicsOverlay下的getGraphic的方法获取graphic即可。
详细帮助文档参考
https://developers.arcgis.com/ ... rlays()

要回复问题请先登录注册