Version 0.1.8: Cleaning code
By Anatoly Mironov
Cleaned OverlayMediator. Moved strings to /res/values/strings.xml Solved the bug with disappearing OverlayItems. The actual reason was the caching of OverlayMediator object. The instance variable “activity” was the old one, and the getOverlays from the activity’s lusitesMap were old. So it couldn’t work. The solution is to force OverlayMediator to renew its instance variable LUSitesActivity activity each time the static method getInstance is called: public static OverlayMediator getInstance(Context context) { if (singleton == null) { singleton = new OverlayMediator(); } singleton.setActivity((LUSitesActivity) context); return singleton; }
I also have started to use selectors in order to change Markers automatically. This version is not published on Market, but committed on Github.
Comments from Wordpress.com
A Chuvash Guy - Jan 6, 2011
Selectors don’t work as they should. Multiple objects of ItemizedOverlay conflict with each other. Two or more OverlayItems can suddenly be focused. Not good. I will proceed with currentOI tracking and toggleHighlight.