Project: titanium
Issue TIMOB-18637: Windows: Initial Map region isn't always obeyed
I'm seeing an initial location somewhere in the South Pacific Ocean, in the middle of water, for the following code example: {code:javascript} var Map = require('ti.map'); var win = Titanium.UI.createWindow({ backgroundColor: 'red' }); var mountainView = Map.createAnnotation({ latitude:37.390749, longitude:-122.081651, title:"Appcelerator Headquarters", subtitle:'Mountain View, CA', pincolor:Map.ANNOTATION_RED, myid:1 // Custom property to uniquely identify this annotation. }); var mapview = Map.createView({ mapType: Map.NORMAL_TYPE, region: { latitude: 37.390749, longitude: -122.081651, latitudeDelta:0.00, longitudeDelta:0.00}, animate:true, regionFit:true, userLocation:true, annotations:[mountainView] }); win.add(mapview); win.open(); {code} I'm not sure if it's trying to set the region too early, using the wrong coordinates, or what.
Story points: 5