Hi to everybody, i have this code:
var pin = Titanium.Map.createAnnotation({ latitude:36.830260,//33.74511, longitude:11.942233,//-84.38993, title:"Sport House", subtitle:'Sea, Sports, Wear', pincolor:Titanium.Map.ANNOTATION_RED, animate:true, myid:1 // CUSTOM ATTRIBUTE THAT IS PASSED INTO EVENT OBJECTS }); var map = Ti.UI.createWindow({}); var mapView = Ti.Map.createView({ mapType: Titanium.Map.TERRAIN_TYPE, region: { latitude:36.830260, longitude:11.942233, latitudeDelta:0.2, longitudeDelta:0.2 }, animate:true, regionFit:true, userLocation:true, annotations:[pin] }); map.add(mapView);
mainWindow.close(); map.open();...and when i open map in my device, the app crash!!!