{ "id": "174534", "key": "MOD-2559", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": [ { "id": "21069", "name": "Release 9.2.0", "archived": false, "released": false } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2020-05-20T07:42:23.000+0000", "created": "2019-12-11T18:29:48.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "2020-Q3", "android", "map", "module", "parity", "zoom" ], "versions": [], "issuelinks": [], "assignee": { "name": "aajain", "key": "aajain", "displayName": "Aakash Jain", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-07-27T08:48:49.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": "13700", "name": "Map" } ], "description": "h5.Summary\r\nThe iOS version of \"ti.map\" module's {{View}} type has a {{zoom()}} method that is missing on Android. We should add this {{View.zoom()}} method for parity.\r\n\r\nThe module's docs do not indicate that the {{zoom()}} function is Android only. This suggests that it's cross-platform, which is wrong.\r\n\r\nh5.Work-Around\r\nCurrently, the only method that supports zooming on Android and iOS is {{View.setLocation()}} via its \"latitudeDelta\" and \"longitudeDelta\" settings.\r\n\r\nh5.Steps to reproduce:\r\n1. Use the code below in your app.js:\r\n{code}\r\nvar MapModule = require('ti.map');\r\n\r\nvar win = Ti.UI.createWindow({fullscreen: false, layout: \"vertical\"});\r\n \r\nvar map = MapModule.createView({\r\n enableZoomControls: false,\r\n mapType: MapModule.NORMAL_TYPE,\r\n animate: true,\r\n});\r\n \r\nvar b4 = Ti.UI.createButton({\r\n title: \"Zoom in/out\"\r\n});\r\nvar zoomLevel = 1;\r\nb4.addEventListener('click', function(){\r\n map.zoom(zoomLevel);\r\n zoomLevel = -zoomLevel;\r\n});\r\n\r\nwin.add(b4);\r\nwin.add(map);\r\nwin.open();\r\n{code}\r\n2. Setup your app for using android map module.\r\n3. Build for device/emulator.\r\n4. After the app launches tap on {{ZOOM IN/OUT}}.\r\n", "attachment": [ { "id": "67406", "filename": "MOD-2559_log.txt", "author": { "name": "srai", "key": "srai", "displayName": "Saumya Rai", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-05-20T07:41:57.000+0000", "size": 73010, "mimeType": "text/plain" }, { "id": "67407", "filename": "MOD-2559_Screenshot_1.png", "author": { "name": "srai", "key": "srai", "displayName": "Saumya Rai", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-05-20T07:42:02.000+0000", "size": 459049, "mimeType": "image/png" }, { "id": "67408", "filename": "MOD-2559_Screenshot_2.png", "author": { "name": "srai", "key": "srai", "displayName": "Saumya Rai", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-05-20T07:42:04.000+0000", "size": 605353, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Add \"ti.map\" View.zoom() method", "creator": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Studio Ver: 6.0.0.201911251516\r\nSDK Ver: 9.0.0.v20191210172911, 8.3.0.GA\r\nOS Ver: 10.14.5\r\nXcode Ver: Xcode 11.2.1\r\nAppc NPM: 5.0.0-2\r\nAppc CLI: 7.1.2\r\nDaemon Ver: 1.1.3\r\nTi CLI Ver: 5.2.2\r\nAlloy Ver: 1.14.4\r\nNode Ver: 12.13.1\r\nNPM Ver: 6.12.1\r\nJava Ver: 11.0.1\r\nAndroid Devices: ⇨ google Pixel (Android 10)\r\nMap Module: 4.5.0, 4.4.0, 4.3.1", "closedSprints": [ { "id": 1192, "state": "closed", "name": "2020 Sprint 8", "startDate": "2020-04-10T18:08:36.092Z", "endDate": "2020-04-24T18:08:00.000Z", "completeDate": "2020-04-24T16:23:30.466Z", "originBoardId": 114 }, { "id": 1194, "state": "closed", "name": "2020 Sprint 9", "startDate": "2020-04-24T17:09:51.572Z", "endDate": "2020-05-08T17:09:00.000Z", "completeDate": "2020-05-08T15:40:07.869Z", "originBoardId": 114 }, { "id": 1195, "state": "closed", "name": "2020 Sprint 10", "startDate": "2020-05-08T16:37:58.282Z", "endDate": "2020-05-22T16:37:00.000Z", "completeDate": "2020-05-21T15:26:11.089Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "454725", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is a parity issue. iOS has a {{zoom()}} method, but Android does not. The map module's docs are wrong. The only way to zoom on both platforms is via the {{setLocation()}} method.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-03-17T23:57:59.000+0000", "updated": "2020-03-18T00:06:46.000+0000" }, { "id": "455051", "author": { "name": "aajain", "key": "aajain", "displayName": "Aakash Jain", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator-modules/ti.map/pull/291", "updateAuthor": { "name": "aajain", "key": "aajain", "displayName": "Aakash Jain", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-04-09T14:23:43.000+0000", "updated": "2020-04-09T14:23:43.000+0000" }, { "id": "455167", "author": { "name": "aajain", "key": "aajain", "displayName": "Aakash Jain", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~jquick]: can you kindly review this PR: https://github.com/appcelerator-modules/ti.map/pull/291", "updateAuthor": { "name": "aajain", "key": "aajain", "displayName": "Aakash Jain", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-04-17T08:25:52.000+0000", "updated": "2020-04-17T08:25:52.000+0000" }, { "id": "455520", "author": { "name": "srai", "key": "srai", "displayName": "Saumya Rai", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified on below environment:\r\n*Mac OS X*= 10.15\r\n*Node.js Version* = 12.16.0\r\n*CLI Version* = 5.2.2\r\n*SDK Version* = 9.1.0.v20200514121733\r\n*ti.map version* = 5.0.2 (Android)\r\n*Emulator*: Nexus6_API27 (SDK API: 29)\r\n\r\nWorking fine so closing this ticket. (Attached log and screenshots for reference)\r\nAnd merging above PR to master", "updateAuthor": { "name": "srai", "key": "srai", "displayName": "Saumya Rai", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-05-20T07:41:06.000+0000", "updated": "2020-05-20T07:41:29.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }