Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TIMOB-12479] Expose canShowCallout on AnnotationProxy #4670

Merged
merged 2 commits into from
Sep 19, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 12 additions & 1 deletion apidoc/Titanium/Map/Annotation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,18 @@ properties:
Must be set before the annotation is added to the map view.
type: Boolean
exclude-platforms: [blackberry]


- name: canShowCallout
summary: Defines whether the annotation view is able to display extra information in a callout bubble.
description: |
When this is set to true, the annotation view shows the callout bubble on selection. Set this to false to disabled
the showing of the callout bubble on selection. This must be set before the annotation is added to the map.

If this value is undefined, the value is treated as **explicit true**.
type: Boolean
platforms: [iphone, ipad]
since: "3.2.0"

- name: centerOffset
summary: Defines a center offset point for the annotation.
description: |
Expand Down
2 changes: 1 addition & 1 deletion iphone/Classes/TiMapView.m
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ - (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id <MKAnno
pinview.animatesDrop = [ann animatesDrop] && ![(TiMapAnnotationProxy *)annotation placed];
annView.calloutOffset = CGPointMake(-8, 0);
}
annView.canShowCallout = YES;
annView.canShowCallout = [TiUtils boolValue:[ann valueForUndefinedKey:@"canShowCallout"] def:YES];
annView.enabled = YES;
annView.centerOffset = ann.offset;
UIView *left = [ann leftViewAccessory];
Expand Down