Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6855] Android: Function to get the current latitudeDelta and longitudeDelta from a MapView

GitHub Issuen/a
TypeNew Feature
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-12-21T05:45:35.000+0000
Affected Version/sRelease 1.8.0.1
Fix Version/sSprint 2012-14 API, Release 3.0.0
ComponentsAndroid
Labelsapi, module_androidmapv2, parity, qe-manualtest
ReporterMauro Parra-Miranda
AssigneePing Wang
Created2011-12-22T15:36:58.000+0000
Updated2014-08-07T23:40:41.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

  1. Stephen Tramer 2011-12-22

    This feature will be implemented by iOS as the following propeties on Ti.Map.View: * Ti.Map.View.latitudeDelta * Ti.Map.View.longitudeDelta And will be in 1.9.0-only (new feature). This ticket is a clone of the iOS ticket for parity.
  2. Stephen Tramer 2011-12-22

    See the iOS ticket for testing information; we updated KitchenSink.
  3. Neeraj Gupta 2012-06-26

    We need to make sure that this feature works in consistent way for Android, iOS and Mobile Web platforms before resolving this ticket.
  4. Ping Wang 2012-07-03

    Test steps: 1. KS -> Base UI -> Views -> Map View 2. Zoom the map 3. Check the log. Expected output (numbers may vary):
       I/TiAPI   (22255):  maps region has updated to -84.352852,33.623978,0.674678,0.494384
       I/TiAPI   (22255):  0.674678,0.494384
       I/TiAPI   (22255):  latitudeDelta property matches event values
       I/TiAPI   (22255):  longitudeDelta property matches event values
       
  5. Ping Wang 2012-07-03

    PR https://github.com/appcelerator/titanium_mobile/pull/2504
  6. Rima Umbrasas 2012-08-13

    Verified fixed with mobile sdk-2.2.0.v20120810080115 Titanium Studio, build: 2.1.1.201207271312 Device: Galaxy S III Android version 4.0.4

JSON Source