[AC-1039] on IOS, Modules.Map.Annotation has a bug on left/rightButton
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Invalid |
Resolution Date | 2014-05-22T22:55:37.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Appcelerator Modules, Titanium SDK & CLI |
Labels | ios |
Reporter | Manuele Cappelleri |
Assignee | Ritu Agrawal |
Created | 2014-05-22T21:09:52.000+0000 |
Updated | 2016-03-08T07:37:22.000+0000 |
Description
if you mix annotations with and without left/rightButton property, you end up with inconsistent results on annotations created without said properties.
This is due to:
if (left!=nil) {
annView.leftCalloutAccessoryView = left;
}
if (right!=nil) {
annView.rightCalloutAccessoryView = right;
}
To fix this, you can change the code to:
if (left!=nil) {
annView.leftCalloutAccessoryView = left;
} else {
annView.leftCalloutAccessoryView = nil;
}
if (right!=nil) {
annView.rightCalloutAccessoryView = right;
} else {
annView.rightCalloutAccessoryView = nil;
}
Please disregard. Wrong project! My error. Sorry 'about that!
No problem! Resolving the ticket.