Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13516] Android: Maps V2 Module - Missing "longitudeDelta" and "latitudeDelta" properties on the "regionchanged" event

GitHub Issuen/a
TypeNew Feature
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-05-15T00:04:06.000+0000
Affected Version/sRelease 3.1.0
Fix Version/s2013 Sprint 10 API, 2013 Sprint 10, Release 3.1.1, Release 3.2.0
ComponentsAndroid
Labelsqe-testadded
ReporterPing Wang
AssigneePing Wang
Created2013-04-10T20:53:26.000+0000
Updated2014-06-19T12:44:15.000+0000

Description

It still seems to be missing "longitudeDelta" and "latitidueDelta" properties on the "regionchanged" event. Without it, it's impossible to calculate the current lat/lon area (box) the user is currenlty viewing.

Comments

  1. Ping Wang 2013-05-14

    PR: https://github.com/appcelerator/titanium_modules/pull/115 Test case:
       var MapModule = require('ti.map');
       
       var win = Ti.UI.createWindow({
       	backgroundColor: "white"	
       });
       
       var map = MapModule.createView({
           userLocation: true,
           mapType: MapModule.NORMAL_TYPE,
           animate: true,
           region: {latitude: -33.87365, longitude: 151.20689, latitudeDelta: 0.1, longitudeDelta: 0.1 }, //Sydney
           top: 0,
           left: 0,
           height: 500
       });
       
       map.addEventListener("regionchanged", function(e){
       	Ti.API.info("longitude = " + e.longitude + ", latitude = " + e.latitude);
       	Ti.API.info("longitudeDelta = " + e.longitudeDelta + ", latitudeDelta = " + e.latitudeDelta);
       });
       
       win.add(map);
       win.open();
       
    For FR, please run the above test case. Move/zoom in/zoom out the map and check the log.
  2. roel 2013-05-16

    Thank you! I can confirm the deltas are now changing.
  3. Eric Merriman 2013-05-28

    Verified lat and long deltas are showing on region change including map tilt with: Mac OS 10.8.3 Safari: 6.0.4 Xcode 4.6.2 CLI: 3.1.1-alpha titanium-code-processor: 1.0.1-alpha Alloy: 1.1.3-alpha Appcelerator Studio, build: 3.1.1.201305271814 Titanium SDK version 3.1.1.v20130524180421 On: Nexus 4 4.2.1 Nexus 10 4.2
  4. Jason Foster 2013-06-24

    Not Showing for me on : Nexus 7 (4.2.2) Build : 3.1.1.201306112235
  5. pawel 2013-07-07

    still not working for me in 3.1.1 http://polas.net/noDelta.jpg SAMSUNG GT-N7000

JSON Source