{ "id": "161815", "key": "MOD-2274", "fields": { "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false }, "project": { "id": "10034", "key": "MOD", "name": "Appcelerator Modules", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "14610", "description": "Items waiting to be scheduled", "name": "Backlog", "archived": false, "released": true } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-08-10T16:49:03.000+0000", "created": "2016-07-15T23:35:54.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "BNSF" ], "versions": [ { "id": "17157", "name": "Release 5.2.0", "archived": false, "released": true, "releaseDate": "2016-02-23" }, { "id": "17710", "name": "Release 5.3.0", "archived": false, "released": true, "releaseDate": "2016-06-04" } ], "issuelinks": [ { "id": "52214", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "149127", "key": "TIMOB-19215", "fields": { "summary": "Events on Map Annotation do not fire", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-08-10T16:49:07.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": "13700", "name": "Map" } ], "description": "Demo Code:\r\n{code:javascript}\r\nvar MapModule = require('ti.map');\r\nvar win = Ti.UI.createWindow({backgroundColor: 'white'});\r\nvar appc = MapModule.createAnnotation({\r\n latitude: 37.389569,\r\n longitude: -122.050212,\r\n title: 'Appcelerator HQ',\r\n subtitle: 'Mountain View, CA',\r\n pincolor: MapModule.ANNOTATION_GREEN,\r\n draggable: true,\r\n rightButton: Ti.UI.iPhone.SystemButton.CONTACT_ADD\r\n});\r\nvar mapview = MapModule.createView({\r\n mapType: MapModule.HYBRID_TYPE,\r\n region: {latitude: 37.389569, longitude: -122.050212, latitudeDelta: 0.2, longitudeDelta: 0.2},\r\n annotations: [appc]\r\n});\r\n\r\n\r\nmapview.addEventListener('click', function(e){\r\n Ti.API.info(e.type);\r\n Ti.API.info(JSON.stringify(e.clicksource));\r\n});\r\n\r\nwin.add(mapview);\r\nwin.open();\r\n{code}\r\n\r\n*Test Case:*\r\nClick the Title or subTitle of the map annotation.\r\n\r\n*Expected Result:*\r\nShould return the title/subTitle as the clickSource\r\n\r\n*Actual Results*\r\nThe returned clickSource is \"pin\"\r\n", "attachment": [], "flagged": false, "summary": "iOS: Map Annotation click event doesn't return correct clicksource", "creator": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Map Module: iOS 2.4.1\r\n", "closedSprints": [ { "id": 685, "state": "closed", "name": "2016 Sprint 16 SDK", "startDate": "2016-07-30T00:40:02.939Z", "endDate": "2016-08-13T00:40:00.000Z", "completeDate": "2016-08-15T08:00:33.056Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "391538", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-07-26T18:45:08.000+0000", "updated": "2016-07-26T18:45:22.000+0000" }, { "id": "391596", "author": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~apetkov] We need at least a workaround for this. Is possible for you to implement a view or to add some view instead the map annotation and attach the event to the view ? ", "updateAuthor": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-07-27T00:30:29.000+0000", "updated": "2016-07-27T00:30:29.000+0000" }, { "id": "391710", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~rramirez] Like I said above the mapView delegates deal with the annotation callbacks not the actual annotations -so there aren't many workarounds.-\r\n\r\nEven if you were to create an annotation with a customView and 2 labels for title and subtitle it still wouldn't work, as no callbacks are called on the view because the user-interactions are [disabled|https://docs.appcelerator.com/platform/latest/#!/api/Modules.Map.Annotation]. \r\n\r\n\r\n*EDIT:* For now please use the right and left accessories. ", "updateAuthor": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-07-27T18:12:54.000+0000", "updated": "2016-08-08T17:56:08.000+0000" }, { "id": "392859", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR for the docs-update merged. As described in detail above, newer iOS-versions do not allow to track the title and subtitle when clicking the infoWindow. If we would still want to do it, it would only be with private API-usage which is disallowed by Apple. People can still create their own infoWindow with their labels and get it from there. Thanks!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-08-10T16:48:21.000+0000", "updated": "2016-08-10T16:48:21.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }