{ "id": "65924", "key": "TIMOB-4260", "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": "11355", "description": "Mobile 1.8.0 M02", "name": "Sprint 2011-23", "archived": true, "released": true, "releaseDate": "2011-06-13" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-06-06T16:25:36.000+0000", "created": "2011-05-31T12:47:12.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" }, { "id": "11260", "description": "", "name": "Release 1.6.2", "archived": true, "released": true, "releaseDate": "2011-04-20" } ], "issuelinks": [], "assignee": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-08-25T11:05:42.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": "If a user wants to display an image that has been resized, or any type of a view on a map annotation, you can only pass a local or remote path to an image on android. The sample code demonstrates the issue on android, and how it should work on iOS:\r\n\r\n{code}\r\nvar win = Titanium.UI.createWindow();\r\n\r\nvar isAndroid = false;\r\nif (Titanium.Platform.name == 'android') {\r\n\tisAndroid = true;\r\n}\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\tleftView:Ti.UI.createImageView( {\r\n image: 'default_app_logo.png'\r\n , width: 30\r\n , height: 30\r\n } )\r\n};\r\n\r\nif (!isAndroid) {\r\n\tatlantaParams.pincolor = Titanium.Map.ANNOTATION_PURPLE;\r\n} else {\r\n\tatlantaParams.pinImage = \"map-pin.png\";\r\n}\r\nvar atlanta = Titanium.Map.createAnnotation(atlantaParams);\r\n\r\nvar regionAtlanta = {latitude:33.74511,longitude:-84.38993,animate:true,latitudeDelta:0.04, longitudeDelta:0.04};\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\tannotations:[atlanta]\r\n});\r\n\r\nif (!isAndroid) {\r\n\tmapview.addAnnotation(atlanta);\r\n}\r\nmapview.selectAnnotation(atlanta);\r\nwin.add(mapview);\r\n\r\nwin.open();\r\n{code}", "attachment": [ { "id": "18984", "filename": "tsDefault.zip", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2011-06-06T14:18:15.000+0000", "size": 5298445, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android: leftView, leftButton will not display a view on map annotaion", "creator": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "134650", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Also check rightButton and rightView", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-06-01T11:59:08.000+0000", "updated": "2011-06-01T11:59:08.000+0000" }, { "id": "140656", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "body": "test app to verify against", "updateAuthor": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2011-06-06T14:18:15.000+0000", "updated": "2011-06-06T14:18:15.000+0000" }, { "id": "140673", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "body": "pull request merged with master", "updateAuthor": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2011-06-06T16:25:36.000+0000", "updated": "2011-06-06T16:25:36.000+0000" }, { "id": "164024", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 1.8.0.v20110819142548\niPhone 4.3.4\niPad2 4.3.2\nMotorola Xoom 3.2\nNexus One 2.2.2", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-25T11:05:42.000+0000", "updated": "2011-08-25T11:05:42.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }