route-me/route-me — pull request #161 by dguerri (2012-01-27 21:06:38+00:00)
Title: Adds tapOnLabelForMarker:onMap:onLayer: method to RMMapViewDelegate protocol.

Adds tapOnLabelForMarker:onMap:onLayer: method to RMMapViewDelegate protocol.

This method allows the implementation of tappable buttons in markers label.

For instance, you can add a button layer with name @"NameOfYourButtonLayerHere" to a marker label and implement the method tapOnLabelForMarker:onMap:onLayer: for your RMMapViewDelegate as follows:

- (void) tapOnLabelForMarker:(RMMarker*)marker
onMap:(RMMapView*)map
onLayer:(CALayer *)layer
{
if (layer.name == @"NameOfYourButtonLayerHere") {
//Code to serve button tap here
}
}

See also http://stackoverflow.com/questions/5967909/route-me-marker-label-with-uibuttontypedetaildisclosure-button-button-isnt-cl