[AC-1546] Region bug iOS and Android zoom, longitude, latitude
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-06-29T17:14:38.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Studio |
Labels | n/a |
Reporter | Vincent Gerris |
Assignee | Motiur Rahman |
Created | 2015-04-12T12:26:06.000+0000 |
Updated | 2016-03-08T07:38:00.000+0000 |
Description
Attachments
File | Date | Size |
---|---|---|
app.js | 2015-04-26T12:30:22.000+0000 | 2621 |
ApplicationTabGroup.js | 2015-04-26T12:29:26.000+0000 | 1069 |
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. *Testing Environment:* Titanium SDK: 3.5.0.GA, 3.5.1.GA, 3.5.2, 4.0.0.Beta2 Titanium CLI: 3.4.2, iOS version: 5s(v8.1), Android Version: 4.2.2, OS X Version: 10.9.5, Appcelerator Studio: 3.4.2 *Test Code:*
Thanks.
Is there any workaround for this that anyone knows of? Any idea if this will be fixed on the short term? I basically have no decent way to scale my application now, any help is appreciated. I prefer to keep using Titanium Studio if possible, but this is a real show stopper at the moment. Thank you
here is another report with a clue: https://developer.appcelerator.com/question/176937/android-maps-v2-getregion-function-undefined Might have been introduced after SDK 3.2.3, hopefully that will lead to help finding the cause.
and even a pull request: https://github.com/appcelerator-modules/ti.map/pull/86
Hi, Thank you for responding. I read the documentation. Have you tried zooming in en out of a map on Android? The following things do NOT work for me: zoom property on Android (without using long and lat delta) longitudeDelta and latitudeDelta on Android Yes those last work on iOS but what is the point if they don't on Android. Please also look at the posted links, they are more reports and pull reqeuest with fixes. If the longitudeDelta and latitudeDelta work for you on Android after changing zoom level, can you please post the example code? Kind regards
[~vgerris] Can you please create a test case demonstrating the issues? with the code in [~morahman] comment we can not replicate. iOS 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. The 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 Regards
Hi Radamantis, Have you looked at the posted links? They contain examples too. Can you please check those? I will post a more complete snippet when I can. Given the multiple reports I found and linked, I think there is an issue. It is not a feauture request, simply multiple issues with the mapregion on Android. If you look at the pull request link you should have a fix in there that can be used. Kind regards, Vincent
https://github.com/Sitata/ti.map/commit/5259b85845fe113560242f308899b4fe606b31e7 that is the fix I think. I 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. Thanks for the help!
Hi, I have created an app like this: Ways to reproduce: - new app - classic, tabbed application - name testapp, testapp.id, sdk 3.5.1GA (4.0.0 gives error: The requested SDK version does not have an assigned commands-handler) - add the ti.map module from tiapp.xml - add this snippet to the tiapp.xml file with a valid API key:
attached test files that reproduce issue
Is there anything else you need? I tried to compile that whole map change module and it failed because some build file did reference a non-existing class. Unfortunately, I have no clue how to modify the build file or the generation, since it is overwritten every time. Since I delivered what you asked, can you please let me know if this will get some attention any time soon? thank you
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 Thank you
Hi, I saw this bug is closed. Is this merged now and released? Any notes on how I get a working setup with this issue being fixed? Thank you
[~vgerris] this has been merge into 4.0.0.GA
ok great, thank you!