SGAnnotationViewDelegate


Callback methods for SGAnnotationViews they recieve touch events. discussion Every annotation view has two modes: target and inspect. Target is the default mode. When the view is clicked, shouldInspectAnnotationView: is called. If the delegate returns a view, the annotation view will move into inspect mode.

Extends Protocol: NSObject
Declared In: SGAnnotationView.h



Methods

-shouldCloseAnnotationView:

Asks the delegate whether the annotation view should be removed as a subview of SGARView and place back in the AR enviornment. and enter back into identifier mode.

-shouldInspectAnnotationView:

Asks the delegate whether the view should be inspected.


shouldCloseAnnotationView:


Asks the delegate whether the annotation view should be removed as a subview of SGARView and place back in the AR enviornment. and enter back into identifier mode.

- (BOOL) shouldCloseAnnotationView:(SGAnnotationView*)view; 
Parameters
view

The view that is in question.

Return Value

YES if the view should leave return back to the AR enviornment; otherwise NO.

Discussion

See SGAnnotationView


shouldInspectAnnotationView:


Asks the delegate whether the view should be inspected.

- (UIView*) shouldInspectAnnotationView:(SGAnnotationView*)view; 
Parameters
view

The view that is in question.

Return Value

Any UIView if the view should enter into inspection mode; otherwise NO.

Discussion

Notice how the return value is a UIView. You do not have to return the annotation view that is passed in. You can create your own view to display. If you return the same annotation view that was passed in, the AR view will call inspectView: . If any view is returned, the view will be added to the AR view as a subview and will no longer be rendered in the AR enviornment.

© SimpleGeo Last Updated: 03/31/2010