{ "id": "88847", "key": "TIMOB-8309", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2012-03-28T13:26:56.000+0000", "created": "2012-03-26T12:08:13.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" } ], "issuelinks": [ { "id": "16151", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "85459", "key": "TIMOB-7396", "fields": { "summary": "iOS: Annotation eventListener firing only twice", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-04-04T09:29:23.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "*Code*\r\n{code}\r\nvar win1 = Titanium.UI.createWindow({\r\n\ttitle:'Tab 1', \r\n\tbackgroundColor:'#fff' \r\n});\r\n\r\nvar mapView = Ti.Map.createView({ \r\n\ttop : 0, \r\n\tleft : 0, \r\n\tright:0, \r\n\tbottom:0, \r\n\tmapType : Titanium.Map.STANDARD_TYPE, \r\n\tanimate : true, \r\n\tregionFit : true, \r\n\tuserLocation : true \r\n});\r\n\r\nfor (var i = 0; i < 10; i++) \r\n{\r\n\tvar v = Ti.UI.createView({ \r\n\t\twidth:50, \r\n\t\theight:30 \r\n\t}); \r\n\t\r\n\tvar link = Ti.UI.createLabel({ \r\n\t\ttext:\"HI\", \r\n\t\twidth:50, \r\n\t\theight:30, \r\n\t\tbackgroundColor:\"white\" \r\n\t}); \r\n\t\r\n\tlink.addEventListener('click',function(e) \r\n\t{ \r\n\t\tTi.API.info(\"Clicked Right View Label on Annotation\"); \r\n\t}); \r\n\t\r\n\tv.add(link);\r\n\t\r\n\tvar annotationTick = Titanium.Map.createAnnotation({\r\n\t latitude : 0,\r\n\t longitude : i*10,\r\n\t title : \"Title\",\r\n\t subtitle : \"Subtitle\",\r\n\t pincolor : Titanium.Map.ANNOTATION_GREEN,\r\n\t animate : true,\r\n\t rightView: v\r\n\t});\r\n\t\r\n\tannotationTick.addEventListener('click',function(e)\r\n\t{\r\n\t Ti.API.info(\"Clicked Annotation\");\r\n\t});\r\n\t\r\n\tmapView.addAnnotation(annotationTick);\r\n}\r\n\r\nwin1.add(mapView);\r\n\r\nwin1.open();\r\n{code}\r\n\r\n*Expected behavior*\r\nWhen you click on each annotation, it should print out to the console that the event has been fired. Also when you tap on the white label, it should also print/fire another event that shows the label has been tapped.\r\n\r\n*Actual behavior*\r\nEvents don't seem to fire at all, unless you tap on the last pin. If you tap on the last pin, the event gets fired instantly, the next event will also work fine, however any after that don't seem to fire at all again. \r\nSo in other words, you tap the last pin, then you can tap any other pin and it will fire the events. But after that, it won't fire any events again, unless you tap the last pin again.\r\n\r\n*Notes*\r\n-Only tested with 1.8.2 with the iOS 5.0 simulator.\r\n-Zoom out from the map view in order to see the pins.\r\n-HD ticket: http://support-admin.appcelerator.com/display/APP-436565", "attachment": [], "flagged": false, "summary": "iOS: Ti.Map.Annotation event listeners don't fire consistently", "creator": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "environment": "Titanium SDK version: 1.8.2\r\nPlatform & version: iOS 5.0 simulator \r\nHost Operating System: OSX 10.7.2\r\nTitanium Studio version: 1.0.9.201202141208", "comment": { "comments": [ { "id": "189001", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as Fixed.\r\n\r\nSDK: 2.0.0.v20120326211803\r\nStudio: 2.0.0.201203271933\r\nOS: Snow Leopard\r\nDevices Tested: iPhone Simulator 5.0", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-28T09:43:56.000+0000", "updated": "2012-03-28T09:43:56.000+0000" }, { "id": "189002", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "Would it be possible to add this to 1.8.2 please?", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-03-28T09:47:37.000+0000", "updated": "2012-03-28T09:47:37.000+0000" }, { "id": "189048", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Duplicate of TIMOB-7396.", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-28T13:26:56.000+0000", "updated": "2012-03-28T13:28:16.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }