Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17857] Maps v2 module - getRegion() fails on Android - working on iOS

GitHub Issuen/a
TypeBug
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsandroid, mapsv2
ReporterBrian McBride
AssigneeUnknown
Created2014-09-25T22:59:25.000+0000
Updated2018-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

Comments

  1. Brian McBride 2014-10-13

    Any chance for some movement on this issue?
  2. Mobile Madwebs 2014-11-05

    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.
  3. Brian McBride 2014-11-05

    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.
  4. Mobile Madwebs 2014-11-05

    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!
  5. Brian McBride 2014-11-18

    Appcelerator folks... any chance on pulling Madweb's fix and getting out in the general release?
  6. Adam 2015-03-23

    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.

JSON Source