[TIMOB-17857] Maps v2 module - getRegion() fails on Android - working on iOS
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android |
Labels | android, mapsv2 |
Reporter | Brian McBride |
Assignee | Unknown |
Created | 2014-09-25T22:59:25.000+0000 |
Updated | 2018-02-28T20:04:15.000+0000 |
Description
On Android (tested multiple versions, currently on 4.4.2) using maps module v2 the getRegion() method does not exist and pulling the region variable returns undefined.
http://docs.appcelerator.com/titanium/3.0/#!/api/Modules.Map.View-property-region
This works as expected on iOS.
Q/A Regarding this issue here.
https://developer.appcelerator.com/question/176937/android-maps-v2-getregion-function-undefined
Any chance for some movement on this issue?
Hi all, i needed this feature, so i fixed it. Tomorrow i'll post my github link with the working version of this module. I have also restructured the module for easy handling it with the current titanium studio version.
Man, thanks! I think there was some work on the Maps module because it is broken on Android 5.0. But again, thanks for looking into this. I hope the guys over at Appcelerator roll this into their next release along with the 5.0 support. The workarounds are ok, but getRegion should just work.
Oh, but mine is not a workaround. Simply the getter was missing, so i forked the original module, corrected it and repacked! :) I'll send a pull request to the guys at appcelerator asap!
Appcelerator folks... any chance on pulling Madweb's fix and getting out in the general release?
I'm not 100% convinced that the getter was missing. For us, the .getRegion() was always present, but what failed to happen was an update after a map pan or change event. We've fixed this on our pull request to add drawing features: https://github.com/appcelerator-modules/ti.map/pull/86 Our fork/branch works well on Android 5.1.