{ "id": "170814", "key": "MOD-2388", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10034", "key": "MOD", "name": "Appcelerator Modules", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2018-01-17T17:57:54.000+0000", "priority": null, "labels": [], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-03-06T18:52:19.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "13700", "name": "Map" } ], "description": "When the user alters the map view the bearing, tilt and zoom region properties are not updated and in fact are undefined.\r\n\r\nThis can be reproduced with the following test case:\r\n{code}\r\nvar Map = require('ti.map');\r\nvar mapview = Map.createView({\r\n\t\t mapType: Map.SATELLITE_TYPE,\r\n\t\t region: {latitude: latitude, longitude: longitude, zoom: 15},\r\n\t\t animate:true,\r\n\t\t regionFit:true,\r\n\t\t userLocation: false\t\t\t \r\n\t\t });\r\n[console.log(\"Original Bearing,\" + mapview.region.bearing);\r\nconsole.log(\"Original Tilt,\" + mapview.region.tilt);\r\nconsole.log(\"Original Zoom,\" + mapview.region.zoom);\r\n// manipulate map to alter zoom, bearing and/or tilt on map view\r\nconsole.log(\"New Bearing,\" + mapview.region.bearing);\r\nconsole.log(\"New Tilt,\" + mapview.region.tilt);\r\nconsole.log(\"New Zoom,\" + mapview.region.zoom);\r\n{code}\r\n\r\nPossible fix is to include the following in the onCameraMoveStarted and onCameraIdle event handlers in src/ti/map/TIUIMapView.java:\r\n{code}\r\nd.put(MapModule.PROPERTY_BEARING, position.bearing);\r\nd.put(MapModule.PROPERTY_ZOOM, position.zoom);\r\nd.put(MapModule.PROPERTY_TILT, position.tilt);\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Android ti.map module does not update bearing, tilt or zoom attributes when region changes", "creator": { "name": "mgarwood", "key": "mgarwood", "displayName": "Michael Garwood", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mgarwood", "key": "mgarwood", "displayName": "Michael Garwood", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [], "maxResults": 1, "total": 1, "startAt": 0 } } }