{ "id": "94441", "key": "TIMOB-9877", "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": "14621", "description": "2012 Sprint 23 API", "name": "2012 Sprint 23 API", "archived": true, "released": true, "releaseDate": "2012-11-19" }, { "id": "14623", "description": "2012 Sprint 23 JS", "name": "2012 Sprint 23", "archived": true, "released": true, "releaseDate": "2012-11-19" } ], "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": "2012-11-01T22:38:59.000+0000", "created": "2012-07-05T03:57:41.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-11-07T18:48:17.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Create annotation method does not work on button click eventlistener.\r\nThis is not regression. This also occured on 2.0.2\r\n\r\nSteps to reproduce:\r\n1. Create an app using the code below.\r\n2. Launch the app.\r\n3. Click on 'Add annotations' button.\r\n\r\nExpected:\r\nAnnotation should be added.\r\n\r\nActual:\r\nAnnotation is not added.\r\n\r\n{code}\r\n\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'white'\r\n});\r\n \r\nvar button = Ti.UI.createButton({\r\n title: 'Add Annotations',\r\n top: 10,\r\n left: 10,\r\n height: 40,\r\n width: 200\r\n});\r\nvar mapView = Titanium.Map.createView({\r\n top: 50,\r\n mapType: Titanium.Map.STANDARD_TYPE,\r\n region:{latitude:37.390749,longitude:-122.081651,animate:true,latitudeDelta:0.04, longitudeDelta:0.04},\r\n animate:true,\r\n regionFit:true,\r\n userLocation:true,\r\n});\r\nbutton.addEventListener('click', function(){\r\n var mountainView = Titanium.Map.createAnnotation({\r\n latitude:37.390749,\r\n longitude:-122.081651,\r\n title:\"Appcelerator Headquarters\",\r\n subtitle:'Mountain View, CA',\r\n animate: true,\r\n image: 'appicon.png'\r\n });\r\n mapView.annotations = [mountainView];\r\n});\r\n \r\n\r\n \r\nwin.add(button);\r\nwin.add(mapView);\r\n \r\nwin.open();\r\n\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Titanium.Map - Create annotation method does not work on button click eventlistener.", "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": "Titanium SDK: 2.1.0.v20120628121617\r\nTitanium Studio:2.1.0.201206251749\r\nDevices: Samsung galaxy tab (v 3.2)\r\nOperating system:10.7.3", "comment": { "comments": [ { "id": "225912", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with latest master and 3_0_X branch. The annotation is added to the map view as expected. Mark the ticket as Cannot Reproduce.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-01T22:38:40.000+0000", "updated": "2012-11-01T22:38:40.000+0000" }, { "id": "246818", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with:\r\nSDK: 3.1.0.v20130409124549\r\nStudio:3.1.0.201304011603\r\nDevice: Samsung galaxy tab(v 3.2)\r\nOS: OSX 10.7.5\r\n\r\nCannot reproduce the issue. annotation adds successfully", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-10T06:19:10.000+0000", "updated": "2013-04-10T06:19:10.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }