[TIMOB-10680] TiMapView regionChanged events do not update the region in the map
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-01-29T19:33:04.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 3.2.0 |
Components | iOS |
Labels | SupportTeam |
Reporter | Thomas Wilkinson |
Assignee | Ingo Muschenetz |
Created | 2012-08-27T16:18:01.000+0000 |
Updated | 2017-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
@Thomas - Please review JIRA bug filing guidelines before creating these tickets. This is a pretty bad bug with no information whatsoever.
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?
Resolving this as per updated test results. We tested the issue with TISDK 3.2GA and we could not reproduce it.
Closing ticket as fixed.