AnsweredAssumed Answered

obtain longitude and latitude in onSingleTap

Question asked by jjcosta on Sep 30, 2012
Latest reply on Oct 2, 2012 by jjcosta
Hello,

for obtain point for the map from a coordenas, I use:   (center: longitude and latitude)

Point centerPt3 = (Point) GeometryEngine
    .project(center,SpatialReference.create(4326),mapa.getSpatialReference());

now I want the opposite, from point obtain coordinates :
      public void onSingleTap(float x, float y) {    
         Point pnt = mapa.toMapPoint(x, y);


but Pnt is not correct  longitude and latitude

thanks

Outcomes