GitHub Issue | n/a |
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2017-07-19T17:59:02.000+0000 |
Affected Version/s | Release 1.8.0 |
Fix Version/s | n/a |
Components | Android |
Labels | annotation, api, clickEvent, map, parity |
Reporter | Natalie Huynh |
Assignee | Ingo Muschenetz |
Created | 2011-08-17T14:45:39.000+0000 |
Updated | 2017-07-19T17:59:02.000+0000 |
Steps to Reproduce:
1. Run the attached application
2. Click on Open Test
3. Click on the right titanium image in the annotation
Actual Result:
Nothing happens
Expected Result:
To display a different annotation
We need to update with more details: when does the click event of an annotation actually occur, during the pin click, during the popup click, or both? Also a boiled down JS example would be helpful
Trimmed test down to easily track the problem
Android: Clicking on the pin displays and hides the map annotation. Click event is not taking the click on the right view item in map annotation. iOS: Clicking on the pin displays the map annotation, click elsewhere to hide Click on the right view, map annotion changes, pin changes Pin does not take click events when map annotation is up
I did some testing on this sample against current master. Looking at the logging, the click event IS being generated. However, there are a couple of issues: - On Android, the event is generated with clicksource = 'rightPane', not 'rightButton', so that branch is never executed. - If I change the logic to use (clicksource == 'rightButton' || clicksource == 'rightPane'), I can see the branch get executed, but the changes to the annotation never show up. Perhaps this is related to TIMOB-2236?
By further paring down the test case in this report, I came up with a crash, reported as TIMOB-7610. This crash would explain why the annotation is not getting updated, except that we're not seeing the crash. Question: could the platform be catching this NPE because it's occurring inside the click event handler? That could explain the observed behavior.
Closing ticket due to time passed and lack of progress for a number of years. Please open a new ticket if there are any problems.