[TIMOB-13516] Android: Maps V2 Module - Missing "longitudeDelta" and "latitudeDelta" properties on the "regionchanged" event
| GitHub Issue | n/a |
|---|---|
| Type | New Feature |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2013-05-15T00:04:06.000+0000 |
| Affected Version/s | Release 3.1.0 |
| Fix Version/s | 2013 Sprint 10 API, 2013 Sprint 10, Release 3.1.1, Release 3.2.0 |
| Components | Android |
| Labels | qe-testadded |
| Reporter | Ping Wang |
| Assignee | Ping Wang |
| Created | 2013-04-10T20:53:26.000+0000 |
| Updated | 2014-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.
PR: https://github.com/appcelerator/titanium_modules/pull/115 Test case:
For FR, please run the above test case. Move/zoom in/zoom out the map and check the log.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();Thank you! I can confirm the deltas are now changing.
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
Not Showing for me on : Nexus 7 (4.2.2) Build : 3.1.1.201306112235
still not working for me in 3.1.1 http://polas.net/noDelta.jpg SAMSUNG GT-N7000