{ "id": "110550", "key": "TIMOB-12938", "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": "2013-03-04T04:08:41.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "google", "map", "module", "v2" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:04:27.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": "*Problem*\r\nThe file path format for annotation image is not consistent with the standard which should be: '/images/image.png'.\r\nRather in order to get the image the path currently needed to be provided is: 'images/image.png'\r\n\r\n{code:javascript}\r\nMapModule.createAnnotation({\r\n latitude : 32.943868\r\n longitude : -96.836114,\r\n image : imagePath,\r\n title : 'My Home',\r\n subtitle : 'Nice place',\r\n leftButton : leftImage, \r\n });\r\n{code}\r\n\r\nthe imagePath is not taken if it is under any folder, doesn't matter it is under folder \"android\" or not, ( I usually put android specific images under android,), but it works partially when I put the image directly under resource folder, so in a word,\r\n'home.png' works\r\n'/img/home.png' will not work,\r\nif I don't have the leading slash in the path, having images under folder works, so the imagePath needs to be 'img/abc/home.png', then it can work. However, this is not consistent with current standard.\r\n", "attachment": [], "flagged": false, "summary": "Android: Google map v2 module, annotation image path inconsistent with standard", "creator": { "name": "jason919", "key": "jason919", "displayName": "jason hu", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Android ", "comment": { "comments": [ { "id": "240525", "author": { "name": "jason919", "key": "jason919", "displayName": "jason hu", "active": true, "timeZone": "America/Chicago" }, "body": " I just found out if I don't have the leading slash in the path, having images under folder works, so the imagePath needs to be 'img/abc/home.png', then it can work. However, this is not consistent with current standard.", "updateAuthor": { "name": "jason919", "key": "jason919", "displayName": "jason hu", "active": true, "timeZone": "America/Chicago" }, "created": "2013-03-04T15:28:26.000+0000", "updated": "2013-03-04T15:28:26.000+0000" }, { "id": "240603", "author": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "body": "removed \"leftButton seems to be not supported any more, it is not even in API doc\", only one issue per ticket please.", "updateAuthor": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-04T20:52:19.000+0000", "updated": "2013-03-04T20:52:19.000+0000" }, { "id": "254888", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "What Ti SDK version are you using?", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-30T17:49:39.000+0000", "updated": "2013-05-30T17:49:39.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }