{ "id": "163453", "key": "AC-4509", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2016-09-27T13:13:49.000+0000", "created": "2016-09-26T18:57:39.000+0000", "labels": [ "android", "ios", "ti.map" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-09-27T13:13:49.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14550", "name": "Appcelerator Modules", "description": "Please enter tickets related to Modules here." }, { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Starting from SDK 5.4.0 the Ti.Map module doesn't longer accept delta values on the region with negative values.\r\n\r\nFor example:\r\n\r\n{{var map = Alloy.Globals.Map.createView({\r\n\t\t\t\twidth: Ti.UI.FILL,\r\n\t\t\t\theight: 200,\r\n\t\t\t\tmapType: Alloy.Globals.Map.NORMAL_TYPE,\r\n\t\t\t\tuserLocation: false,\t\r\n\t\t\t region: {\r\n \"latitude\": 41.3135986328125,\r\n \"longitude\": -81.67234420776367,\r\n \"latitudeDelta\": 0.1386444091796875, c\r\n \"longitudeDelta\": -0.009083557128906253\r\n}\r\n\t\t\t});}}\r\n\r\nOn Android it ignores the region completely, on iOS it shows the following error:\r\n\r\n{{{color:#d04437}Invalid Region {color}}}", "attachment": [], "flagged": false, "summary": "Ti.Map error with negative delta values on the region", "creator": { "name": "ulizama", "key": "ulizama", "displayName": "Uriel Lizama", "active": true, "timeZone": "America/Mexico_City" }, "subtasks": [], "reporter": { "name": "ulizama", "key": "ulizama", "displayName": "Uriel Lizama", "active": true, "timeZone": "America/Mexico_City" }, "environment": null, "comment": { "comments": [ { "id": "397310", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, You have to know that as the documentation states the smaller the delta value, the closer the zoom on your map. That means 0.01 will zoom in more as compared to 0.1 for delta. In short, the amount of north-to-south or east-to-west distance displayed on the map, measured in decimal degrees is delta values. The distance can't be negative values. Hope this clears your confutions. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-09-26T20:01:13.000+0000", "updated": "2016-09-26T20:01:13.000+0000" }, { "id": "397317", "author": { "name": "ulizama", "key": "ulizama", "displayName": "Uriel Lizama", "active": true, "timeZone": "America/Mexico_City" }, "body": "Thanks for the tip. It is indeed that, I think at some point there was some change and the module doesn't longer abs() the numbers that are passed. After changing the code so it does that before it sends the region it works correctly.", "updateAuthor": { "name": "ulizama", "key": "ulizama", "displayName": "Uriel Lizama", "active": true, "timeZone": "America/Mexico_City" }, "created": "2016-09-26T20:50:46.000+0000", "updated": "2016-09-26T20:50:46.000+0000" }, { "id": "397374", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Thanks for the feedback! Delta-values cannot be negative, see [this thread|http://stackoverflow.com/questions/5417156/could-a-mapview-region-span-longitudedelta-or-mapview-region-span-latitudedelta] for example.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-09-27T13:13:49.000+0000", "updated": "2016-09-27T13:13:49.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }