{ "id": "160122", "key": "TIMOB-23343", "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": [ { "id": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-05-31T15:52:05.000+0000", "created": "2016-05-09T14:01:34.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "qe-5.4.0" ], "versions": [ { "id": "17707", "name": "Release 5.3.0", "archived": false, "released": true, "releaseDate": "2016-06-04" } ], "issuelinks": [ { "id": "51713", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "159759", "key": "TIMOB-23255", "fields": { "summary": "Windows: Map annotations click do not 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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-06-23T19:57:57.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "Windows has support for the map namespace and according to API parity and looking at the code in the github repo almost all APIs are in, one thing we can´t get working is the annotation (or map) click event, there is in fact a click event, but the event is not returning and useful data, we do not know the e.source for instance or some similar data sp we can parse it and use it to know which annotation was clicked...\r\n\r\nCan we expose the annotation some how so we can know what annotation was clicked by attaching to the proxy object and add a native handler?\r\n\r\n", "attachment": [], "flagged": false, "summary": "Windows : Map annotations do not handle click events", "creator": { "name": "buder", "key": "buder", "displayName": "Jörgen Buder", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "buder", "key": "buder", "displayName": "Jörgen Buder", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "closedSprints": [ { "id": 631, "state": "closed", "name": "2016 Sprint 11 SDK", "startDate": "2016-05-21T00:06:10.029Z", "endDate": "2016-06-04T00:06:00.000Z", "completeDate": "2016-06-06T07:30:39.854Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "385873", "author": { "name": "buder", "key": "buder", "displayName": "Jörgen Buder", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hi\r\n\r\nWe need your attention to this issue, here is more information. Setting up a map i the standard way adding annotation to it and then trying to print the object from the annotation click looks like this:\r\n{code}\r\n[INFO] : Print all event info from map:\r\n[INFO] e.clicksource: undefined, e.title: undefined, e.annotation: undefined, latitude: undefined, e.longitude: undefined, e.source: [object class TitaniumWindows::Map::View], e.type: click\r\n[INFO] : Background Count : 0\r\n{code}\r\nAs you can see there is no way for us to determine what the source was, and generally we are not able to parse the object coming into the function it crashes the parsing.\r\n\r\nCode:\r\n{code:javascript}\r\nmapview.addEventListener('click', function(e) {\r\n\r\n \r\n Alloy.Globals.logger.info('Print all event info from map:');\r\n Alloy.Globals.logger.info('e.clicksource: ' + e.clicksource + ', e.title: ' + e.title +\r\n ', e.annotation: ' + e.annotation + ', latitude: ' + e.latitude +\r\n ', e.longitude: ' + e.longitude + ', e.source: ' + e.source + \r\n ', e.type: ' + e.type + '\\n');\r\n // make the annotation respond to click events anywhere in the view for Android\r\n // and for the left button click on iOS\r\n\r\n // Check if anything beside My Position is clicked\r\n if (e.clicksource == 'pin' && e.annotation.annotationType != \"myPos\") {\r\n // Check if address is available, otherwise reverse geocode\r\n if (!e.annotation.address) {\r\n getAddress(e.annotation);\r\n }\r\n }\r\n else if ((e.clicksource == 'leftPane') || (e.clicksource == 'rightButton')\r\n \t\t\t|| (e.clicksource == 'rightPane') || ((e.clicksource == 'rightView'))\r\n \t\t\t|| (e.clicksource == 'infoWindow') || (e.clicksource == 'title'))\r\n {\r\n if (myPosition !== e.annotation) {\r\n Titanium.Analytics.featureEvent('app.feature.mapannotationopen');\r\n\r\n e.annotation.parentView = parentView;\r\n var annotationWidget = Alloy.createWidget('mapannotation', e.annotation);\r\n var annotationView = annotationWidget.getView();\r\n parentView.add(annotationView);\r\n }\r\n }\r\n{code}", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2016-05-17T06:55:49.000+0000", "updated": "2016-05-17T15:21:23.000+0000" }, { "id": "387020", "author": { "name": "buder", "key": "buder", "displayName": "Jörgen Buder", "active": true, "timeZone": "Europe/Berlin" }, "body": "Am I clear enough in this ticket? Let me know if you need me to test something or add information to this quite important ticket.\r\n\r\nThanks", "updateAuthor": { "name": "buder", "key": "buder", "displayName": "Jörgen Buder", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-05-27T09:41:45.000+0000", "updated": "2016-05-27T09:41:45.000+0000" }, { "id": "387024", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/723", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-05-27T10:42:23.000+0000", "updated": "2016-05-27T10:42:23.000+0000" }, { "id": "388955", "author": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "body": "Verified as fixed.\r\nTested on:\r\nMicrosoft Lumia 640 (8.1)\r\nWindows Simulator (8.1)\r\nMicrosoft Lumia 640 (10)\r\nWindows Simulator (10)\r\nWindows 10 Pro\r\nStudio: 4.7.0.201606150733\r\nTi SDK: 5.4.0.v20160617074028\r\nAppc NPM: 4.2.7-2\r\nApp CLI: 5.4.0-18\r\nNode v4.4.4\r\n*Closing Ticket.*", "updateAuthor": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "created": "2016-06-23T19:55:29.000+0000", "updated": "2016-06-23T19:55:29.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }