[TIMOB-6831] iOS: Function to get the current latitudeDelta and longitudeDelta from a MapView
GitHub Issue | n/a |
Type | New Feature |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-12-29T10:07:33.000+0000 |
Affected Version/s | Release 1.8.0.1 |
Fix Version/s | Sprint 2011-52, Release 2.0.0, Release 1.8.1 |
Components | iOS |
Labels | parity |
Reporter | Mauro Parra-Miranda |
Assignee | Vishal Duggal |
Created | 2011-12-21T15:05:44.000+0000 |
Updated | 2014-06-19T12:43:07.000+0000 |
Description
PROBLEM DESCRIPTION
Customer wants to be able to regenerate a map centered in a given location, but drawing the region with the same level of zoom that the user is using right now.
STEPS TO REPRODUCE
1. Create a mapview centered in the whitehouse
2. Zoom the map
3. The user provided another point to center in the map.
4. Before the redraw, they need to know the current latitudeDelta and longitudeDelta after the zoom.
Comments
JSON Source
This ticket should be resolved by creating
Ti.Map.View.longitudeDelta
andTi.Map.View.latitudeDelta
properties. Cloning a dupe for Android parity.TESTING
---- We updated KS Base UI->Views->Map View to include a sanity check for these properties matching the event'slatitude
andlongitude
values. Check log output when changing a region to ensure that the log information looks correct and there are no warnings about a possible mismatch.Bumping into this sprint since PR requires some modifications.
Closing bug. Verified feature behaved as expected on: SDK build: 1.9.0.v20120210130135 Titanium Studio, build: 1.0.8.201201262211 xcode: 4.2 Device: iPhone 4S Sprint (5.0.1)