Search code examples
androidvisibilityandroid-mapviewitemizedoverlayandroid-maps

how to handle the visibility of the ItemizedOverlay in mapview in android?


i want set the visibility to itemized overlay in map view. if the zoom level is less than 10 i want to set visibility of overlay is GONE else VISIBLE. how to do that? and also cant set zoom level Listener.


Solution

  • i want set the visibility to itemized overlay in map view. if the zoom level is less than 10 i want to set visibility of overlay is GONE else VISIBLE.

    Overlays do not have a visibility. If you do not want the overlay to appear, remove it from the MapView's list of overlays.