{ "id": "154513", "key": "MOD-2194", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "17723", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-01-21T11:49:35.000+0000", "created": "2016-01-26T12:53:17.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "ios", "qe-5.4.0", "ti.map" ], "versions": [], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2017-01-21T11:49:42.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": "It would be nice to implement this event trigger on iOS:\r\n{code:javascript}\r\n// regionwillchange to be triggered before the existing regionchanged event in Ti\r\n- (void)mapView:(MKMapView *)mapView regionWillChangeAnimated:(BOOL)animated\r\n{code}\r\nWe do have regionDidChangeAnimated in ti.map for iOS & Android, however regionWillChangeAnimated is just as good to have :)", "attachment": [], "flagged": false, "summary": "Ti.Map: iOS event for regionwillchange", "creator": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "subtasks": [], "reporter": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "environment": null, "closedSprints": [ { "id": 565, "state": "closed", "name": "2016 Sprint 2 SDK", "startDate": "2016-01-16T01:30:40.264Z", "endDate": "2016-01-30T01:30:00.000Z", "completeDate": "2016-01-31T01:27:07.537Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "375286", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Valid feature request, submitted via Github issue.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-01-26T13:03:09.000+0000", "updated": "2016-01-26T13:03:09.000+0000" }, { "id": "375287", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "*PR*: https://github.com/appcelerator-modules/ti.map/pull/146\r\n\r\n*Test*: Use the below code and drag the map view.\r\n*Expected behavior*: Start dragging and the {{regionwillchange}} event gets fired. Stop dragging and the {{regionchanged}} event gets fired.\r\n{code:javascript}\r\nvar window = Ti.UI.createWindow();\r\nvar Map = require(\"ti.map\");\r\nvar mapView = Map.createView();\r\n\r\nmapView.addEventListener(\"regionwillchange\", function(e) {\r\n Ti.API.warn(\"Region will change now!\");\r\n Ti.API.warn(e);\r\n});\r\n\r\nmapView.addEventListener(\"regionchanged\", function(e) {\r\n Ti.API.warn(\"Region did change!\");\r\n Ti.API.warn(e);\r\n});\r\n\r\nwindow.add(mapView);\r\nwindow.open();\r\n{code}", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-01-26T13:10:16.000+0000", "updated": "2016-01-26T13:26:28.000+0000" }, { "id": "390546", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "Verified as fixed, When dragging the map view, \"Region will change no!\" warning is shown in the console. along with an object obtaining the current position. \"Region did change!\" event does not fire until dragging is stopped, which returns an object obtaining the new position.\r\n\r\nTested On:\r\niPhone 6S (9.3.2) Device & iPhone 6 Plus (8.3) Device\r\nTi.Map (2.7.1)\r\nMac OSX El Capitan 10.11.5 \r\nTi SDK: 5.4.0.v20160712013704\r\nAppc Studio: 4.7.0.201607111053\r\nAppc NPM: 4.2.7\t\r\nApp CLI: 5.4.0-31\r\nXcode 7.3\r\nNode v4.4.7\r\n\r\n*Closing ticket.*\r\n", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-07-12T22:57:49.000+0000", "updated": "2016-07-12T22:58:13.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }