[TIMOB-13100] Android: Maps V2 Module - Annotation click event not triggered
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-04-04T17:09:10.000+0000 |
Affected Version/s | Release 3.0.2 |
Fix Version/s | Release 3.1.0, 2013 Sprint 07 API, 2013 Sprint 07 |
Components | Android |
Labels | mapv2, qe-testadded, triage |
Reporter | jason hu |
Assignee | Ping Wang |
Created | 2013-03-04T04:05:20.000+0000 |
Updated | 2013-09-25T07:24:14.000+0000 |
Description
after clicking the annotation, it will pop up the decent white box view with title and subtitle, however, No event is triggered when the pop view is clicked.
Previously, we can get event from mapview and distinguish different click source for leftButton, rightButton, title, subtitle.
map.addEventListener('click', function(evt) {
Titanium.API.info('map is clicked');
var clickSource = evt.clicksource;
Titanium.API.info('map is clicked :: '+clickSource);
});
Hi jason, Before we can escalate this, we need the following info: - Ti SDK version - Android version, device version / emulator - A runnable test case We appreciate your time in helping to improve the platform. Thanks!
SDK: 3.02GA Android: 2.3.4, 2.3.6, 4.1.2 Device: Nexus S, Galaxy Note 2 As far as the runnable test case, you should be able to easily reproduce this yourself. Since this requires V2 private key, I can't upload my project.
why is the status changed to Resolved? This is so far the biggest show stopper for this module. With this bug, the V2 module becomes unpresentable literally.
Why has this been closed? Maps V2 is unusable to me until this issue has been resolved.
Titanium SDK: 3.0.2GA Maps module: 2.0.0 Samsung Galaxy S3: 4.1.2 Sasmung Galaxy Ace Plus: 2.3.6 Asus Nexus 7: 4.1.1 Here is a test case:
PR: https://github.com/appcelerator/titanium_mobile/pull/4061 (3_1_X PR: https://github.com/appcelerator/titanium_mobile/pull/4077) PR: https://github.com/appcelerator/titanium_modules/pull/95
The click event listener must be added to the map view not the annotation. Here is the [doc](http://docs.appcelerator.com/titanium/3.0/#!/api/Modules.Map.View-event-click). Therefore, the test case attached by Stefan Schüller won't work. Please use the test case in TIMOB-12810.
The issue TIMOB-12810 is already tested and closed. The test app (mentioned in the bug TIMOB-12810) shows the mentioned expected results. Hence closing this issue.