How to convert an Android esri arcGIS Point into latitude and longitude -


i'm trying latitude , longitude of tap on android esri arcgis mapview.

        map.setonsingletaplistener(new onsingletaplistener() {              private static final long serialversionuid = 1l;              public void onsingletap(float x, float y) {                 system.out.println("x:" + x);                 system.out.println("y:" + y);                 // how latitude longitude coordinates of point (x,y)?              }         }); 

how latitude longitude coordinates of point (x,y)?

the easiest way is:

point p=map.tomappoint(arg0, arg1); system.out.println("x="+p.getx()); system.out.println("y="+p.gety()); 

the variable p have coordinates mapped in mapview.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -