{ "id": "84297", "key": "TIMOB-6895", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "2011-12-29T16:47:05.000+0000", "created": "2011-12-27T16:33:49.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_map", "parity", "qe-testadded" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [ { "id": "14421", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "84435", "key": "TIMOB-6967", "fields": { "summary": "Android - add blob support for Ti.map.annotation.image", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-03-03T23:26:48.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": "for Ti.Map.Annotation you should be able to set the image property to a blob in order to support dynamic annotation creation. Right now it only excepts a URL to an image file.\r\n\r\nComment from customer:\r\n\r\nWe're facing a technical challenge that can actually make or break us at this point. We have a deadline at the end of january to build a mobile app in titanium that can closely mimic our current app for iOS.\r\n\r\nOur problem: We need the ability to add labels with dynamic text to annotations. We would actually love to be able to add views to the annotation view but labels would be enough for our current needs.", "attachment": [ { "id": "24860", "filename": "map_screenshot.jpg", "author": { "name": "asiddiqui@appcelerator.com", "key": "asiddiqui@appcelerator.com", "displayName": "Asim Siddiqui", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-28T14:18:35.000+0000", "size": 42129, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "add blob support for Ti.map.annotation.image", "creator": { "name": "asiddiqui@appcelerator.com", "key": "asiddiqui@appcelerator.com", "displayName": "Asim Siddiqui", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "asiddiqui@appcelerator.com", "key": "asiddiqui@appcelerator.com", "displayName": "Asim Siddiqui", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "177462", "author": { "name": "asiddiqui@appcelerator.com", "key": "asiddiqui@appcelerator.com", "displayName": "Asim Siddiqui", "active": true, "timeZone": "America/Los_Angeles" }, "body": "example screenshot of implementation in native", "updateAuthor": { "name": "asiddiqui@appcelerator.com", "key": "asiddiqui@appcelerator.com", "displayName": "Asim Siddiqui", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-28T14:18:35.000+0000", "updated": "2011-12-28T14:18:35.000+0000" }, { "id": "177483", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Dynamic label support is an unrelated feature that requires its own ticket and escalation path. Please submit a new feature request: this will not be addressed as part of the resolution for this ticket. ", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-28T15:02:18.000+0000", "updated": "2011-12-28T15:02:18.000+0000" }, { "id": "177491", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "h4. TESTING\r\n----\r\n\r\nSample code:\r\n\r\n{code}\r\n\r\nvar path = \"images/send.png\";\r\nvar blob = Ti.UI.createImageView({\r\n\timage:\"images/chat.png\"\r\n}).toBlob();\r\n\r\nvar annPath = Ti.Map.createAnnotation({\r\n\tlatitude: 37.389569, \r\n\tlongitude: -122.050212, \r\n\timage: path,\r\n\tanimate: true, \r\n\tpincolor: Ti.Map.ANNOTATION_GREEN, \r\n});\r\n\r\nvar annBlob = Ti.Map.createAnnotation({\r\n\tlatitude: 37.331689, \r\n\tlongitude: -122.030731, \r\n\timage: blob,\r\n\tanimate: true, \r\n\tpincolor: Ti.Map.ANNOTATION_RED\r\n});\r\n\r\nvar annotations = [annPath, annBlob];\r\n\r\nvar map = Ti.Map.createView({\r\n\tmapType: Titanium.Map.STANDARD_TYPE,\r\n\tregion: { \r\n\t\tlatitude:37.389569, \r\n\t\tlongitude:-122.050212, \r\n\t\tlatitudeDelta:.05, \r\n\t\tlongitudeDelta:.05 \r\n\t},\r\n\tanimate:true,\r\n\tregionFit:true,\r\n\tuserLocation:false,\r\n\tannotations:annotations\r\n});\r\n\r\nvar win = Ti.UI.createWindow({backgroundColor:'white'});\r\nwin.add(map);\r\nwin.open();\r\n{code}\r\n\r\nNote that you will need both {{images/chat.png}} and {{images/send.png}} in your Resources.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-28T15:52:52.000+0000", "updated": "2011-12-28T15:52:52.000+0000" }, { "id": "182491", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing bug. Verified new feature is behaving as expected on:\r\n\r\nSDK build: 1.9.0.v20120207171634\r\nTitanium Studio, build: 1.0.8.201201262211\r\nxcode: 4.2\r\nDevices: iphone 4S Sprint (5.0.1)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-02-08T16:23:04.000+0000", "updated": "2012-02-08T16:23:04.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }