{ "id": "125487", "key": "AC-1999", "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": "2014-02-09T06:40:45.000+0000", "created": "2014-01-28T02:03:59.000+0000", "labels": [ "annotation", "anyDensity", "density", "image", "mapView" ], "versions": [], "issuelinks": [ { "id": "35362", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "126760", "key": "TIMOB-16502", "fields": { "summary": " Android : Particular images in annotations do not render on the mapView - reopen", "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" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:40:56.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "We have images associated with annotations (replacing the default pins) and these are not showing up when we display an Android V2 mapView using the 3.20GA SDK. These icons did show up for annotations using the 3.13GA SDK. AnyDensity is set to True.\r\n\r\nWe create the annotations using:\r\n{code}\r\n var TiMap = require(\"ti.map\");\r\n\r\n var annot = TiMap.createAnnotation({\r\n latitude : latitude,\r\n longitude : longitude,\r\n title : name,\r\n subtitle : subtitle,\r\n image : '/images/big_red_dot.png'\r\n });\r\n{code}\r\nIcons for different screens are at /Resources/android/images/[density]/big_red_dot.png\r\n\r\nwhere [density] is res-port-hdpi, etc, etc.\r\nThere is also a big_red_dot.png file in /Resources/images/\r\n\r\nThe annotations are pushed into an \"spots\" array and then createMapView is called. We know that the \"spots\" are in the \"spotRegion\" of the map.\r\n\r\n{code}\r\n var mapView = TiMap.createView({\r\n left : 0,\r\n top : 0,\r\n width : Ti.UI.FILL,\r\n height : Ti.UI.FILL,\r\n mapType : TiMap.NORMAL_TYPE,\r\n region : spotRegion,\r\n animate : false,\r\n regionFit : true,\r\n userLocation : true,\r\n annotations : spots,\r\n });\r\n{code}\r\n\r\nThe result is that the correct mapView is shown but with no annotation images, but the annotations are there and touching the map brings up the annotations.\r\nSee screenshot [http://postimg.org/image/9mjntx69l/]", "attachment": [], "flagged": false, "summary": "Particular images in annotations do not render on the mapView", "creator": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "MacOS, 3.20GA SDK", "comment": { "comments": [ { "id": "290062", "author": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We've done more testing and found that particular images trigger this behavior.\nThis is an example of one of the images.\nIt's a 36x36 24-bit PNG with transparency created in Photoshop.\n\n[http://s30.postimg.org/43s6x7w99/bigreddot.png]", "updateAuthor": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-28T20:31:25.000+0000", "updated": "2014-01-28T20:31:25.000+0000" }, { "id": "290115", "author": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "body": "So on an xhdpi or xxhdpi Android device, if the annotation image is single color or very simple, and around 36x36 with a transparent background, it appears that the map rendering code \"optimizes it out\" - because the annotations still pop up on the map when you touch the map even though the annotation images aren't there.\n\nI'm also changing the title because it is density dependent with respect to happening on xhdpi and xxhdpi devices - haven't tested on other lower density devices", "updateAuthor": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-28T23:39:54.000+0000", "updated": "2014-01-28T23:39:54.000+0000" }, { "id": "290176", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thanks for reporting and narrowing down this issue. Please provide a complete and runnable test case along with images so that we can reproduce the exact same issue you are running into. It would be best to zip up and attach the test case folder so that we can set it up exactly the way you have.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-29T06:11:21.000+0000", "updated": "2014-01-29T06:11:21.000+0000" }, { "id": "292084", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Resolving this issue as we cannot reproduce this issue and the reporter has not followed up on the requested information.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-09T06:40:45.000+0000", "updated": "2014-02-09T06:40:45.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }