开发者

Get Map Bounds Using Android Google Maps [duplicate]

This questio开发者_如何学Cn already has answers here: Closed 10 years ago.

Possible Duplicate:

How can I determine if a geopoint is displayed in currently viewable area?

I was wondering if there was any way (I'm somewhat a newbie at Java) to get the MapBounds of a Google MapView on Android.

Just to clarify, here's what I'd like to do.

Calculate the maximum and minimum long and lat whenever the map is moved, or zoomed and display those values in a Toast.

Is there any possible way to do this -- or am I in over my head?


You should be able to use

mapView.getLatitudeSpan();
mapView.getLongitudeSpan();

in combination with

mapView.getMapCenter();

to figure out the visible area.

But I have noticed some users had issues with it.

Mapview getLatitudeSpan and getLongitudeSpan not working

You should check the android developer group as well maybe.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜