{ "id": "155870", "key": "TIMOB-20620", "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": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-04-13T05:51:01.000+0000", "created": "2016-03-21T21:23:04.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "annotation" ], "versions": [], "issuelinks": [], "assignee": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "updated": "2017-03-31T22:04:43.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "I am not sure if it is a bug or it needs improvement.\r\n\r\nIf annotation is created than changing it's pincolor by\r\n{code}\r\nannotation.pincolor = mapModule.ANNOTATION_AZURE;\r\n//or\r\nannotation.setPincolor = mapModule.ANNOTATION_AZURE;\r\n{code}\r\nwon't change annotation color unless it is removed and added again to mapView.", "attachment": [ { "id": "58686", "filename": "annotation1.png", "author": { "name": "CREATIVE KAIZEN", "key": "creative kaizen", "displayName": "CREATIVE KAIZEN", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-03-22T19:26:59.000+0000", "size": 355711, "mimeType": "image/png" }, { "id": "58685", "filename": "annotation2.png", "author": { "name": "CREATIVE KAIZEN", "key": "creative kaizen", "displayName": "CREATIVE KAIZEN", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-03-22T19:26:58.000+0000", "size": 353788, "mimeType": "image/png" }, { "id": "58889", "filename": "app.js", "author": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-04-11T07:46:23.000+0000", "size": 883, "mimeType": "application/x-javascript" } ], "flagged": false, "summary": "Android: Annotation.pincolor 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", "closedSprints": [ { "id": 618, "state": "closed", "name": "2016 Sprint 08 SDK", "startDate": "2016-04-09T00:30:18.262Z", "endDate": "2016-04-23T00:30:00.000Z", "completeDate": "2016-04-25T02:38:28.511Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "380424", "author": { "name": "CREATIVE KAIZEN", "key": "creative kaizen", "displayName": "CREATIVE KAIZEN", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hello,\r\nIn you sample code you change color from AZURE to AZURE so there is no change of the color. Try to change to different color.\r\nThe code you wrote works. Probably it is caused by the thing that during the execution of these lines annotation is not yet visible. Please try this code:\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 pincolor : mapModule.ANNOTATION_AZURE\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 view.backgroundColor = 'green';\r\n annotation.setPincolor(mapModule.ANNOTATION_RED); //Change annotation color here\r\n annotation.pincolor = mapModule.ANNOTATION_RED; //Change annotation color here*/\r\n});\r\n{code}\r\n\r\nI am attaching screenshots as a proof - view changes its color but annotation doesn't.\r\n", "updateAuthor": { "name": "CREATIVE KAIZEN", "key": "creative kaizen", "displayName": "CREATIVE KAIZEN", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-03-22T19:27:56.000+0000", "updated": "2016-03-22T19:30:35.000+0000" }, { "id": "382289", "author": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "body": "PR: https://github.com/appcelerator-modules/ti.map/pull/156\r\nUse [^app.js] for testing.", "updateAuthor": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-04-11T07:45:13.000+0000", "updated": "2016-04-11T07:46:47.000+0000" }, { "id": "382449", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "PR approved and merged.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-04-12T07:27:25.000+0000", "updated": "2016-04-12T07:27:25.000+0000" }, { "id": "382665", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "[~ssombhatla] could you add a release binary to the Github page as well?", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-04-14T01:40:19.000+0000", "updated": "2016-04-14T01:40:19.000+0000" }, { "id": "416562", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed, if there are any problems, please file a new ticket.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-31T22:04:43.000+0000", "updated": "2017-03-31T22:04:43.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }