{ "id": "105042", "key": "TIMOB-11780", "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": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-02-11T21:45:49.000+0000", "created": "2012-11-15T13:53:35.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-03-12T09:52:28.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": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "h1. Problem Description\r\nWhen updating the region of the map in MobileWeb (setRegion or setLocation), the zoom does not change accordingly to the delta, if animate is set to true.\r\n\r\nh1. Steps to reproduce\r\nUSe the following code to reproduce the problem: clicking on the buttons the region changes, but the zoom doesn't.\r\n\r\n{code}\r\nvar defaultLat = 49.809597;\r\nvar defaultLng = -97.132756;\r\n\r\nvar win = Titanium.UI.createWindow({\r\n backgroundColor : 'black'\r\n});\r\n\r\nvar mapView = Titanium.Map.createView({\r\n mapType: Titanium.Map.STANDARD_TYPE,\r\n animate:true,\r\n animated:true,\r\n regionFit:true,\r\n userLocation:true,\r\n region : {'latitude':defaultLat,'longitude':defaultLng,animate:true,'latitudeDelta':0.01,'longitudeDelta':0.01}\r\n});\r\n\r\nwin.add(mapView);\r\n\r\nvar buttonView = Ti.UI.createView({\r\n layout : 'horizontal',\r\n width : Ti.UI.SIZE,\r\n top: 0\r\n})\r\n\r\nvar button = Ti.UI.createButton({\r\n title:'setLocation'\r\n});\r\n\r\nbutton.addEventListener('click', function() {\r\n mapView.setLocation({'latitude':defaultLat,'longitude':defaultLng,animate:true,'latitudeDelta':0.1,'longitudeDelta':0.1});\r\n});\r\n\r\nbuttonView.add(button);\r\n\r\nvar button2 = Ti.UI.createButton({\r\n title:'setRegion'\r\n});\r\n\r\nbutton2.addEventListener('click', function() {\r\n mapView.setRegion({'latitude':defaultLat,'longitude':defaultLng,animate:true,'latitudeDelta':0.1,'longitudeDelta':0.1});\r\n});\r\n\r\nbuttonView.add(button2);\r\n\r\nwin.add(buttonView);\r\n\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "MobileWeb: latitudeDelta or longitudeDelta does not update properly when animation is set", "creator": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "environment": "SDK 2.0.2 - 3.0.0\r\nMobileWeb\r\nChrome\r\nFirefox", "comment": { "comments": [ { "id": "292471", "author": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "body": "This issue can't be reproduced with TISDK 3.2 or higher. Therefore, marking it as resolved.", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-02-11T21:45:49.000+0000", "updated": "2014-02-11T21:45:49.000+0000" }, { "id": "296756", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Verified the fix, hence closing the issue.\r\nEnvironment used:\r\nSDK: 3.2.3.v20140311115447\r\nCLI version : 3.2.1\r\nOS : MAC OSX 10.9\r\nAlloy: 1.3.1\r\nACS: 1.0.14\r\nnpm:1.3.2\r\nAppcelerator Studio, build: 3.2.2.201403061827\r\ntitanium-code-processor: 1.1.0\r\nXCode : 5.1 ", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-03-12T09:52:28.000+0000", "updated": "2014-03-12T09:52:28.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }