{ "id": "92800", "key": "TIMOB-9374", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-06-25T14:32:14.000+0000", "created": "2012-06-05T04:13:42.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api", "qe-ios060112" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T23:13:46.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 clicked anywhere on the map(outside the annotation) while annotation is open, alert displays with clicksource as null.(Refer test case TIMOB-7272)\r\n\r\nSteps to Reproduce:\r\n1. Launch application.\r\n2. Click on the pin. Annotation is displayed.\r\n3. Click outside the annotation.\r\n\r\nActual: The alert is displayed with clicksource as null and annotation closes. \r\nExpected: Annotation should not close.\r\n\r\nNote: Also occured on 1.8.2\r\n\r\n{code}\r\n\r\nvar win = Ti.UI.createWindow();\r\n \r\nvar atlantaParams = {\r\n latitude:33.74511,\r\n longitude:-84.38993,\r\n title:\"Atlanta, GA\",\r\n subtitle:'Atlanta Braves Stadium\\nfoo',\r\n animate:true,\r\n rightButton: Titanium.UI.iPhone.SystemButton.DISCLOSURE,\r\n myid:3 // CUSTOM ATTRIBUTE THAT IS PASSED INTO EVENT OBJECTS\r\n};\r\n \r\natlantaParams.pincolor = Titanium.Map.ANNOTATION_PURPLE;\r\n \r\nvar atlanta = Titanium.Map.createAnnotation(atlantaParams);\r\n \r\nvar mapview = Titanium.Map.createView({\r\n mapType: Titanium.Map.STANDARD_TYPE,\r\n region:{latitude:33.74511, longitude:-84.38993, latitudeDelta:0.5, longitudeDelta:0.5},\r\n animate:true,\r\n regionFit:true,\r\n userLocation:true,\r\n annotations:[atlanta]\r\n});\r\n \r\nmapview.addEventListener(\"click\", function(e) {\r\n var info = '\\n';\r\n \r\n info += 'type: ' + e.type + '\\n';\r\n info += 'clicksource: ' + e.clicksource + '\\n';\r\n info += 'title: ' + e.title + '\\n';\r\n info += 'index: ' + e.index + '\\n';\r\n info += 'annotation: ' + e.annotation + '\\n';\r\n info += 'map: ' + e.map + '\\n';\r\n info += 'source: ' + e.source + '\\n';\r\n \r\n Ti.API.info(info);\r\n alert(info);\r\n});\r\n \r\nmapview.addAnnotation(atlanta);\r\n \r\nwin.add(mapview);\r\n \r\nwin.open();\r\n\r\n{code}\r\n\r\n\r\n\r\n\r\n", "attachment": [], "flagged": false, "summary": "iOS: Titanium.Map.Annotation: When clicked anywhere on the map(outside the annotation) while annotation is open, alert displays with clicksource as null and annotation closes.", "creator": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK: 1.8.2, 2.1.0.v20120604151821\r\nStudio: 2.1.0.201206010843\r\nOS: 10.7.3\r\nDevices Tested: iPad2\r\n", "comment": { "comments": [ { "id": "200148", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Already documented. Look at click event in Map.View", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-06-25T14:32:14.000+0000", "updated": "2012-06-25T14:32:14.000+0000" }, { "id": "410948", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T23:13:46.000+0000", "updated": "2017-03-09T23:13:46.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }