Problem description
When clicking on the v2 Map annotation, the latitudeDelta and longitudeDelta values for the source's region are never updated.
Steps to reproduce
Use the following code to reproduce the issue. The latitudeDelta and longitudeDelta values never change even if you click after you have zoomed in/out.
var MapModule = require('ti.map');
var win = Ti.UI.createWindow({
backgroundColor: "white"
});
var pin = MapModule.createAnnotation({
latitude: -33.87365,
longitude: 151.20689
});
var map = MapModule.createView({
mapType: MapModule.NORMAL_TYPE,
region: {latitude: -33.87365, longitude: 151.20689, latitudeDelta: 0.1, longitudeDelta: 0.1 }, //Sydney
top: 0,
left: 0,
height: 500,
annotations: [pin]
});
map.addEventListener('click', function(evt) {
Ti.API.info("latitudeDelta: " + evt.source.region.latitudeDelta);
Ti.API.info("longitudeDelta: " + evt.source.region.longitudeDelta);
});
win.add(map);
win.open();
It is not updated on the regionchanged event as well.