{ "id": "136482", "key": "TIMOB-17749", "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": "16586", "description": "Release 3.4.2", "name": "Release 3.4.2", "archived": false, "released": true, "releaseDate": "2017-03-11" }, { "id": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" }, { "id": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-10-14T15:20:53.000+0000", "created": "2014-09-12T07:14:09.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "TCSupportTriage", "camera", "ios", "map", "module_map", "pan", "qe-manualtest", "supportTeam", "zoom" ], "versions": [ { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "issuelinks": [], "assignee": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-11-26T05:02:47.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": "h4. Problem Description\r\nAfter a map view is loaded, and a camera is applied to the map one cannot pan or zoom on the map (touch is lost). The view get's \"locked\" in position. Removing the camera by applying a pitch of zero, does not restore it.\r\n\r\nThe sample code below shows this problem. To test; Load the code. Pan and zoom the map. Then tap the \"3D Camera ON\" button to apply the camera. Now when you try to pan or zoom, is not possible. Tap the button again to set pitch to 0 and restore the map. Pan and zoom still don't work.\r\n\r\nI should note that the click event is also lost as well if you have any annotations on the map.\r\n\r\nh4. Steps to reproduce\r\n1. CReate a new mobile project (classic titanium)\r\n2. Add this to app.js\r\napp.js:\r\n{code}\r\nTitanium.UI.setBackgroundColor('#fff');\r\n\r\nvar camOn = false;\r\n\r\nvar Map = require('ti.map');\r\n\r\nvar win = Titanium.UI.createWindow();\r\n\r\nvar map = Map.createView({\r\n\t mapType: Map.NORMAL_TYPE\r\n\t,animate: false\r\n\t,regionFit: true\r\n\t,pitchEnabled: true\r\n\t,showsBuildings: true\r\n\t,showsPointsOfInterest: true\r\n\t,rotateEnabled: true\r\n\t,region: {\r\n\t\tlatitude: 51.507222, \r\n\t\tlongitude: -0.1275,\r\n\t\tlatitudeDelta: 0.01, \r\n\t\tlongitudeDelta: 0.01\r\n\t }\r\n\t,userLocation: false\r\n});\r\n\r\nvar bCam = Ti.UI.createButton({\r\n\ttitle: '3D Camera ON',\r\n\tcolor: '#000',\r\n\tbackgroundColor: '#cdcdcd',\r\n\twidth: 150,\r\n\tbottom: 30\r\n});\r\n\r\nbCam.addEventListener('click', function(e) {\r\n\t\r\n\tvar cam = Map.createCamera({\r\n\t altitude: 2000, \r\n\t centerCoordinate: {\r\n\t latitude: 51.507222,\r\n\t longitude: -0.1275\r\n\t }, \r\n\t heading: 0,\r\n\t pitch: (camOn ? 0 : 60)\r\n\t});\r\n\t\r\n\tmap.animateCamera({\r\n\t\tcamera: cam,\r\n\t\tcurve: Ti.UI.ANIMATION_CURVE_EASE_IN,\r\n\t\tduration: 500\r\n\t});\r\n\t\r\n\tcamOn = !camOn;\r\n\t\r\n\tbCam.title = (camOn ? '3D Camera OFF' : '3D Camera ON');\r\n\t\r\n});\r\n\r\n\r\nwin.add(map);\r\nwin.add(bCam);\r\nwin.open();\r\n{code}\r\n3. Run it in a device", "attachment": [], "flagged": false, "summary": "iOS: Map cannot pan / zoom after applying camera", "creator": { "name": "bcproductions", "key": "bcproductions", "displayName": "Ed", "active": true, "timeZone": "America/Havana" }, "subtasks": [], "reporter": { "name": "bcproductions", "key": "bcproductions", "displayName": "Ed", "active": true, "timeZone": "America/Havana" }, "environment": "Ti SDK 3.3.0GA, iOS 7.1.x\r\nTitanium SDK: 3.3.0.GA\r\nTitanium CLI: 3.4.0,\r\niOS SDK:7.1.2\r\nOS X Version: 10.9.4,\r\nTitanium Studio: 3.4.0", "closedSprints": [ { "id": 230, "state": "closed", "name": "2014 Sprint 21 SDK", "startDate": "2014-10-13T22:00:57.270Z", "endDate": "2014-10-25T00:00:00.000Z", "completeDate": "2014-10-27T16:33:06.432Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "327890", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is also broken with ti.map v2.0.4 so not a regression with the current v2.0.5", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-10-13T17:42:43.000+0000", "updated": "2014-10-13T17:42:43.000+0000" }, { "id": "327919", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR master: https://github.com/appcelerator-modules/ti.map/pull/64\r\nPR stable: https://github.com/appcelerator-modules/ti.map/pull/65\r\n\r\nNeed PRs for titanium_mobile after these are merged", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-10-13T20:07:49.000+0000", "updated": "2014-10-13T20:07:49.000+0000" }, { "id": "327961", "author": { "name": "mdadu", "key": "mdadu", "displayName": "Muhammad Dadu", "active": false, "timeZone": "Europe/London" }, "body": "Tested on iOS 8 and iOS 7.1 simulators. Map can pan / zoom after applying camera. Tested using the example code and the code in this ticket.", "updateAuthor": { "name": "mdadu", "key": "mdadu", "displayName": "Muhammad Dadu", "active": false, "timeZone": "Europe/London" }, "created": "2014-10-13T23:00:03.000+0000", "updated": "2014-10-13T23:00:03.000+0000" }, { "id": "328034", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "titanium_mobile \r\nPR master: https://github.com/appcelerator/titanium_mobile/pull/6214\r\nPR 3_4_X: https://github.com/appcelerator/titanium_mobile/pull/6215\r\n\r\ntitanium_releases\r\nupdated master: https://github.com/appcelerator/titanium_releases/commit/70500f9d2292d539f40b915cafbc267774575361\r\nupdated 3_4_X: https://github.com/appcelerator/titanium_releases/commit/1d768577b64804590914061cb140ee2bada29c0c", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-10-14T15:15:00.000+0000", "updated": "2014-10-14T15:29:23.000+0000" }, { "id": "333821", "author": { "name": "kvelummaylum", "key": "kvelummaylum", "displayName": "Kajenthiran Velummaylum", "active": true, "timeZone": "Asia/Shanghai" }, "body": "Verified the fix. Closing the ticket\r\nTest Environment:\r\nTitanium SDK: 3.5.0.v20141125154115\r\nAppc-Studio: 3.4.1 GA\r\nTitanium CLI: 3.4.1 GA\r\nAlloy : 1.5.1 GA\r\nXcode : 6.1\r\nOS: OSX 10.10.1\r\nDevice : iPhone 6plus (iOS 8.1)", "updateAuthor": { "name": "kvelummaylum", "key": "kvelummaylum", "displayName": "Kajenthiran Velummaylum", "active": true, "timeZone": "Asia/Shanghai" }, "created": "2014-11-26T05:02:47.000+0000", "updated": "2014-11-26T05:02:47.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }