{ "id": "89566", "key": "TIMOB-8553", "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": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2017-07-25T22:42:25.000+0000", "created": "2012-04-05T12:30:57.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-07-25T22:42:25.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": "Steps to reproduce:\r\n\r\n1. Create a default mobile app and copy/paste the following code\r\n{code}\r\n\r\nvar _window = Ti.UI.createWindow({\r\n backgroundColor:'blue'\r\n});\r\n\r\nvar mountainView1 = Titanium.Map.createAnnotation({\r\n\t\t\tlatitude : 37.390749,\r\n\t\t\tlongitude : -122.081651,\r\n\t\t\t// title:\"Appcelerator Headquarters\",\r\n\t\t\tsubtitle : 'Mountain View, CA',\r\n\t\t\timage : 'map_pin.png',\r\n\t\t\tanimate : true,\r\n\t\t\tmyid : 1 // Custom property to uniquely identify this annotation.\r\n\t\t});\r\n\r\n\t\tvar mountainView2 = Titanium.Map.createAnnotation({\r\n\t\t\tlatitude : 37.380749,\r\n\t\t\tlongitude : -122.071651,\r\n\t\t\t// title:\"Appcelerator Headquarters\",\r\n\t\t\tsubtitle : 'Mountain View, CA',\r\n\t\t\timage : 'appicon.png',\r\n\t\t\tanimate : true,\r\n\t\t\tmyid : 1 // Custom property to uniquely identify this annotation.\r\n\t\t});\r\n\r\n\t\tvar mountainView3 = Titanium.Map.createAnnotation({\r\n\t\t\tlatitude : 37.370749,\r\n\t\t\tlongitude : -122.061651,\r\n\t\t\t// title:\"Appcelerator Headquarters\",\r\n\t\t\tsubtitle : 'Mountain View, CA',\r\n\t\t\timage : 'appicon.png',\r\n\t\t\tanimate : true,\r\n\t\t\tmyid : 1 // Custom property to uniquely identify this annotation.\r\n\t\t});\r\n\r\n\t\tvar mountainView4 = Titanium.Map.createAnnotation({\r\n\t\t\tlatitude : 37.360749,\r\n\t\t\tlongitude : -122.051651,\r\n\t\t\ttitle : \"Appcelerator Headquarters\",\r\n\t\t\tsubtitle : 'Mountain View, CA',\r\n\t\t\timage : 'appicon.png',\r\n\t\t\tanimate : true,\r\n\t\t\tmyid : 1 // Custom property to uniquely identify this annotation.\r\n\t\t});\r\n\r\n\t\tvar arr = [mountainView1, mountainView2, mountainView3, mountainView4];\r\n\r\n\t\tvar mapview = Titanium.Map.createView({\r\n\t\t\tmapType : Titanium.Map.STANDARD_TYPE,\r\n\t\t\tregion : {\r\n\t\t\t\tlatitude : 37.375749,\r\n\t\t\t\tlongitude : -122.066651,\r\n\t\t\t\tlatitudeDelta : 0.01,\r\n\t\t\t\tlongitudeDelta : 0.01\r\n\t\t\t},\r\n\t\t\tanimate : true,\r\n\t\t\tregionFit : true,\r\n\t\t\tuserLocation : true,\r\n\t\t\tannotations : arr\r\n\t\t});\r\n\r\n\t\tvar btnUpdate1 = Titanium.UI.createButton({\r\n\t\t\ttitle : 'Update anno 1',\r\n\t\t\ttop : 1,\r\n\t\t\tleft : 0,\r\n\t\t\twidth : 80,\r\n\t\t\theight : 50\r\n\t\t});\r\n\t\tbtnUpdate1.addEventListener('click', function(e) {\r\n\t\t\tupdateAnnotations(0);\r\n\t\t});\r\n\r\n\t\tvar btnUpdate2 = Titanium.UI.createButton({\r\n\t\t\ttitle : 'Update anno 2',\r\n\t\t\ttop : 1,\r\n\t\t\tleft : 80,\r\n\t\t\twidth : 80,\r\n\t\t\theight : 50\r\n\t\t});\r\n\t\tbtnUpdate2.addEventListener('click', function(e) {\r\n\t\t\tupdateAnnotations(1);\r\n\t\t});\r\n\r\n\t\tvar btnUpdate3 = Titanium.UI.createButton({\r\n\t\t\ttitle : 'Update anno 3',\r\n\t\t\ttop : 1,\r\n\t\t\tleft : 160,\r\n\t\t\twidth : 80,\r\n\t\t\theight : 50\r\n\t\t});\r\n\t\tbtnUpdate3.addEventListener('click', function(e) {\r\n\t\t\tupdateAnnotations(2);\r\n\t\t});\r\n\r\n\t\tvar btnUpdate4 = Titanium.UI.createButton({\r\n\t\t\ttitle : 'Update anno 4',\r\n\t\t\ttop : 1,\r\n\t\t\tleft : 240,\r\n\t\t\twidth : 80,\r\n\t\t\theight : 50\r\n\t\t});\r\n\t\tbtnUpdate4.addEventListener('click', function(e) {\r\n\t\t\tupdateAnnotations(3);\r\n\t\t});\r\n\r\n\t\tmapview.add(btnUpdate1);\r\n\t\tmapview.add(btnUpdate2);\r\n\t\tmapview.add(btnUpdate3);\r\n\t\tmapview.add(btnUpdate4);\r\n\t\t_window.add(mapview);\r\n _window.open();\r\n \r\n{code}\r\n\r\n2. Add the attached images to your resources folder\r\n3. Run the app\r\n\r\nActual result:\r\nOnly the last button is shown in the top left of the map view\r\n\r\nExpected result: \r\nThe buttons are added sequentially across the top of the map view\r\n*Note* There wasn't anything error or waning output to the log", "attachment": [ { "id": "26848", "filename": "appicon.png", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-05T12:30:57.000+0000", "size": 4275, "mimeType": "image/png" }, { "id": "26849", "filename": "map_pin.png", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-05T12:30:57.000+0000", "size": 1853, "mimeType": "image/png" } ], "flagged": false, "summary": "Android : Map - v8 - Adding subviews (buttons) to a map view is ignoring the top and left properties that were set upon creation of the view", "creator": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested with Titanium Studio 2.0.0.201203291340\r\nTitanium Mobile SDK 2.0.0.v20120330103228\r\nOSX Lion 10.7.3\r\nEmulator 2.2, Nexus S OS 4.0.4", "comment": { "comments": [ { "id": "424704", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing due to inactivity. If this issue still exists, please raise a new ticket.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-07-25T22:42:25.000+0000", "updated": "2017-07-25T22:42:25.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }