{ "id": "62868", "key": "TIMOB-2236", "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": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13407", "description": "Sprint 2012-11 API", "name": "Sprint 2012-11 API", "archived": true, "released": true, "releaseDate": "2012-06-03" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-07-11T23:19:11.000+0000", "created": "2011-04-15T03:14:26.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api", "module_map", "qe-testadded", "training" ], "versions": [ { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "issuelinks": [ { "id": "17954", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "61300", "key": "TIMOB-668", "fields": { "summary": "Android: MapView Support Dynamic S Annotation changes", "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" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-07-12T11:49:10.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": "Updating the properties (ex: title, subtitle) of an annotation proxy are being ignored.\r\n\r\nh3. Test Case\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar mountainView = Titanium.Map.createAnnotation({\r\n latitude:37.390749,\r\n longitude:-122.081651,\r\n title:\"Appcelerator Headquarters\",\r\n subtitle:'Mountain View, CA',\r\n pincolor:Titanium.Map.ANNOTATION_RED,\r\n animate:true,\r\n leftButton: '../images/appcelerator_small.png',\r\n myid:1 // Custom property to uniquely identify this annotation.\r\n});\r\n\r\nvar mapview = Ti.Map.createView({\r\n\twidth: 500, height: 500,\r\n\tmapType: Titanium.Map.STANDARD_TYPE,\r\n\tregion: {latitude:37.390749, longitude:-122.081651, \r\n\t latitudeDelta:0.01, longitudeDelta:0.01},\r\n\tannotations: [mountainView]\r\n});\r\nwin.add(mapview);\r\n\r\nmapview.addEventListener('click', function(e) {\r\n\talert(\"click! annotation = \" + e.annotation);\r\n\te.annotation.title = \"Found it!\";\r\n e.annotation.subtitle = \"Works!\";\r\n});\r\n\r\nwin.open();\r\n{code}\r\n\r\n1. Try clicking the annotation.\r\n2. An alert should pop up saying \"click\".\r\n3. Check if the title and subtitle got updated.\r\n\r\nExpected: title and subtitle changed\r\nActual: No changes happen, property updates ignored.\r\n", "attachment": [], "flagged": false, "summary": "Android: Can't Update Properties of a Map Annotation", "creator": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "195166", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Updated this ticket with test case since the linked HD ticket is long gone.\r\nThis actually affects all properties on annotation in current master branch.", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-17T09:07:37.000+0000", "updated": "2012-05-17T09:07:37.000+0000" }, { "id": "195971", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Test case:\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: 'black'\r\n});\r\n\r\nvar b = Ti.UI.createButton({\r\n\ttop: 100,\r\n\ttitle: \"change annotation\"\r\n});\r\nb.addEventListener('click', function() {\r\n alert(\"click! annotation.title = \" + mountainView.title);\r\n mountainView.title = \"Found it!\";\r\n mountainView.subtitle = \"Works!\";\r\n});\r\nwin.add(b);\r\n \r\nvar mountainView = Titanium.Map.createAnnotation({\r\n latitude:37.390749,\r\n longitude:-122.081651,\r\n title:\"Appcelerator Headquarters\",\r\n subtitle:'Mountain View, CA',\r\n pincolor:Titanium.Map.ANNOTATION_RED,\r\n animate:true,\r\n leftButton: '../images/appcelerator_small.png',\r\n myid:1 // Custom property to uniquely identify this annotation.\r\n});\r\n \r\nvar mapview = Ti.Map.createView({\r\n width: 500, height: 500,\r\n mapType: Titanium.Map.STANDARD_TYPE,\r\n region: {latitude:37.390749, longitude:-122.081651, \r\n latitudeDelta:0.01, longitudeDelta:0.01},\r\n annotations: [mountainView]\r\n});\r\nwin.add(mapview);\r\n \r\nwin.open();\r\n{code}\r\n\r\nFor functional test:\r\n1. click the pin to see the annotation title and subtitle.\r\n2. click the button.\r\n3. click the pin to check whether annotation title and subtitle are changed.\r\n\r\nExpected: The title and subtitle are changed.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-24T11:54:20.000+0000", "updated": "2012-05-24T11:54:20.000+0000" }, { "id": "195974", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR https://github.com/appcelerator/titanium_mobile/pull/2270", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-24T12:05:09.000+0000", "updated": "2012-05-24T12:05:09.000+0000" }, { "id": "198791", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as Fixed.\r\n\r\nVerified via a modified version of Ping's code (below).\r\n\r\nThe code was changed to fix the layout across screen-sizes, and prevent an emulator crash (TIMOB-9585) for non-existent image resources.\r\n\r\nSDK: 2.1.0.v20120615150353\r\nStudio: 2.1.0.201206141932\r\nOS: Snow Leopard\r\nRuntime: V8\r\nDevices Tested: Android Emulator 2.2, LG Revolution 2.3.6\r\n\r\nTest Case:\r\n\r\n1. Run code:\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'black',\r\n layout:'vertical'\r\n});\r\n \r\nvar b = Ti.UI.createButton({\r\n title: \"change annotation\"\r\n});\r\n\r\nb.addEventListener('click', function() {\r\n alert(\"click! annotation.title = \" + mountainView.title);\r\n mountainView.title = \"Found it!\";\r\n mountainView.subtitle = \"Works!\";\r\n});\r\n\r\nwin.add(b);\r\n \r\nvar mountainView = Titanium.Map.createAnnotation({\r\n latitude:37.390749,\r\n longitude:-122.081651,\r\n title:\"Appcelerator Headquarters\",\r\n subtitle:'Mountain View, CA',\r\n pincolor:Titanium.Map.ANNOTATION_RED,\r\n animate:true,\r\n myid:1\r\n});\r\n \r\nvar mapview = Ti.Map.createView({\r\n mapType: Titanium.Map.STANDARD_TYPE,\r\n region: {latitude:37.390749, longitude:-122.081651, \r\n latitudeDelta:0.01, longitudeDelta:0.01},\r\n annotations: [mountainView]\r\n});\r\n\r\nwin.add(mapview);\r\n \r\nwin.open();\r\n{code}\r\n\r\n2. click the pin to see the annotation title and subtitle.\r\n3. click the update button.\r\n4. click the pin to check whether annotation title and subtitle are changed.\r\n\r\nExpected: The title and subtitle are changed.", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-15T16:19:04.000+0000", "updated": "2012-06-15T16:19:04.000+0000" }, { "id": "202854", "author": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Reopening to update labels.", "updateAuthor": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2012-07-11T23:18:34.000+0000", "updated": "2012-07-11T23:18:34.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }