Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14115] Android: Maps v2 Module - latitudeDelta and longitudeDelta are not updated in the region object

GitHub Issuen/a
TypeBug
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 3.1.0, Release 3.2.0
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterDavide Cassenti
AssigneeUnknown
Created2013-06-05T01:09:29.000+0000
Updated2018-02-28T20:03:28.000+0000

Description

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();

Comments

  1. Jason Foster 2013-06-21

    It is not updated on the regionchanged event as well.

JSON Source