{ "id": "146841", "key": "AC-1546", "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": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-06-29T17:14:38.000+0000", "created": "2015-04-12T12:26:06.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "updated": "2016-03-08T07:38:00.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": "14551", "name": "Studio", "description": "Please enter tickets related to Titanium Studio here." } ], "attachment": [ { "id": "55120", "filename": "app.js", "author": { "name": "vgerris", "key": "vgerris", "displayName": "Vincent Gerris", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-04-26T12:30:22.000+0000", "size": 2621, "mimeType": "text/javascript" }, { "id": "55121", "filename": "ApplicationTabGroup.js", "author": { "name": "vgerris", "key": "vgerris", "displayName": "Vincent Gerris", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-04-26T12:29:26.000+0000", "size": 1069, "mimeType": "text/javascript" } ], "flagged": false, "summary": "Region bug iOS and Android zoom, longitude, latitude", "creator": { "name": "vgerris", "key": "vgerris", "displayName": "Vincent Gerris", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "vgerris", "key": "vgerris", "displayName": "Vincent Gerris", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Mac OS X, Titanium Studio, build: 3.4.1.201410281727\r\n", "comment": { "comments": [ { "id": "349964", "author": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "It's not a bug [zoom property|http://docs.appcelerator.com/titanium/latest/#!/api/MapRegionTypev2-property-zoom] is only for android and if we use zoom property we should not use latitudeDelta, longitudeDelta property. And on iOS latitudeDelta, longitudeDelta property works as expected.\r\n\r\n*Testing Environment:*\r\nTitanium SDK: 3.5.0.GA, 3.5.1.GA, 3.5.2, 4.0.0.Beta2 \r\nTitanium CLI: 3.4.2, \r\niOS version: 5s(v8.1), \r\nAndroid Version: 4.2.2,\r\nOS X Version: 10.9.5, \r\nAppcelerator Studio: 3.4.2\r\n\r\n*Test Code:*\r\n{code:title=app.js}\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\n\r\nvar win2 = Titanium.UI.createWindow({\r\n\ttitle : 'Map',\r\n\tnavBarHidden : true\r\n});\r\n\r\nvar tab2 = Titanium.UI.createTab({\r\n\ticon : 'KS_nav_ui.png',\r\n\ttitle : 'Map',\r\n\twindow : win2\r\n});\r\n\r\nvar Map = require('ti.map');\r\n\r\nvar mapview = Map.createView({\r\n\tmapType : Map.NORMAL_TYPE,\r\n\tregion : {\r\n\t\tlatitude : 59.3302967,\r\n\t\tlongitude : 18.0582976,\r\n\t\tzoom : 10,\r\n\t\t//latitudeDelta : 0.10,\r\n\t\t//longitudeDelta : 0.10\r\n\t},\r\n\tanimate : true,\r\n\tregionFit : true,\r\n\tuserLocation : true,\r\n});\r\nwin2.add(mapview);\r\n\r\nmapview.addEventListener('click', function(evt) {\r\n\tTi.API.info(\"Annotation \" + evt.title + \" clicked, id: \" + evt.annotation.myid);\r\n});\r\nmapview.addEventListener('regionchanged', function(e) {\r\n\tTi.API.info(\"Zoom value\" + mapview.getRegion().zoom);\r\n\tTi.API.info(\"zoom event: \" + mapview.getRegion().longitude + \" latitudeDelta: \" + mapview.region.latitudeDelta + \"rect x : \" + mapview.rect.x + \" longitudeDelta: \" + mapview.getRegion().longitudeDelta);\r\n});\r\n\r\ntabGroup.addTab(tab2);\r\n\r\ntabGroup.open();\r\n\r\n\r\n{code}\r\n\r\nThanks.", "updateAuthor": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "created": "2015-04-17T16:41:47.000+0000", "updated": "2015-04-24T06:24:36.000+0000" }, { "id": "350011", "author": { "name": "vgerris", "key": "vgerris", "displayName": "Vincent Gerris", "active": true, "timeZone": "Europe/Berlin" }, "body": "Is there any workaround for this that anyone knows of?\r\nAny idea if this will be fixed on the short term?\r\nI basically have no decent way to scale my application now, any help is appreciated.\r\nI prefer to keep using Titanium Studio if possible, but this is a real show stopper at the moment.\r\nThank you", "updateAuthor": { "name": "vgerris", "key": "vgerris", "displayName": "Vincent Gerris", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-04-18T14:14:14.000+0000", "updated": "2015-04-18T14:14:14.000+0000" }, { "id": "350034", "author": { "name": "vgerris", "key": "vgerris", "displayName": "Vincent Gerris", "active": true, "timeZone": "Europe/Berlin" }, "body": "here is another report with a clue:\r\nhttps://developer.appcelerator.com/question/176937/android-maps-v2-getregion-function-undefined\r\nMight have been introduced after SDK 3.2.3, hopefully that will lead to help finding the cause.", "updateAuthor": { "name": "vgerris", "key": "vgerris", "displayName": "Vincent Gerris", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-04-18T17:00:02.000+0000", "updated": "2015-04-18T17:00:02.000+0000" }, { "id": "350048", "author": { "name": "vgerris", "key": "vgerris", "displayName": "Vincent Gerris", "active": true, "timeZone": "Europe/Berlin" }, "body": "and even a pull request:\r\nhttps://github.com/appcelerator-modules/ti.map/pull/86\r\n", "updateAuthor": { "name": "vgerris", "key": "vgerris", "displayName": "Vincent Gerris", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-04-19T00:23:59.000+0000", "updated": "2015-04-19T00:23:59.000+0000" }, { "id": "350633", "author": { "name": "vgerris", "key": "vgerris", "displayName": "Vincent Gerris", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hi,\r\nThank you for responding. \r\nI read the documentation. Have you tried zooming in en out of a map on Android? \r\nThe following things do NOT work for me:\r\nzoom property on Android (without using long and lat delta)\r\nlongitudeDelta and latitudeDelta on Android\r\nYes those last work on iOS but what is the point if they don't on Android. \r\nPlease also look at the posted links, they are more reports and pull reqeuest with fixes. \r\nIf the longitudeDelta and latitudeDelta work for you on Android after changing zoom level, can you please post the example code?\r\nKind regards", "updateAuthor": { "name": "vgerris", "key": "vgerris", "displayName": "Vincent Gerris", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-04-24T06:37:05.000+0000", "updated": "2015-04-24T06:37:53.000+0000" }, { "id": "350635", "author": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "body": "[~vgerris] Can you please create a test case demonstrating the issues? with the code in [~morahman] comment we can not replicate.\r\niOS and Android are different operating systems, not all that works on iOS is going to work on android, if this is something that is possible in native Android, then please create another jira ticket with a feature request for this.\r\nThe link to the PR that you are referring is to add the ability to add polygons to a map view, I don't see how that is going to affect this ticket\r\n\r\nRegards", "updateAuthor": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "created": "2015-04-24T06:44:24.000+0000", "updated": "2015-04-24T06:44:24.000+0000" }, { "id": "350637", "author": { "name": "vgerris", "key": "vgerris", "displayName": "Vincent Gerris", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hi Radamantis,\r\n\r\nHave you looked at the posted links? They contain examples too. Can you please check those?\r\nI will post a more complete snippet when I can.\r\nGiven the multiple reports I found and linked, I think there is an issue.\r\nIt is not a feauture request, simply multiple issues with the mapregion on Android.\r\nIf you look at the pull request link you should have a fix in there that can be used.\r\n\r\nKind regards,\r\nVincent", "updateAuthor": { "name": "vgerris", "key": "vgerris", "displayName": "Vincent Gerris", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-04-24T07:01:10.000+0000", "updated": "2015-04-24T07:01:10.000+0000" }, { "id": "350642", "author": { "name": "vgerris", "key": "vgerris", "displayName": "Vincent Gerris", "active": true, "timeZone": "Europe/Berlin" }, "body": "https://github.com/Sitata/ti.map/commit/5259b85845fe113560242f308899b4fe606b31e7 that is the fix I think.\r\nI tried to compile the whole thing but got stuck, so I could not test it. Also noticed a module uses Sdk 4.0 which I have not installed.\r\nThanks for the help!", "updateAuthor": { "name": "vgerris", "key": "vgerris", "displayName": "Vincent Gerris", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-04-24T07:11:50.000+0000", "updated": "2015-04-24T07:11:50.000+0000" }, { "id": "350811", "author": { "name": "vgerris", "key": "vgerris", "displayName": "Vincent Gerris", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hi,\r\n\r\nI have created an app like this:\r\nWays to reproduce:\r\n - new app - classic, tabbed application\r\n - name testapp, testapp.id, sdk 3.5.1GA (4.0.0 gives error: The requested SDK version does not have an assigned commands-handler)\r\n - add the ti.map module from tiapp.xml\r\n - add this snippet to the tiapp.xml file with a valid API key:\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n - replace default project files with the attached ones\r\n On iOS the latitudeDelta and longitudeDelta work.\r\n On Android they keep showing 0.1\r\n When zoom is used, it gives zoom value once and never again (10).\r\n I reproduced this on 2 phones.\r\n \r\n I don't know if there is a fix for running on Java 8 only, I still use version 6 because of :\r\n http://stackoverflow.com/questions/24589932/mac-os-jdk1-7-and-1-8-does-not-contain-the-jni-createjavavm-symbol\r\n \r\n perhaps that is related?\r\n If there is anything else you need please let me know.\r\n \r\n Kind regards\r\n Vincent", "updateAuthor": { "name": "vgerris", "key": "vgerris", "displayName": "Vincent Gerris", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-04-26T12:29:09.000+0000", "updated": "2015-04-26T12:29:09.000+0000" }, { "id": "350812", "author": { "name": "vgerris", "key": "vgerris", "displayName": "Vincent Gerris", "active": true, "timeZone": "Europe/Berlin" }, "body": "attached test files that reproduce issue", "updateAuthor": { "name": "vgerris", "key": "vgerris", "displayName": "Vincent Gerris", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-04-26T12:30:38.000+0000", "updated": "2015-04-26T12:30:38.000+0000" }, { "id": "351172", "author": { "name": "vgerris", "key": "vgerris", "displayName": "Vincent Gerris", "active": true, "timeZone": "Europe/Berlin" }, "body": "Is there anything else you need?\r\nI tried to compile that whole map change module and it failed because some build file did reference a non-existing class.\r\nUnfortunately, I have no clue how to modify the build file or the generation, since it is overwritten every time.\r\nSince I delivered what you asked, can you please let me know if this will get some attention any time soon?\r\nthank you", "updateAuthor": { "name": "vgerris", "key": "vgerris", "displayName": "Vincent Gerris", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-04-29T19:35:46.000+0000", "updated": "2015-04-29T19:35:46.000+0000" }, { "id": "351932", "author": { "name": "vgerris", "key": "vgerris", "displayName": "Vincent Gerris", "active": true, "timeZone": "Europe/Berlin" }, "body": "Fyi: this seems to be picked up and prepare for merge, maybe you can collaborate. Early fix is greatly appreciated off course :https://github.com/appcelerator-modules/ti.map/pull/86#issuecomment-99880988\nThank you", "updateAuthor": { "name": "vgerris", "key": "vgerris", "displayName": "Vincent Gerris", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-05-07T15:35:10.000+0000", "updated": "2015-05-07T15:35:10.000+0000" }, { "id": "356294", "author": { "name": "vgerris", "key": "vgerris", "displayName": "Vincent Gerris", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hi,\r\n\r\nI saw this bug is closed.\r\nIs this merged now and released?\r\nAny notes on how I get a working setup with this issue being fixed?\r\n\r\nThank you\r\n", "updateAuthor": { "name": "vgerris", "key": "vgerris", "displayName": "Vincent Gerris", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-06-29T19:47:44.000+0000", "updated": "2015-06-29T19:47:44.000+0000" }, { "id": "356302", "author": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "body": "[~vgerris] this has been merge into 4.0.0.GA ", "updateAuthor": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "created": "2015-06-29T20:28:18.000+0000", "updated": "2015-06-29T20:28:18.000+0000" }, { "id": "356308", "author": { "name": "vgerris", "key": "vgerris", "displayName": "Vincent Gerris", "active": true, "timeZone": "Europe/Berlin" }, "body": "ok great, thank you!", "updateAuthor": { "name": "vgerris", "key": "vgerris", "displayName": "Vincent Gerris", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-06-29T20:53:24.000+0000", "updated": "2015-06-29T20:53:24.000+0000" } ], "maxResults": 18, "total": 18, "startAt": 0 } } }