{ "id": "164841", "key": "AC-4655", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "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": "2016-12-07T20:26:21.000+0000", "created": "2016-12-06T11:41:21.000+0000", "labels": [ "android", "map" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-12-20T13:58:25.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": "14550", "name": "Appcelerator Modules", "description": "Please enter tickets related to Modules here." } ], "attachment": [ { "id": "60920", "filename": "Screenshot_20161207-032107.png", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-12-06T21:23:57.000+0000", "size": 211432, "mimeType": "image/png" }, { "id": "60833", "filename": "Screen Shot 2016-12-06 at 12.39.43.png", "author": { "name": "jda", "key": "jda", "displayName": "John Dalsgaard", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-12-06T11:40:42.000+0000", "size": 328807, "mimeType": "image/png" }, { "id": "60834", "filename": "Screen Shot 2016-12-06 at 12.39.55.png", "author": { "name": "jda", "key": "jda", "displayName": "John Dalsgaard", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-12-06T11:40:40.000+0000", "size": 480556, "mimeType": "image/png" }, { "id": "60835", "filename": "zeroTrip.png", "author": { "name": "jda", "key": "jda", "displayName": "John Dalsgaard", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-12-06T11:37:03.000+0000", "size": 4483, "mimeType": "image/png" } ], "flagged": false, "summary": "Custom images not working on ti.map", "creator": { "name": "jda", "key": "jda", "displayName": "John Dalsgaard", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "jda", "key": "jda", "displayName": "John Dalsgaard", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Operating System\r\n Name = Mac OS X\r\n Version = 10.12.1\r\n Architecture = 64bit\r\n # CPUs = 8\r\n Memory = 16.0GB\r\n\r\nNode.js\r\n Node.js Version = 4.5.0\r\n npm Version = 2.15.9\r\n\r\nAppcelerator CLI\r\n Installer = 4.2.8\r\n Core Package = 6.0.0\r\n\r\nTitanium CLI\r\n CLI Version = 5.0.10\r\n node-appc Version = 0.2.31\r\n\r\nTitanium SDKs\r\n 6.0.0.GA\r\n Version = 6.0.0\r\n Install Location = /Users/jda/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA\r\n Platforms = iphone, android, mobileweb\r\n git Hash = 1aa3df8\r\n git Timestamp = 11/13/2016 09:27\r\n node-appc Version = 0.2.39", "comment": { "comments": [ { "id": "402713", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, I am testing your image with ti.map 3.1.0 in SDK 6.0.0. I am not able to reproduce the issue. Your custom image shows in my case. See my screenshot. \r\n{code}\r\noperating System\r\n Name = Mac OS X\r\n Version = 10.11.6\r\n Architecture = 64bit\r\n # CPUs = 4\r\n Memory = 8589934592\r\nNode.js\r\n Node.js Version = 4.2.2\r\n npm Version = 2.14.7\r\nTitanium CLI\r\n CLI Version = 5.0.10\r\nTitanium SDK\r\n SDK Version = 6.0.0.GA\r\n Target Platform = android\r\nti.map 3.1.0\r\n{code}\r\n\r\n", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-12-06T21:25:39.000+0000", "updated": "2016-12-06T21:26:41.000+0000" }, { "id": "402977", "author": { "name": "jda", "key": "jda", "displayName": "John Dalsgaard", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hi Sharif\r\n\r\nOk, I can see that you have not tried the test code I have shown above. According to the documentation the `image` property can be: `image : String/Titanium.Blob`. So I can get it working with a string as well, which is fine. However, I cannot get it to work with my code where i \"put\" the image on top of a dark green, round image view.\r\n\r\nDid you try that? Could I adopt the code to make it work? I would expect my code to return a `Titanium.Blob` when using the `.toImage()` method of the view.", "updateAuthor": { "name": "jda", "key": "jda", "displayName": "John Dalsgaard", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-12-08T11:28:25.000+0000", "updated": "2016-12-08T11:28:25.000+0000" }, { "id": "402980", "author": { "name": "jda", "key": "jda", "displayName": "John Dalsgaard", "active": true, "timeZone": "Europe/Berlin" }, "body": "Ok, I have done quite a lot more testing.... And it seems that the problem is the {color:#205081}borderRadius{color} property of the {color:#205081}Ti.UI.View{color}. So this code will show the image on top of a dark green background:\r\n\r\n{code:java}\r\n var annotationView = Ti.UI.createView({\r\n width:50,\r\n height:50,\r\n opacity:0.8,\r\n backgroundColor:'#2a3b0a', // Darker green\r\n // borderRadius:5\r\n });\r\n \r\n //Add image to the annotation view\r\n var imageView = Ti.UI.createImageView({\r\n width:35,\r\n height:35,\r\n opacity:1,\r\n image: '/images/zeroTrip.png'\r\n });\r\n annotationView.add(imageView);\r\n mapView.addAnnotation(\r\n Map.createAnnotation({\r\n latitude: e.coords.latitude, \r\n longitude: e.coords.longitude,\r\n title:\"Test icon\",\r\n subtitle:\"06-12-2016\",\r\n // image:imageView.toImage()\r\n image:annotationView.toImage()\r\n })\r\n );\r\n\r\n{code}\r\n\r\nAnd if I use the {color:#205081}imageView.toImage(){color} instead of the {color:#205081}annotationView.toImage(){color} then it correctly show the icon in the right size (without any background).\r\n\r\nSo it seems the problem is with the {color:#205081}borderRadius{color} property. Do you want me to create a new JIRA - or could you just re-open this? Or even better provide me with a solution that I have overlooked :-)\r\n\r\nThanks in advance!\r\n\r\n/John\r\n", "updateAuthor": { "name": "jda", "key": "jda", "displayName": "John Dalsgaard", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-12-08T12:07:44.000+0000", "updated": "2016-12-08T12:07:44.000+0000" }, { "id": "402981", "author": { "name": "jda", "key": "jda", "displayName": "John Dalsgaard", "active": true, "timeZone": "Europe/Berlin" }, "body": "... don't know what happened to the formating above??? Apparently, a code block behaves differently when in a comment??? :-/", "updateAuthor": { "name": "jda", "key": "jda", "displayName": "John Dalsgaard", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-12-08T12:08:55.000+0000", "updated": "2016-12-08T12:08:55.000+0000" }, { "id": "402985", "author": { "name": "jda", "key": "jda", "displayName": "John Dalsgaard", "active": true, "timeZone": "Europe/Berlin" }, "body": "Sigh... and now the formating looks Ok. Strange....?", "updateAuthor": { "name": "jda", "key": "jda", "displayName": "John Dalsgaard", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-12-08T13:45:05.000+0000", "updated": "2016-12-08T13:45:05.000+0000" }, { "id": "403574", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~jda] I added the blob feature in [this PR|https://github.com/appcelerator-modules/ti.map/pull/152] but only tested with {{Ti.UI.ImageView}}, not the {{Ti.UI.View}}. I didn't expect to have a difference there. So it may be a difference in the {{toImage}} method between those two. Can you validate that? Then we would need to fix it there instead.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-12-18T22:16:02.000+0000", "updated": "2016-12-18T22:16:02.000+0000" }, { "id": "403588", "author": { "name": "jda", "key": "jda", "displayName": "John Dalsgaard", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hi Hans, I am pretty sure I had to go back to 2.3.7 to see the change in behaviour - but let me test it again...", "updateAuthor": { "name": "jda", "key": "jda", "displayName": "John Dalsgaard", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-12-19T06:35:49.000+0000", "updated": "2016-12-19T06:35:49.000+0000" }, { "id": "403679", "author": { "name": "jda", "key": "jda", "displayName": "John Dalsgaard", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hans, there seems to be no difference between `toBlob()` and `toImage()` - on the `Ti.UI.ImageView`. `toBlob()` is not defined on `Ti.UI.View` - as discussed on TiSlack :-)", "updateAuthor": { "name": "jda", "key": "jda", "displayName": "John Dalsgaard", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-12-20T13:30:01.000+0000", "updated": "2016-12-20T13:30:01.000+0000" }, { "id": "403680", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "That's expected. Did you try the {{customView}} property btw?", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-12-20T13:34:26.000+0000", "updated": "2016-12-20T13:34:26.000+0000" }, { "id": "403681", "author": { "name": "jda", "key": "jda", "displayName": "John Dalsgaard", "active": true, "timeZone": "Europe/Berlin" }, "body": "Just did - with borderradius it also disappears.", "updateAuthor": { "name": "jda", "key": "jda", "displayName": "John Dalsgaard", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-12-20T13:58:25.000+0000", "updated": "2016-12-20T13:58:25.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }