{ "id": "110093", "key": "TIMOB-12839", "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": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "15273", "description": "2013 Sprint 05 API", "name": "2013 Sprint 05 API", "archived": true, "released": true, "releaseDate": "2013-03-11" }, { "id": "14815", "description": "2013 Sprint 05", "name": "2013 Sprint 05", "archived": true, "released": true, "releaseDate": "2013-03-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-02-25T21:57:45.000+0000", "created": "2013-02-24T08:53:58.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "qe-mapv2" ], "versions": [], "issuelinks": [], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:43: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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "When a map is created and the animate property set to false, the map will not animate even when the property is subsequently set to true.\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({fullscreen: false, backGroundColor: 'white'});\r\n\r\nvar MapModule = require('ti.map');\r\n\r\n// make the map \r\nvar map = MapModule.createView({\r\n mapType: MapModule.NORMAL_TYPE,\r\n userLocation: true,\r\n animate: false,\r\n region: {latitude: 37.389569, longitude: -122.050212, latitudeDelta: 0.2, longitudeDelta: 0.2},\r\n \r\n});\r\n\r\nvar button5 = Ti.UI.createButton({top: 0, left: 0, title: \"Toggle Animate\"});\r\n\tbutton5.addEventListener('click', function() {\r\n\t\tmap.animate=!map.animate; \t\r\n\t\tTi.API.info(\"=====> Animate set to: \"+map.animate);\r\n\t});\r\n\r\n// set variables for location\r\nvar location =\"mv\";\r\n\r\nvar button6 = Ti.UI.createButton({top: 45, left: 0, title: \"Change Location\"});\r\n\tbutton6.addEventListener('click', function(){\r\n\tif (location===\"noida\") {\r\n\t\tmap.region={latitude: 37.390665, longitude: -122.050210, latitudeDelta: 0.05, longitudeDelta: 0.05 };\r\n\t\tlocation=\"mv\";\r\n\t} else {\r\n\t\tmap.region={latitude: 28.605924, longitude: 77.361817, latitudeDelta: 0.05, longitudeDelta: 0.05 };\r\n\t\tlocation=\"noida\";\r\n\t}\r\n});\r\n\r\n\r\nwin.add(map);\r\nwin.add(button5);\r\nwin.add(button6);\r\n\r\nwin.open();\r\n{code}\r\n\r\nSteps to reproduce:\r\n1) Use sample code above in your pre-configured app with Google map API v2 key\r\n2) Run the app\r\n3) Click the \"change location\" Button - note the lack of animation\r\n4) Click the \"toggle animate\" button -note the property set in log cat\r\n5) Click the \"change location\" Button\r\n\r\nResult:\r\nMap does not animate regardless of property setting\r\n\r\nExpected:\r\nSetting property to true allow map animation during region change", "attachment": [], "flagged": false, "summary": "Mapsv2 Module: Setting map animate property after map creation does not work", "creator": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "239610", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_modules/pull/84", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-25T06:20:03.000+0000", "updated": "2013-02-25T06:20:03.000+0000" }, { "id": "239734", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed with commit 79ecd69911a94b0193d4dec21fc17ad17bfe8239. Animate property can be set dynamically. Closing.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-25T23:38:14.000+0000", "updated": "2013-02-25T23:38:14.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }