{ "id": "110092", "key": "TIMOB-12838", "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:58:06.000+0000", "created": "2013-02-24T08:48:48.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "qe-mapv2" ], "versions": [ { "id": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" } ], "issuelinks": [], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:44:12.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 initial region set of the map does not animate, but changing the location via the user location button animates regardless of the animate setting.\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 user location icon in the upper-right of the map\r\n\r\nResult:\r\nMap animates as region changes\r\n\r\nExpected:\r\nNo animation during region change", "attachment": [], "flagged": false, "summary": "Mapsv2 Module: Map with animate property set to false still animates when changing regions via the user location button", "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": "Mac OS X 10.8.2\r\nSDK 3.0.2. GA\r\nMap module v2\r\n", "comment": { "comments": [ { "id": "239601", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "That is correct behavior. The user-location button is supported by native Android, hence our 'animate' property would not affect it. According to the documentation, clicking this button will animate to focus on user location: https://developers.google.com/maps/documentation/android/interactivity#my_location_button.\n\n", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-25T04:46:26.000+0000", "updated": "2013-02-25T04:46:26.000+0000" }, { "id": "239604", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Documentation will be updated to clarify behavior.", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-25T05:54:22.000+0000", "updated": "2013-02-25T05:54:22.000+0000" }, { "id": "239608", "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:19:08.000+0000", "updated": "2013-02-25T06:19:08.000+0000" }, { "id": "239733", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified documentation fix with commit 79ecd69911a94b0193d4dec21fc17ad17bfe8239. Closing.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-25T23:36:22.000+0000", "updated": "2013-02-25T23:36:22.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }