{ "id": "98176", "key": "TIMOB-10203", "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": [ { "id": "13573", "description": "Sprint 2012-15 API", "name": "Sprint 2012-15 API", "archived": true, "released": true, "releaseDate": "2012-07-30" }, { "id": "14096", "description": "Release 2.1.2", "name": "Release 2.1.2", "archived": true, "released": true, "releaseDate": "2012-08-31" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-08-14T09:09:42.000+0000", "created": "2012-07-26T18:59:59.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "module_map", "parity", "qe-testadded" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-08-14T09:09:55.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h3. The problem\r\nThe map annotations can be represented by an image with the \"image\" property. That image cannot be dynamically changed.\r\n\r\nh3. The test case:\r\n{code}\r\nvar changeButton = Ti.UI.createButton({\r\n\ttitle: 'change colour'\r\n});\r\nvar win = Ti.UI.createWindow({\r\n\trightNavButton: changeButton\r\n});\r\n\r\nvar map = Ti.Map.createView({\r\n\tuserLocation:false,\r\n\tanimate: true,\r\n\tregion: {\r\n\t\tlatitude:12,\r\n\t\tlongitude:12,\r\n\t\tlatitudeDelta:1,\r\n\t\tlongitudeDelta:1\r\n\t}\r\n});\r\n\r\nvar annot = Ti.Map.createAnnotation({\r\n\tlatitude:12,\r\n\tlongitude:12,\r\n\timage: 'blue.png'\r\n});\r\n\r\nmap.addAnnotation(annot);\r\n\r\nwin.add(map);\r\nwin.open({modal: true});\r\n\r\nvar isBlue = true;\r\n\r\nchangeButton.addEventListener('click', function(e){\r\n\tannot.image = isBlue ? 'yellow.png' : 'blue.png';\r\n\tisBlue = !isBlue;\r\n});\r\n{code}\r\n\r\nh3. To reproduce:\r\n1. Copy and paste this code to app.js\r\n2. Run the app and you'll see a blue pin\r\n3. Click the right navigation button\r\n4. The blue pin is still blue - it did not change to yellow.\r\n\r\n(Attached are the two images)", "attachment": [ { "id": "30100", "filename": "blue.png", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-07-26T18:59:59.000+0000", "size": 2457, "mimeType": "image/png" }, { "id": "30101", "filename": "yellow.png", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-07-26T18:59:59.000+0000", "size": 2241, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Map Annotation image cannot be changed dynamically", "creator": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "iOS - Ti SDK 2.2.0.v20120726170116", "comment": { "comments": [ { "id": "210012", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull request ready: [2648|https://github.com/appcelerator/titanium_mobile/pull/2648]", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-07-26T19:30:33.000+0000", "updated": "2012-07-26T19:30:33.000+0000" }, { "id": "210128", "author": { "name": "imarkovi", "key": "imarkovi", "displayName": "Ivan Markovic", "active": true, "timeZone": "Europe/London" }, "body": "Really hoping that this is a quick fix. I have 6 Apps that are waiting behind this issue. They are for Estate Agents here in the UK and as they sell houses, it's all about Maps and locations and showing pin selection is important. Thanks.", "updateAuthor": { "name": "imarkovi", "key": "imarkovi", "displayName": "Ivan Markovic", "active": true, "timeZone": "Europe/London" }, "created": "2012-07-27T03:26:02.000+0000", "updated": "2012-07-27T03:26:02.000+0000" }, { "id": "213741", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Re-opening to edit label", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-10T03:15:50.000+0000", "updated": "2012-08-10T03:15:50.000+0000" }, { "id": "214312", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Reopening to add fixVersion", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-08-14T09:09:19.000+0000", "updated": "2012-08-14T09:09:19.000+0000" }, { "id": "214313", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing after adding fixVersion", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-08-14T09:09:55.000+0000", "updated": "2012-08-14T09:09:55.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }