{ "id": "150729", "key": "AC-325", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2015-11-12T11:49:00.000+0000", "created": "2015-08-26T14:59:10.000+0000", "labels": [ "click", "mapView", "pin" ], "versions": [], "issuelinks": [], "assignee": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "updated": "2015-11-12T11:49:00.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [], "description": "The click on the leftButton or rightButton are simply not fired.\r\nThe click is fired if I click on the pin, and I get a response like this:\r\n\r\n{code:javascript}\r\nclick {\r\n annotation = \"[object TiMapAnnotation]\";\r\n bubbles = 1;\r\n cancelBubble = 0;\r\n clicksource = pin;\r\n index = 0;\r\n map = \"[object mapview]\";\r\n source = \"[object mapview]\";\r\n title = Cupertino;\r\n type = click;\r\n }\r\n{code}\r\n\r\nSample project:\r\n\r\nindex.js\r\n{code:javascript}\r\nTi.Map = require(\"ti.map\");\r\n\r\nvar annotation = Ti.Map.createAnnotation({\r\n\tlatitude : \"37.322998\",\r\n\tlongitude : \"-122.032182\",\r\n title : \"Cupertino\",\r\n\tsubtitle : \"\",\r\n\tleftButton : Titanium.UI.iPhone.SystemButton.DISCLOSURE,\r\n});\r\n$.mapview.addAnnotation(annotation);\t\r\n\r\n$.mapview.region = {\r\n\t latitude : \"37.322998\",\r\n longitude : \"-122.032182\",\r\n latitudeDelta : 0.3,\r\n longitudeDelta : 0.3\r\n};\r\n\r\n$.mapview.selectAnnotation(annotation);\r\n\r\n$.mapview.addEventListener(\"click\", function(e) {\r\n\tconsole.log(\"click\",e);\r\n});\r\n$.index.open();\r\n{code}\r\n\r\nindex.xml\r\n\r\n{code:xml}\r\n\r\n\t\r\n\t\t\r\n \r\n\t\r\n\r\n{code}", "attachment": [], "flagged": false, "summary": "Annotation click on leftButton/rightButton not firing as expected", "creator": { "name": "a.marcone", "key": "a.marcone", "displayName": "Alberto Marcone", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "a.marcone", "key": "a.marcone", "displayName": "Alberto Marcone", "active": true, "timeZone": "Europe/Berlin" }, "environment": "TiSDK 4.1.0 \r\nXcode 6.4\r\nAlloy", "comment": { "comments": [ { "id": "370078", "author": { "name": "jnaher", "key": "jnaher", "displayName": "Jebun Naher", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\n\r\nWe couldn't reproduce this issue as a bug in our environment. leftButton/rightButton annotation click works as expected.\r\n\r\n*Test Result*\r\n{code}\r\n[INFO] : click pin\r\n[INFO] : click leftButton\r\n[INFO] : click rightButton\r\n{code}\r\n\r\n[Screenshot|http://postimg.org/image/7rbxb9ovx/]\r\n\r\n*Testing Environment:*\r\nAppcelerator Command-Line Interface, version 5.0.4\r\nAppcelerator Studio, build: 4.3.3.201510212245\r\nTi SDK Version : 5.0.2.GA\r\nNode.js Version : 0.10.37\r\nMac OS X,Version : 10.10.1\r\nJdk version : 1.7.0_80.jdk\r\nsimulator : iPhone 6(8.2)\r\n\r\n*Steps to test:*\r\n1. Create an Alloy project.\r\n2. Copy below test codes to respective files of your project.\r\n3. Run the project.\r\nClick on leftButton and rightButton and observe the output in console.\r\n\r\n*Test Case:*\r\nindex.xml\r\n{code}\r\n\r\n\t\r\n\t\t\r\n \r\n\t\r\n\r\n{code}\r\n\r\nindex.js\r\n{code}\r\nTi.Map = require(\"ti.map\");\r\n \r\nvar annotation = Ti.Map.createAnnotation({\r\n\tlatitude : \"37.322998\",\r\n\tlongitude : \"-122.032182\",\r\n\ttitle : \"Cupertino\",\r\n\tsubtitle : \"\",\r\n\tleftButton : Titanium.UI.iPhone.SystemButton.DISCLOSURE,\r\n\trightButton : Titanium.UI.iPhone.SystemButton.DISCLOSURE,\r\n});\r\n$.mapview.addAnnotation(annotation);\r\n \r\n$.mapview.region = {\r\n\tlatitude : \"37.322998\",\r\n\tlongitude : \"-122.032182\",\r\n\tlatitudeDelta : 0.3,\r\n\tlongitudeDelta : 0.3\r\n};\r\n \r\n$.mapview.selectAnnotation(annotation);\r\n$.mapview.addEventListener(\"click\", function(e) {\r\n\tconsole.log(\"click\", e.clicksource);\r\n});\r\n$.index.open(); \r\n{code}\r\n\r\nThanks.\r\n", "updateAuthor": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2015-11-12T10:47:56.000+0000", "updated": "2015-11-12T11:48:39.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }