Map annotation and new nav window
Hello,
I'm trying to open a new window when someone clicks on an annotation rightButton. I can open a normal window but I would like one that has a nav bar and a back button. I've tried this to no avail. Was wondering if anyone could see where I'm going wrong. It's a map inside a tab view:
mapview.addEventListener('click',function(evt)
{
var annotation = evt.annotation;
var myid = (evt.annotation)?evt.annotation.myid:-1;
if (evt.clicksource == 'rightButton')
{
var window = Titanium.UI.createWindow({
backgroundColor: 'white',
barColor:'#336699',
translucent:true,
url:'venue.js'
});
Titanium.UI.currentTab.open(window,{animated:true});
}
});
1 Answer
-
try this.
Titanium.UI.createWindow({ url: 'some_window.js', title: 'name', backgroundImage: 'images/background.png', barColor: '#000000', navBarHidden: false, tabBarHidden: true });