{ "id": "88254", "key": "TIMOB-8114", "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": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-03-28T10:01:07.000+0000", "created": "2012-03-20T11:28:15.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" } ], "issuelinks": [], "assignee": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T23:21:05.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": "Ran the attached app.js file to reproduce the issue.\r\n\r\nThe regionChanged event listener is giving the same latitudeDelta and longitudeDelta values even when the mapview is zoomed in or out.\r\n\r\n{noformat}\r\n\r\nvar win = Titanium.UI.createWindow();\r\nwin.open();\r\nvar annotation = Titanium.Map.createAnnotation({\r\n latitude:42.334537,\r\n longitude:-71.170101,\r\n title:\"Boston College\",\r\n subtitle:'Newton Campus, Chestnut Hill, MA',\r\n animate:true,\r\n leftButton:'../images/atlanta.jpg'\r\n});\r\n\r\nvar boston = {latitude:42.334537,longitude:-71.170101,latitudeDelta:0.010, longitudeDelta:0.018};\r\n\r\n//\r\n// CREATE MAP VIEW\r\n//\r\nvar mapview = Titanium.Map.createView({\r\n mapType: Titanium.Map.STANDARD_TYPE,\r\n region: boston,\r\n animate:true,\r\n regionFit:true,\r\n userLocation:true,\r\n annotations:[annotation]\r\n});\r\n\r\nwin.add(mapview);\r\n\r\n// map view click event listener\r\nmapview.addEventListener('regionChanged',function(evt)\r\n{\r\n Ti.API.info('map region changed '+evt.source.region.latitudeDelta, evt.source.region.latitude);\r\n});\r\n\r\n{noformat}\r\n\r\nThe API info statements print out the same values on the console.\r\n\r\n*EXPECTED BEHAVIOR*\r\n\r\nThe delta values should be updated on every zoom activity.\r\n", "attachment": [], "flagged": false, "summary": "iOS: Mapview regionChanged event does not fire", "creator": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "environment": "Titanium SDK: 1.8.2\r\nPlatform OS: iOS 5.0\r\n", "comment": { "comments": [ { "id": "189005", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is a invalid bug, for each zoom level the regionChanged updates the following values latitude, longitude, latitudeDelta, longitudeDelta and NOT source.region.* - they would remain the same for regionChanged. So the values that you are looking for are evt.latitude, evt.longitude, evt.latitudeDelta, evt.longitudeDelta. I have checked in our SDK and these values are being updated properly. For further details please refer to our [Documentation|http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.Map.View.regionChanged-event.html].\r\n\r\n", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-28T09:59:56.000+0000", "updated": "2012-03-28T10:00:47.000+0000" }, { "id": "410994", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T23:21:05.000+0000", "updated": "2017-03-09T23:21:05.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }