Issue
How to get Point from ArcGis's MapView center of the screen, which representing its latitude and longitude?
Solution
float centreX=mapView.getX() + mapView.getWidth() / 2;
float centreY=mapView.getY() + mapView.getHeight() / 2;
android.graphics.Point screenPoint = new android.graphics.Point(Math.round(centreX), Math.round(centreY));
Point mapPoint = mv.screenToLocation(screenPoint);
Point wgs84Point = (Point) GeometryEngine.project(mapPoint, SpatialReferences.getWgs84());
double lat = wgs84Point.getY();
double lng = wgs84Point.getX();
Answered By - zamroni hamim
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.