Marc Brown
Marc Brown

Reputation: 641

Android SDK mapView. Get map zoom level/position

I have the map working on android and am able to populate it with overlays.

But the overlay ability is only so good. If I add too many overlays and refresh too often, I can create an app that is very processor-hard (useless).

What I want to do is only load the overlays that are within the zoom level of the map.

How to I get at what level the map is zoomed using Google APIS, overlays, itemized, and geopoints?

Thanks,

Upvotes: 2

Views: 1920

Answers (2)

Rajesh Narwal
Rajesh Narwal

Reputation: 908

You can directly get that from class without any method.

     map.getCameraPosition().zoom

Upvotes: 1

twaddington
twaddington

Reputation: 11645

You can use the getZoomLevel and getMapCenter methods on MapView. You might also read through the MapView class documentation.

Upvotes: 3

Related Questions