views:

451

answers:

2

Hi,how can i add different overlays at different zoom levels ? For instance i have an overlay image of a festival area that ive added onto the map which is great. But when the user zooms out i want to change the image that the user see's .Does anyone know how to do this?

+1  A: 

The only thing that I can think of is to pass the zoom level into the overlay when it changes in the map and then make the decision on what to draw in the overlay.

CaseyB
A: 

If you control the zoom buttons (by having your own buttons), you may simply change the displayed overlays by modifying the array mapView.getOverlays() and then call mapView.invalidate().

I didn't try to change it so frequently but it should probably work.

dystroy
Mmm im not quite sure what you mean by this?
SamB09