{ "id": "115494", "key": "TIMOB-14115", "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": null, "resolutiondate": null, "created": "2013-06-05T01:09:29.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:03:28.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h2. Problem description\r\nWhen clicking on the v2 Map annotation, the latitudeDelta and longitudeDelta values for the source's region are never updated.\r\n\r\nh2. Steps to reproduce\r\nUse the following code to reproduce the issue. The latitudeDelta and longitudeDelta values never change even if you click after you have zoomed in/out.\r\n\r\n{code}\r\nvar MapModule = require('ti.map');\r\n \r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: \"white\" \r\n});\r\n\r\nvar pin = MapModule.createAnnotation({\r\n latitude: -33.87365,\r\n longitude: 151.20689\r\n});\r\n\r\nvar map = MapModule.createView({\r\n mapType: MapModule.NORMAL_TYPE,\r\n region: {latitude: -33.87365, longitude: 151.20689, latitudeDelta: 0.1, longitudeDelta: 0.1 }, //Sydney\r\n top: 0,\r\n left: 0,\r\n height: 500,\r\n annotations: [pin]\r\n});\r\n\r\nmap.addEventListener('click', function(evt) {\r\n Ti.API.info(\"latitudeDelta: \" + evt.source.region.latitudeDelta);\r\n Ti.API.info(\"longitudeDelta: \" + evt.source.region.longitudeDelta);\r\n});\r\n\r\nwin.add(map);\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Maps v2 Module - latitudeDelta and longitudeDelta are not updated in the region object", "creator": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Android 4.2\r\nSDK 3.1.0", "comment": { "comments": [ { "id": "259022", "author": { "name": "jfbomber@yahoo.com", "key": "jfbomber@yahoo.com", "displayName": "Jason Foster", "active": true, "timeZone": "America/Denver" }, "body": "It is not updated on the regionchanged event as well.\r\n", "updateAuthor": { "name": "jfbomber@yahoo.com", "key": "jfbomber@yahoo.com", "displayName": "Jason Foster", "active": true, "timeZone": "America/Denver" }, "created": "2013-06-21T18:28:04.000+0000", "updated": "2013-06-21T18:28:04.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }