I have searched for a while on this problem but have come up trumps.
I have a simple mapview that makes use of custom overlay items on a ManagedOverlay, let's call them redOverlayItem
and blueOverlayItem
. All the ManagedOverlay does is query my database for a set of locations of varying types and then place them on a map asynchronously.
My managed overlay works fine, however I can't seem to be able to control the "z" ordering. For instance, sometimes I have redOverlayItem
's covering blueOverlayItem
's and vice versa, where I really just want redOverlayItem
's to be on top.
I've exhausted my ideas on how to fix this. How can I control ordering of multiple types of overlay items?