//取得實際螢幕的寬高 來換算經緯度
	int width = display.getWidth();
	int height = display.getHeight();

GeoPoint t_lefttop=mapView.getProjection().fromPixels(0,0);
GeoPoint t_rightdown=mapView.getProjection().fromPixels(width,height);
double t_lefttop_long=t_lefttop.getLongitudeE6()/1E6;
double t_lefttop_lat=t_lefttop.getLatitudeE6()/1E6;
double t_rightdown_long=t_rightdown.getLongitudeE6()/1E6;
double t_rightdown_lat=t_rightdown.getLatitudeE6()/1E6;

By admin-powenko

Dr. Powen Ko is a teacher and CEO on LoopTek LLC, and like to teaching. if you need to class, please let PowenKo know, he will love to service and sharing. LoopTek web site is www.looptek.com

Leave a Reply