{ "id": "171325", "key": "AC-5660", "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": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2018-04-11T21:27:35.000+0000", "created": "2018-03-14T17:54:42.000+0000", "labels": [ "android", "annotation", "ti.map" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2018-04-11T21:27:35.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14550", "name": "Appcelerator Modules", "description": "Please enter tickets related to Modules here." } ], "description": "If annotation is on the map then changing image attribute will not change image itself.\r\nSimilar problem to TIMOB-20620 with color attribute, which was fixed in one of the Sprints.\r\n\r\n{code}\r\nvar window = Ti.UI.createWindow({\r\n backgroundColor : 'white'\r\n}); \r\n\r\nwindow.open(); \r\n\r\nvar mapModule = require('ti.map'); \r\n\r\nvar map = mapModule.createView({\r\n bottom : 50\r\n}); \r\n\r\nwindow.add(map); \r\n\r\nvar annotation = mapModule.createAnnotation({\r\n latitude : 1,\r\n longitude : 1,\r\n image: '/images/baloon_green.png'\r\n}); \r\n\r\nmap.addAnnotation(annotation); \r\n\r\nvar view = Ti.UI.createView({\r\n backgroundColor: 'red',\r\n bottom: 0,\r\n height: 50\r\n});\r\n\r\nwindow.add(view);\r\n\r\nview.addEventListener('click', function() {\r\n\r\n view.backgroundColor = 'green';\r\n annotation.image = '/images/baloon_red.png';\t\t//Change annotation image here\r\n annotation.setImage('/images/baloon_red.png'); //Change annotation image here\r\n\r\n\r\n});\r\n\r\n{code}", "attachment": [ { "id": "64969", "filename": "1.png", "author": { "name": "CREATIVE KAIZEN", "key": "creative kaizen", "displayName": "CREATIVE KAIZEN", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-03-14T17:53:27.000+0000", "size": 308548, "mimeType": "image/png" }, { "id": "64968", "filename": "2.png", "author": { "name": "CREATIVE KAIZEN", "key": "creative kaizen", "displayName": "CREATIVE KAIZEN", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-03-14T17:53:27.000+0000", "size": 307230, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Annotation.image can't be changed if annotation added to mapView.", "creator": { "name": "CREATIVE KAIZEN", "key": "creative kaizen", "displayName": "CREATIVE KAIZEN", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "CREATIVE KAIZEN", "key": "creative kaizen", "displayName": "CREATIVE KAIZEN", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "MacOS,\r\nAndroid,\r\nGenymotion Simulator\r\n", "comment": { "comments": [ { "id": "435603", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "You probably just need to change [this line|https://github.com/appcelerator-modules/ti.map/blob/master/android/src/ti/map/AnnotationProxy.java#L401] to\r\n{code:java}\r\n} else if (name.equals(TiC.PROPERTY_PINCOLOR) || name.equals(TiC.PROPERTY_IMAGE)) {\r\n{code}\r\nand likely do the same for other properties that should be changeable, like {{customView}}.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-03-14T19:26:03.000+0000", "updated": "2018-03-14T19:26:36.000+0000" }, { "id": "435613", "author": { "name": "CREATIVE KAIZEN", "key": "creative kaizen", "displayName": "CREATIVE KAIZEN", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Hans: I guess so. But I believe that as in TIMOB-20620 with pincolor property it should be fixed with image property as well. Why would we have setImage method if it doesn't work?", "updateAuthor": { "name": "CREATIVE KAIZEN", "key": "creative kaizen", "displayName": "CREATIVE KAIZEN", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-03-14T21:33:14.000+0000", "updated": "2018-03-14T21:33:14.000+0000" }, { "id": "435618", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "It is a computer setter.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-03-14T22:04:51.000+0000", "updated": "2018-03-14T22:04:51.000+0000" }, { "id": "436673", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello [~CREATIVE KAIZEN], Whats the status of your issue? Are you steen having the issue? did you follow Hans's guide?", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2018-04-09T21:17:04.000+0000", "updated": "2018-04-09T21:17:04.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }