{ "id": "121204", "key": "TIMOB-15545", "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": "2013-11-05T22:14:11.000+0000", "created": "2013-10-15T08:30:49.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "SupportTeam", "triage" ], "versions": [ { "id": "15593", "description": "Release 3.1.3", "name": "Release 3.1.3", "archived": true, "released": true, "releaseDate": "2013-09-18" } ], "issuelinks": [ { "id": "33090", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "120985", "key": "TIMOB-15448", "fields": { "summary": "iOS: No event generated on click of map annotation title or subtitle", "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 } } } }, { "id": "33910", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "112070", "key": "AC-2234", "fields": { "summary": "Android: Annotations with Google Maps V2 - Clicking on annotation's info window doesnt work", "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" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-23T05:23:50.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": "When adding an annotation to a map you expect to be able to click on a pin, then receive a click event for the annotation itself.\r\n\r\nWhat actually is seen, clicking on a pin displays the annotation. Clicking on the annotation does nothing. With the annotation open, clicking anywhere outside of the annotation fires the clicksource of the annotation and closes the annotation.\r\n\r\nClicking inside the annotation should fire the event. Not the other way around.\r\n\r\nRun this simple app.js\r\n\r\n{code:javascript} \r\nvar win = Ti.UI.createWindow();\r\n\r\nvar mountainView = Titanium.Map.createAnnotation({\r\n latitude:37.390749,\r\n longitude:-122.081651,\r\n title:\"Appcelerator Headquarters\",\r\n subtitle:'Mountain View, CA',\r\n pincolor:Titanium.Map.ANNOTATION_RED,\r\n animate:true,\r\n leftButton: '../images/appcelerator_small.png',\r\n myid:1 // Custom property to uniquely identify this annotation.\r\n});\r\n\r\nvar mapview = Titanium.Map.createView({\r\n mapType: Titanium.Map.STANDARD_TYPE,\r\n region: {latitude:37.390749, longitude:-122.081651,\r\n latitudeDelta:0.04, longitudeDelta:0.04},\r\n animate:true,\r\n regionFit:true,\r\n userLocation:true,\r\n annotations:[mountainView]\r\n});\r\n\r\nwin.add(mapview);\r\n// Handle click events on any annotations on this map.\r\nmapview.addEventListener('click', function(evt) {\r\n\r\n Ti.API.info(\"Annotation \" + evt.title + \" clicked, id: \" + evt.annotation.myid);\r\n\r\n alert(evt.clicksource);\r\n\r\n // Check for all of the possible names that clicksouce\r\n // can report for the left button/view.\r\n if (evt.clicksource == 'leftButton' || evt.clicksource == 'leftPane' ||\r\n evt.clicksource == 'leftView') {\r\n Ti.API.info(\"Annotation \" + evt.title + \", left button clicked.\");\r\n }\r\n});\r\n\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS7: Clicking on map view annotation does not fire event", "creator": { "name": "iantearle", "key": "iantearle", "displayName": "Ian Tearle", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "iantearle", "key": "iantearle", "displayName": "Ian Tearle", "active": true, "timeZone": "Europe/London" }, "environment": "iPad\r\niOS 7\r\nSimulator\r\nDevice\r\nTi 3.1.3 GA\r\nVanilla Ti\r\nAlloy\r\n", "comment": { "comments": [ { "id": "276551", "author": { "name": "iantearle", "key": "iantearle", "displayName": "Ian Tearle", "active": true, "timeZone": "Europe/London" }, "body": "Are there any patches I can make in the mean time? This bug is preventing further development and subsequently delaying a release, which is awkward.", "updateAuthor": { "name": "iantearle", "key": "iantearle", "displayName": "Ian Tearle", "active": true, "timeZone": "Europe/London" }, "created": "2013-10-24T07:48:04.000+0000", "updated": "2013-10-24T07:48:04.000+0000" }, { "id": "276582", "author": { "name": "adampax", "key": "adampax", "displayName": "Adam Paxton", "active": true, "timeZone": "America/New_York" }, "body": "Ian, as a workaround, I attached an click event listener to the individual annotations.", "updateAuthor": { "name": "adampax", "key": "adampax", "displayName": "Adam Paxton", "active": true, "timeZone": "America/New_York" }, "created": "2013-10-24T14:28:06.000+0000", "updated": "2013-10-24T14:28:06.000+0000" }, { "id": "276587", "author": { "name": "iantearle", "key": "iantearle", "displayName": "Ian Tearle", "active": true, "timeZone": "Europe/London" }, "body": "Really, because I have found that doing so has the same result as above, the only event that is fired is that for leftButton/rightButton - no clicksource for title, subtitle, left/rightView.", "updateAuthor": { "name": "iantearle", "key": "iantearle", "displayName": "Ian Tearle", "active": true, "timeZone": "Europe/London" }, "created": "2013-10-24T14:44:54.000+0000", "updated": "2013-10-24T14:44:54.000+0000" }, { "id": "276592", "author": { "name": "adampax", "key": "adampax", "displayName": "Adam Paxton", "active": true, "timeZone": "America/New_York" }, "body": "Correct, I had to add a button instead of depending on a title/subtitle click, but was better than getting no event from the bubble.", "updateAuthor": { "name": "adampax", "key": "adampax", "displayName": "Adam Paxton", "active": true, "timeZone": "America/New_York" }, "created": "2013-10-24T15:03:41.000+0000", "updated": "2013-10-24T15:03:41.000+0000" }, { "id": "415242", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate with reference to the linked issues above.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-23T05:23:50.000+0000", "updated": "2017-03-23T05:23:50.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }