{ "id": "149758", "key": "AC-239", "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-11T05:20:35.000+0000", "created": "2015-07-17T09:40:44.000+0000", "labels": [ "ios", "mapView", "module" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2015-11-11T05:20:35.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": "That are parts of my code which do not works after update to Titanium CLI version 4.0.1\r\nCurrently click event only fires if e.clicksourse is \"pin\" but i need to fire if clicksourse is \"rightButton\" which works before update\r\n\r\nin the Alloy xml view:\r\n\r\nin Alloy controller:\r\n\r\nfunction doClick(e){\r\n Ti.API.info(\"doClick: \" + e.clicksource);\r\n}", "attachment": [], "flagged": false, "summary": "iOS map click event fires only if clicksourse is \"pin\"", "creator": { "name": "mole", "key": "mole", "displayName": "Georgi Nikolov", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mole", "key": "mole", "displayName": "Georgi Nikolov", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "tested on iPod 5 iOS 8.4 and iPhone4 iOS 8.4\r\n\r\nwith\r\n\r\nTitanium CLI\r\nCLI Version = 4.0.1\r\nTitanium SDK\r\nSDK Version = 4.1.0.GA\r\nalso tested with SDK Version 4.0.0", "comment": { "comments": [ { "id": "362073", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Please retry using the latest Ti.Map version, thank you!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-09-02T16:21:29.000+0000", "updated": "2015-09-02T16:21:29.000+0000" }, { "id": "363774", "author": { "name": "pchowdhury", "key": "pchowdhury", "displayName": "Papia Chowdhury", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hello,\r\n\r\nI have tested this issue in my environment. Click event for rightButton works as expected. \r\n\r\n*Testing Environment:*\r\nAppcelerator Studio, build: 4.3.0.201509031836\r\nAppcelerator Command-Line Interface, version 5.0.0-50\r\nTitanium SDK: 4.1.1 GA, 4.1.0GA, 4.0.0GA\r\niOS simulator: iphone 5s(v8.1)\r\nOS X version: 10.9.5\r\n\r\n*Steps to test*\r\n1. Create an alloy project.\r\n2. Replace index.xml and index.js with following code\r\n3. Run the project\r\n\r\nNow click on the left and right button of the map and observe the output for the clicksource in the 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 : \"Map Test\",\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.", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-09-14T10:17:11.000+0000", "updated": "2015-11-11T05:20:24.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }