{ "id": "80425", "key": "TIMOB-5310", "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": "12092", "description": "", "name": "Sprint 2011-52", "archived": true, "released": true, "releaseDate": "2011-12-30" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-03-11T22:25:23.000+0000", "created": "2011-09-20T07:51:33.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_map", "parity", "qe-testadded" ], "versions": [ { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "issuelinks": [], "assignee": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "updated": "2012-03-11T22:25:23.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": "h3.Problem\r\nWhile using addAnnotations method with Android it throws an error: \"TypeError: Cannot find function addAnnotations in object [Ti.Map.View].\". This method works correctly on iOS.\r\n\r\nh3.Reproducible Steps\r\n1. Execute the sample code (the error message would appear)\r\n\r\nh3.Description of addAnnotations method\r\nhttp://developer.appcelerator.com/apidoc/mobile/latest/Titanium.Map.MapView-object\r\n\r\nh3.Sample Code\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar atlantaParams = {\r\n\t\tlatitude:33.74511,\r\n\t\tlongitude:-84.38993,\r\n\t\ttitle:\"Atlanta, GA\",\r\n\t\tsubtitle:'Atlanta Braves Stadium\\nfoo',\r\n\t\tanimate:true,\r\n\t\trightButton: Titanium.UI.iPhone.SystemButton.DISCLOSURE,\r\n\t\tmyid:3\r\n\t};\r\n\r\natlantaParams.pincolor = Titanium.Map.ANNOTATION_PURPLE;\r\nvar atlanta = [];\r\natlanta.push(Titanium.Map.createAnnotation(atlantaParams));\r\n\r\nvar mapview = Titanium.Map.createView({\r\n\tmapType: Titanium.Map.STANDARD_TYPE,\r\n\tregion:{latitude:33.74511, longitude:-84.38993, latitudeDelta:0.5, longitudeDelta:0.5},\r\n\tanimate:true,\r\n\tregionFit:true,\r\n\tuserLocation:true\r\n});\r\n\r\nwin.add(mapview);\r\n\r\nmapview.addAnnotations(atlanta);\r\n\r\nwin.open();\r\n{code}\r\n\r\n", "attachment": [ { "id": "22978", "filename": "annotation.png", "author": { "name": "kpomaski", "key": "kpomaski", "displayName": "Karol Pomaski", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-20T07:51:33.000+0000", "size": 54736, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: addAnnotations method does not exist", "creator": { "name": "kpomaski", "key": "kpomaski", "displayName": "Karol Pomaski", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "kpomaski", "key": "kpomaski", "displayName": "Karol Pomaski", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK 1.7.2 and Titanium SDK 1.8.0.v20110915133349\r\nSimulator, Android 2.3.3", "comment": { "comments": [ { "id": "174254", "author": { "name": "detrate", "key": "detrate", "displayName": "Tyler Mulligan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Solution found here: http://developer.appcelerator.com/question/123043/addannotations-on-android#answer-218731", "updateAuthor": { "name": "detrate", "key": "detrate", "displayName": "Tyler Mulligan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-29T17:14:37.000+0000", "updated": "2011-11-29T17:14:37.000+0000" }, { "id": "179193", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing bug. Verified fix on:\r\n\r\nSDK build: 1.9.0.v20120112153134\r\nRuntime: V8, Rhino\r\nTitanium Studio, build: 1.0.8.201201122152\r\nDevice: Droid 3 (2.3.4)\r\n\r\nNote: Bug is reproducible in 1.7.5 and 1.8.0.1", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-01-13T09:49:30.000+0000", "updated": "2012-01-13T11:30:35.000+0000" }, { "id": "179210", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Editing comment", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-01-13T11:30:25.000+0000", "updated": "2012-01-13T11:30:25.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }