java - How to get bounds of Google Map? -



java - How to get bounds of Google Map? -

i need next task: there google map widget , user can move/zoom map. when user click button application should show latitude & longitude of bounds of gmap (north-east corner , south-west corner). don't know how can it. hope can help me. give thanks for, anyway.

this should it

actually meant

geopoint tlgpt; // top left (nw) geopoint geopoint brgpt; // bottom right (se) geopoint geopoint trgpt; // top right (ne) geopoint geopoint blgpt; // bottom left (sw) geopoint tlgpt = mapview.getprojection().frompixels(0, 0); brgpt = mapview.getprojection().frompixels(mapview.getwidth(), mapview.getheight()); trgpt = mapview.getprojection().frompixels(mapview.getwidth(), 0); blgpt = mapview.getprojection().frompixels(0, mapview.getheight());

first post gave nw , se - gives 4 corners

java android

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -