{ "id": "103071", "key": "TIMOB-11359", "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": "14161", "description": "Release 3.0.1", "name": "Release 3.0.1", "archived": true, "released": true, "releaseDate": "2013-02-19" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14621", "description": "2012 Sprint 23 API", "name": "2012 Sprint 23 API", "archived": true, "released": true, "releaseDate": "2012-11-19" }, { "id": "14623", "description": "2012 Sprint 23 JS", "name": "2012 Sprint 23", "archived": true, "released": true, "releaseDate": "2012-11-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-11-16T21:32:30.000+0000", "created": "2012-10-10T21:01:58.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "ios", "module_map", "qe-ios100112", "qe-testadded" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:43:50.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": "Description:\r\nWhile testing module Map I noticed, that a default map view has been returned after a map location had been changed and the device rotated.\r\n NOT a regression, occurs on 2.1.3\r\n\r\nTest steps:\r\n1. Run this code:\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\n \r\n//\r\n// CREATE ANNOTATIONS\r\n//\r\nvar atlantaParams = {\r\n latitude:33.74511,\r\n longitude:-84.38993,\r\n title:\"Atlanta, GA\",\r\n subtitle:'Atlanta Braves Stadium\\nfoo',\r\n animate:true,\r\n rightButton: Titanium.UI.iPhone.SystemButton.DISCLOSURE,\r\n myid:3\r\n };\r\n \r\n \r\natlantaParams.pincolor = Titanium.Map.ANNOTATION_PURPLE;\r\nvar atlanta = Titanium.Map.createAnnotation(atlantaParams);\r\n \r\n//\r\n// CREATE MAP VIEW\r\n//\r\nvar mapview = Titanium.Map.createView({\r\n mapType: Titanium.Map.STANDARD_TYPE,\r\n region:{latitude:33.74511, longitude:-84.38993, latitudeDelta:0.5, longitudeDelta:0.5},\r\n animate:true,\r\n regionFit:true,\r\n userLocation:true\r\n});\r\n \r\n \r\n \r\nmapview.addAnnotation(atlanta);\r\nwin.add(mapview);\r\n \r\n \r\nvar bt = Ti.UI.createButton({\r\n title: \"Select Annotation\",\r\n width: 130,\r\n height: 40,\r\n left: 0,\r\n top: 0\r\n});\r\n \r\n \r\nbt.addEventListener(\"click\",function(e){\r\n mapview.region = {latitude:33.74511, longitude:-84.38993, latitudeDelta:0.5, longitudeDelta:0.5};\r\n mapview.selectAnnotation(atlanta);\r\n});\r\n \r\nwin.add(bt);\r\nwin.open();\r\n{code}\r\n2. Move the map to a different location.\r\n3. Rotate the device.\r\n\r\nExpected result:\r\nThe map should display that different location.\r\n\r\nActual result:\r\nThe map returns a default map view (Atlanta, GA)", "attachment": [], "flagged": false, "summary": "iOS: Map - Device rotation returns default map view.", "creator": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested on:\r\nTitanium Studio, build: 3.0.0.201210090117\r\nTitanium SDK, build: 3.0.0.v20121009111437\r\nDevices:\r\niPad3 ios 5.1.1\r\n\r\n", "comment": { "comments": [ { "id": "226328", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending https://github.com/appcelerator/titanium_mobile/pull/3381", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-11-06T18:20:31.000+0000", "updated": "2012-11-06T18:20:31.000+0000" }, { "id": "232567", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Backport PR to 3_0_X https://github.com/appcelerator/titanium_mobile/pull/3640", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-12-27T17:35:12.000+0000", "updated": "2012-12-27T17:35:12.000+0000" }, { "id": "232941", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The map displays expected location on rotating device.\r\nVerified with following\r\nTitanium SDK: 3.1.0.v20130102102603\r\nTitanium SDK:3.0.1.v20121228113204\r\nTitanium  Studio:3.0.1.201212181159\r\nDevice:\r\niPad3\tiOS 5.1\r\niPad4\tiOs 6.0", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-03T07:00:17.000+0000", "updated": "2013-01-03T07:00:17.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }