[Mono-bugs] [Bug 629739] New: GetViewForOverlay event not called when overlay added to map
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Aug 9 19:41:28 EDT 2010
http://bugzilla.novell.com/show_bug.cgi?id=629739
http://bugzilla.novell.com/show_bug.cgi?id=629739#c0
Summary: GetViewForOverlay event not called when overlay added
to map
Classification: Mono
Product: MonoTouch
Version: unspecified
Platform: Macintosh
OS/Version: Mac OS X 10.6
Status: NEW
Severity: Major
Priority: P5 - None
Component: Runtime
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: bryancostanich at hotmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: Customer
Blocker: ---
Created an attachment (id=381723)
--> (http://bugzilla.novell.com/attachment.cgi?id=381723)
solution file
Description of Problem:
this should work:
public partial class MapWithOverlayScreen : UIViewController
{
MKCircle _circleOverlay = null;
MKCircleView _circleView = null;
...
public override void ViewDidLoad ()
{
...
//---- add an overlay with the coords and a .3 radius
this._circleOverlay = MKCircle.Circle(coords, .5);
this.mapMain.AddOverlay(this._circleOverlay);
//---- set our delegate.
//this.mapMain.Delegate = new MapDelegate();
this.mapMain.GetViewForOverlay += (m, o) => {
if(this._circleView == null)
{
this._circleView = new MKCircleView(this._circleOverlay);
this._circleView.FillColor = UIColor.LightGray;
}
return this._circleView;
};
but the GetViewForOverlay delegate is never called, therefor no overlay shows
up.
Steps to reproduce the problem:
see attached solution:
-> run in sim
-> click on map tab
-> click on map with overlay button
-> breakpoint in Screens/iPhone/Maps/MapWithOverlayScreen.xib.cs at line 68
never gets hit.
Actual Results:
Expected Results:
delegate method should get called when the map loads and tries to display the
overlay
How often does this happen?
everytime
Additional Information:
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list