{ "id": "164948", "key": "TIMOB-24216", "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": [], "resolution": null, "resolutiondate": null, "created": "2016-12-09T11:16:12.000+0000", "priority": null, "labels": [ "android", "annotation", "engSchedule", "image", "map" ], "versions": [], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-09-24T15:48:28.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [], "attachment": [ { "id": "61040", "filename": "Screen 1.png", "author": { "name": "jda", "key": "jda", "displayName": "John Dalsgaard", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-12-09T10:51:17.000+0000", "size": 328442, "mimeType": "image/png" }, { "id": "61039", "filename": "Screen 2.png", "author": { "name": "jda", "key": "jda", "displayName": "John Dalsgaard", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-12-09T10:59:20.000+0000", "size": 327268, "mimeType": "image/png" }, { "id": "61038", "filename": "Screen 3.png", "author": { "name": "jda", "key": "jda", "displayName": "John Dalsgaard", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-12-09T10:59:25.000+0000", "size": 332242, "mimeType": "image/png" }, { "id": "61037", "filename": "Screen 4.png", "author": { "name": "jda", "key": "jda", "displayName": "John Dalsgaard", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-12-09T10:59:30.000+0000", "size": 330678, "mimeType": "image/png" }, { "id": "61036", "filename": "Screen 5.png", "author": { "name": "jda", "key": "jda", "displayName": "John Dalsgaard", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-12-09T11:04:02.000+0000", "size": 328953, "mimeType": "image/png" }, { "id": "61035", "filename": "Screen 6.png", "author": { "name": "jda", "key": "jda", "displayName": "John Dalsgaard", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-12-09T11:06:36.000+0000", "size": 329599, "mimeType": "image/png" }, { "id": "61034", "filename": "Screen 7.png", "author": { "name": "jda", "key": "jda", "displayName": "John Dalsgaard", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-12-09T11:15:28.000+0000", "size": 327726, "mimeType": "image/png" } ], "flagged": false, "summary": "Icons on ti.map (Android) not fully working", "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": "Johns-MacBook-Pro-3:map jda$ appc use 6.0.0\r\n6.0.0 is now your active version\r\nJohns-MacBook-Pro-3:map jda$ appc info\r\nAppcelerator Command-Line Interface, version 6.0.0\r\nCopyright (c) 2014-2016, Appcelerator, Inc. All Rights Reserved.\r\n\r\nOperating 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\r\n 5.5.1.GA\r\n Version = 5.5.1\r\n Install Location = /Users/jda/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA\r\n Platforms = android, mobileweb, iphone\r\n git Hash = b18727f\r\n git Timestamp = 09/27/16 05:38\r\n node-appc Version = 0.2.36\r\n 5.5.0.GA\r\n Version = 5.5.0\r\n Install Location = /Users/jda/Library/Application Support/Titanium/mobilesdk/osx/5.5.0.GA\r\n Platforms = android, mobileweb, iphone\r\n git Hash = 44a2e3f\r\n git Timestamp = 09/13/16 12:38\r\n node-appc Version = 0.2.36\r\n \r\nMac OS X\r\n Command Line Tools = installed\r\n\r\nIntelĀ® Hardware Accelerated Execution Manager (HAXM)\r\n Installed = yes\r\n Memory Limit = 4 GB\r\n\r\nJava Development Kit\r\n Version = 1.8.0_102\r\n Java Home = /Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/Contents/Home", "comment": { "comments": [ { "id": "403119", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, I have tested your issue. Here are my observations\r\n\r\nh4. Test 1: Using imageView blob, I can see the annotation. Which you said you can't. Here is my code:\r\n{code}\r\nvar annotationView = Ti.UI.createView({\r\n\r\n width : 50,\r\n\r\n height : 50,\r\n\r\n opacity : 0.8,\r\n\r\n borderRadius : 25,\r\n \r\n //backgroundColor : '#2a3b0a',\r\n\r\n});\r\n\r\nvar imageView = Ti.UI.createImageView({\r\n\r\n width : 35,\r\n\r\n height : 35,\r\n\r\n opacity : 1,\r\n\r\n image : '/images/zeroTrip.png'\r\n\r\n});\r\n\r\nannotationView.add(imageView);\r\n\r\nvar anno = Map.createAnnotation({\r\n latitude : \"38.7334226\",\r\n longitude : \"-77.7719012\",\r\n title : \"Location Title\",\r\n subtitle : \"Location Subtitle\",\r\n image : imageView.toImage(),\r\n //image : '/images/zeroTrip.png',\r\n //image : annotationView.toImage()\r\n});\r\n\r\nvar map = Map.createView({\r\n width : Ti.UI.FILL,\r\n height : 250,\r\n mapType : Map.NORMAL_TYPE,\r\n regionFit : true,\r\n userLocation : true,\r\n annotations : [anno],\r\n\r\n region : {\r\n latitude : \"38.7334226\",\r\n latitudeDelta : 0.05,\r\n longitude : \"-77.7719012\",\r\n longitudeDelta : 0.05\r\n }\r\n});\r\n//map.add(annotationView);\r\n{code}\r\nSide note: Adding annotationView to map cause the annotation disappear.\r\n\r\nh4. Test 2: Using image reference (url), I see the annotation image slightly smaller than test 1. Changed code section:\r\n{code}\r\nvar anno = Map.createAnnotation({\r\n latitude : \"38.7334226\",\r\n longitude : \"-77.7719012\",\r\n title : \"Location Title\",\r\n subtitle : \"Location Subtitle\",\r\n //image : imageView.toImage(),\r\n image : '/images/zeroTrip.png',\r\n //image : annotationView.toImage()\r\n});\r\n{code}\r\nh4. Test 3: Rerun test 1(using image blob). Weirdly the annotainon image does not show for me. Which your case you said it does. Changed code section:\r\n{code}\r\nvar anno = Map.createAnnotation({\r\n latitude : \"38.7334226\",\r\n longitude : \"-77.7719012\",\r\n title : \"Location Title\",\r\n subtitle : \"Location Subtitle\",\r\n image : imageView.toImage(),\r\n //image : '/images/zeroTrip.png'\r\n});\r\n{code}\r\nSide note: Adding annotationView to map cause the annotation appear.\r\n\r\nh4. Test 4: Using image blob with background, I can reproduce the behavior you described. Changed code section:\r\n{code}\r\nvar imageView = Ti.UI.createImageView({\r\n\r\n width : 35,\r\n\r\n height : 35,\r\n\r\n opacity : 1,\r\n \r\n backgroundColor : '#2a3b0a',\r\n\r\n image : '/images/zeroTrip.png'\r\n\r\n});\r\n{code}\r\n\r\nh4. Test 5: Using image blob on top of a view with background. I can reproduce the behavior you described. Changed code section:\r\n{code}\r\nvar annotationView = Ti.UI.createView({\r\n\r\n width : 50,\r\n\r\n height : 50,\r\n\r\n opacity : 0.8,\r\n\r\n //borderRadius : 25,\r\n\r\n backgroundColor : '#2a3b0a',\r\n\r\n});\r\n\r\nvar imageView = Ti.UI.createImageView({\r\n\r\n width : 35,\r\n\r\n height : 35,\r\n\r\n opacity : 1,\r\n\r\n image : '/images/zeroTrip.png'\r\n\r\n});\r\n\r\nannotationView.add(imageView);\r\n\r\nvar anno = Map.createAnnotation({\r\n latitude : \"38.7334226\",\r\n longitude : \"-77.7719012\",\r\n title : \"Location Title\",\r\n subtitle : \"Location Subtitle\",\r\n //image : imageView.toImage(),\r\n //image : '/images/zeroTrip.png',\r\n image : annotationView.toImage()\r\n});\r\n{code}\r\nSide note: using borderRadius in view causes the image to disappear also the background (Test 6).\r\n\r\nThanks.\r\n\r\n\r\n\r\n\r\n\r\n\r\n", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-12-10T08:30:12.000+0000", "updated": "2016-12-10T08:47:15.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }