Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2340] Titanium 3.1.3GA > IOS > Clicking on a map annotation's title or subtitle doesn't trigger a click event

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionDuplicate
Resolution Date2013-10-10T18:53:45.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsannotations, mapView
ReporterQuoc Huy
AssigneeMauro Parra-Miranda
Created2013-10-01T09:44:57.000+0000
Updated2016-03-08T07:41:21.000+0000

Description

I have an annotation added to a map view: var annotation = Titanium.Map.createAnnotation( { longitude: longitude, latitude: latitude, animate: true, pincolor: Titanium.Map.ANNOTATION_RED, leftButton: '/images/pin_star_gps.png', rightButton: '/images/disclosure.png', title: "Click to select", subtitle: "hehe", myid: 1, } ); $.mapview.addAnnotation( annotation ); $.mapview.addEventListener( 'click', function( evt ) { Ti.API.info( evt.annotation ); var annotation = evt.annotation; var clickSource = evt.clicksource; switch(clickSource) { case 'title': case 'subtitle': Ti.API.info('title'); break; case 'rightButton': Ti.API.info('right button'); break; case 'leftButton': Ti.API.info('left button'); break; } } ); The title is never triggered.

Comments

  1. Jamie Buckley 2013-10-06

    Hi Quoc, Can you provide a code sample that can be dropped into a project and reproduced, and attach it as a file or format the code using the statement below on either side of the snippet(without spaces). { code }
  2. Mostafizur Rahman 2013-10-10

  3. Mauro Parra-Miranda 2013-11-24

    DUP issue.

JSON Source