[TIMOB-1188] Ti.Map.createView region property problem
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:55:28.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | wallneradam |
Assignee | Reggie Seagraves |
Created | 2011-04-15T02:46:16.000+0000 |
Updated | 2011-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);
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.