get the current zoom level

Put problem concerning MapActivities, MapViews, Overlays and GPS in this forum.

get the current zoom level

Postby pedroteixeira07 » Wed Jun 23, 2010 4:54 pm

Hi,

I'm trying to show some map overlays depending on the zoom level in the current situation.
But I can't find any documentation to get the Zoom Level..
Just that it goes from 1 to 21 and can be set with setZoom.. but I can't find nothing about getting the current Zoom state... Any help?
pedroteixeira07
Experienced Developer
Experienced Developer
 
Posts: 74
Joined: Sun Oct 18, 2009 6:06 pm
Location: Funchal

Top

Re: get the current zoom level

Postby bikeroute » Sat Jun 26, 2010 3:06 pm

Perhaps you've already solved this one, but the MapView class provides a getZoomLevel() method which returns the current zoom level -
http://code.google.com/android/add-ons/ ... ZoomLevel()
User avatar
bikeroute
Freshman
Freshman
 
Posts: 4
Joined: Sat Jun 26, 2010 2:51 pm
Location: UK

Re: get the current zoom level

Postby pedroteixeira07 » Sat Jun 26, 2010 3:14 pm

Hi, thank you . I had found it evenually. I was just searching on the wrong place from the zoom.
Was trying to get it from the MAp Controller.

Thanks Anyway ;)
pedroteixeira07
Experienced Developer
Experienced Developer
 
Posts: 74
Joined: Sun Oct 18, 2009 6:06 pm
Location: Funchal

Top

Return to Map Problems

Who is online

Users browsing this forum: No registered users and 1 guest