[mono-android] maps - I'm doing something wrong

Wally McClure theevilprogrammer at hotmail.com
Wed Nov 9 18:57:46 EST 2011


I've got the code below.  I have a "real" key determined from the machine that I am running on right now (I know because I just recreated it).  The problem that I am running into is that the map_view is sometimes null and sometimes not.  Has anyone else seen this behavior?

var map_view = new MapView(this, "debug key"); 
SetContentView(map_view);
location_overlay = new MyLocationOverlay(this, map_view);
location_overlay.EnableMyLocation();
            
location_overlay.RunOnFirstFix(delegate
{
    map_view.Controller.AnimateTo(location_overlay.MyLocation);
});
map_view.Overlays.Add(location_overlay); 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monodroid/attachments/20111109/e87d6e16/attachment.html 


More information about the Monodroid mailing list