Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10680] TiMapView regionChanged events do not update the region in the map

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2014-01-29T19:33:04.000+0000
Affected Version/sn/a
Fix Version/sRelease 3.2.0
ComponentsiOS
LabelsSupportTeam
ReporterThomas Wilkinson
AssigneeIngo Muschenetz
Created2012-08-27T16:18:01.000+0000
Updated2017-03-16T20:59:47.000+0000

Description

// mapView is a TiMapView object var regionA = mapView.getRegion(), regionB, regionC; mapView.addEventListener('regionChanged', function(event) { regionB = {latitude: event.latitude, longitude: event.longitude, latitudeDelta..... }; // regionB is updated properly regionC = mapView.getRegion(); // regionC is still the same as regionA }); // I had to work around this by tracking the viewport separately

Comments

  1. Neeraj Gupta 2012-08-27

    @Thomas - Please review JIRA bug filing guidelines before creating these tickets. This is a pretty bad bug with no information whatsoever.
  2. Thomas Wilkinson 2012-08-27

    The description has a complete and concise description of the bug in a code snippet, including, the steps to cause it, the expected output, and the resultant output. What else do you need?
  3. Shak Hossain 2014-01-29

    Resolving this as per updated test results. We tested the issue with TISDK 3.2GA and we could not reproduce it.
  4. Lee Morris 2017-03-16

    Closing ticket as fixed.

JSON Source