{ "id": "134944", "key": "TIMOB-18181", "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": "2014-08-19T13:52:18.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "MapModule", "TCSupport" ], "versions": [ { "id": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" }, { "id": "16676", "description": "Release 3.4.1", "name": "Release 3.4.1", "archived": false, "released": true, "releaseDate": "2014-11-14" } ], "issuelinks": [ { "id": "51372", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "148681", "key": "TIMOB-19011", "fields": { "summary": "Android: MapView is blank if the container view has rounded borders", "status": { "description": "This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.", "name": "Reopened", "id": "4", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "updated": "2016-04-18T06:08:56.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": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "H4. Problem Description\r\nWe have tested this issue with our sample code. When setting a borderRadius property on an annotation customView, no view (as pin) is displayed in Android devices. But if we don’t use borderRadius property it works fine as we expect. It’s a bug.\r\n\r\nh4. Test Case\r\n1. Create a new mobile project (Classic Titanium)\r\n2. Paste this code into app.js:\r\n{code:javascript}\r\nvar MapModule = require('ti.map');\r\n \r\nvar win = Ti.UI.createWindow({fullscreen: false});\r\nvar myView1 = Ti.UI.createView({\r\n width:10,\r\n height:10,\r\n borderRadius:5,\r\n backgroundColor:'red'\r\n});\r\nvar anno = MapModule.createAnnotation({latitude: -33.87365, customView: myView1, longitude: 151.20689, title: \"Test\", subtitle: \"A red circle\"});\r\nvar map = MapModule.createView({\r\n userLocation: true,\r\n mapType: MapModule.NORMAL_TYPE,\r\n animate: true,\r\n annotations: [anno],\r\n region: {latitude: -33.87365, longitude: 151.20689, latitudeDelta: 0.1, longitudeDelta: 0.1 }, //Sydney\r\n top: '30%'\r\n});\r\nwin.add(map);\r\nwin.open();\r\n{code}\r\n3. Run it in a device\r\n\r\nh4. Actual Results \r\nOn iOs no problem, a circle is displayed and is clickable. \r\nOn android, nothing is displayed on the map but you can still click the same zone and the infoWindow appears.\r\n", "attachment": [], "flagged": false, "summary": "Android: When setting a border radius on an annotation customView, no view (as pin) is displayed", "creator": { "name": "vdegroote", "key": "vdegroote", "displayName": "Vincent Degroote", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "vdegroote", "key": "vdegroote", "displayName": "Vincent Degroote", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Android\r\nTitanium SDK 3.3.0.GA\r\nTi.map 2.1.4", "comment": { "comments": [ { "id": "344890", "author": { "name": "netoramalho", "key": "netoramalho", "displayName": "Netto Ramalho", "active": true, "timeZone": "America/Sao_Paulo" }, "body": "I'm having the same problem", "updateAuthor": { "name": "netoramalho", "key": "netoramalho", "displayName": "Netto Ramalho", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2015-03-03T01:09:31.000+0000", "updated": "2015-03-03T01:09:31.000+0000" }, { "id": "357920", "author": { "name": "kopiro", "key": "kopiro", "displayName": "Flavio De Stefano", "active": true, "timeZone": "Europe/Rome" }, "body": "Com'on guys!", "updateAuthor": { "name": "kopiro", "key": "kopiro", "displayName": "Flavio De Stefano", "active": true, "timeZone": "Europe/Rome" }, "created": "2015-07-17T15:57:33.000+0000", "updated": "2015-07-17T15:57:33.000+0000" }, { "id": "382880", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "I did some testing on this issue:\r\n!http://migaweb.de/map_ui.jpg!\r\n\r\nLeft side: with borderRadius (or just borderColor) -> red outline shows that there is an invisible annotation\r\nRight side: without any borderColor/borderRadius\r\n\r\nThe box is there but invisible. \r\n\r\nThen I've added \r\n{code}\r\nFile tempFolder = new File(TiFileHelper.getInstance().getDataDirectory(false), \"temp\");\r\ntempFolder.mkdirs();\r\nFile tempfilej = new File(tempFolder, \"test.png\");\r\n\r\ntry {\r\n Log.i(\"I\", \"file \" + tempfilej.getAbsolutePath());\r\n FileOutputStream imageOut = new FileOutputStream(tempfilej);\r\n image.compress(Bitmap.CompressFormat.PNG, 85, imageOut);\r\n imageOut.flush();\r\n imageOut.close();\r\n} catch (Exception e){\r\n Log.w(\"MAP\",\"error\");\r\n}\r\n{code}\r\nto _private void handleCustomView(Object obj)_ to save the actual image. Without border it's the red square. With the border it's just a transparent box.\r\nSo I guess the problem has to do with TiBorderWrapperView.java since the map is adding an invisible box. So toImage() on a view with a border property produces a transparent image\r\n", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-04-16T10:12:07.000+0000", "updated": "2016-04-16T10:12:07.000+0000" }, { "id": "382934", "author": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "updateAuthor": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-04-18T06:08:19.000+0000", "updated": "2016-04-18T06:08:19.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }