Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1188] Ti.Map.createView region property problem

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:55:28.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsn/a
Reporterwallneradam
AssigneeReggie Seagraves
Created2011-04-15T02:46:16.000+0000
Updated2011-04-17T01:55:28.000+0000

Description

Hi,

When I create a map, and set the region, the latitudeDelta and longitudeDelta properties are interpreted wrong. After the view was added to the window, the same region object works good.

I use the latest 1.3.2 from git.

An example:

var w = Ti.UI.createWindow({});

var startRegion = {"longitude":19.01759147644043,"latitude":47.46166758068304,"longitudeDelta":0.0274658203125,"latitudeDelta":0.01990384287526581};

var mapview = Ti.Map.createView({
    mapType: Ti.Map.STANDARD_TYPE,
    region: startRegion,
    animate: true,
    regionFit: true,
    userLocation: false
});

w.add(mapview);
w.open();

setTimeout(function() {
    mapview.region = startRegion;
}, 2000);

Comments

  1. Stephen Tramer 2011-04-15

    This is a duplicate bug which has been resolved. Please inform us if your code still does not work after the official Titanium 1.4 is released.

JSON Source