I want to display name of the place where i touch on map instead of displaying coordinates..
The documentation I sent you is for runtime 100 which is the newer version of the runtime.
Inside your onSingleTap override, do this:
Use the toMapPoint method of the mapview, convert the screen point (x,y) to map coordinates :MapView | ArcGIS Android 10.2.9 API
Then you can use reverse geocoding to generate an address / place name:https://developers.arcgis.com/android/10-2/api-reference/reference/com/esri/core/tasks/geocode/Locator.html#reverseGeocode(com.esri.core.geometry.Point, double, com.esri.core.geometry.SpatialReference, com.esri.core.geometry.SpatialReference)
@Override public void onSingleTap(float x, float y) { unable to pass onSingleTap(MotionEvent point){
what should i do ???
i am using arcgis 10.2.9 android sdk.
Sorry Sir i am not getting you. Can you share a example/Source Code for arcgis 10.2.9 android sdk ?
Extend the DefaultMapViewTouchListener (DefaultMapViewOnTouchListener| arcgis-android ) and then override the onLongPress(MotionEvent event) method to include the details in grabbing the location. Get the physical x, y of the location and use MapView.screenToLocation(point) and take that point and use it in the reverse geocode to change that point to an address.
I hope this helps!
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.