MapXL / route-me

Automatically exported from code.google.com/p/route-me
0 stars 0 forks source link

tapOnLabelForMarker is not called if marker is UIView #118

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
In Code, 
1. Add a label by calling setLabel
        RMMarker *viewMarker = [[RMMarker alloc]initWithUIImage:redImage];
    [viewMarker setLabel:myMarkerView]; 
where myMarkerView is a subclass of UIView.
2. Implement tapOnLabelForMarker like
- (void) tapOnLabelForMarker:(RMMarker *)marker onMap:(RMMapView *)map {
    NSLog(@"Marker was tapped");
    if (marker.label == nil) {
        NSLog(@"Marker is Nil");
        return;
    }

    if ([marker.label isHidden]) {
        [marker showLabel];
    } else {
        [marker hideLabel];
    }
}

3. Tap the marker label and check gdb if log message is printed.

What is the expected output? What do you see instead?
Tapping UIView Label should be treated similar to TextLabel.

What subversion release are you using? Does the behavior occur on the
simulator, a real iPhone/iPod Touch, or both?
Tested on simulator. Latest version.

If you can reproduce your bug, please provide the source code for a
reproducing case. The best place to start is with the SampleMap project.

Please don't send patches/diffs. Post source code directly to the issue
tracker, noting your suggested revisions. If they are extensive, use a
branch in subversion with the same name as your issue number (e.g.
branches/issue59).

Please provide any additional information below.

Original issue reported on code.google.com by nitz...@gmail.com on 13 Sep 2009 at 11:17