-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
Right now the annotation have no click event. This is what I added to add the annotation click event.
On Titanium you have one new event:
MapView.addEventListener("tapOnCalloutAccessoryControl", function(e) {
/*
* Add your code here!
*
*/
})On the iOS module:
On the layerForAnnotation:
marker.rightCalloutAccessoryView = [UIButton buttonWithType:UIButtonTypeDetailDisclosure];
return marker;and just add after:
- (void)tapOnCalloutAccessoryControl:(UIControl *)control forAnnotation:(RMAnnotation *)annotation onMap:(RMMapView *)map
{
NSLog(@"You tapped the callout button!");
@ Add whatever you want here.
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels