I am a beginner in Titanium Studio. I am opening a new window, when I select the annotation pin on the mapview.
annotation.addEventListener('click', function(e) {
Ti.API.info("Opening detail window");
navGroup.open(detailWindow);
});
But, it doesn’t work every time. It works only for the first time, when the annotation is performed.
How could I make it work, whenever I select the annotation pin, I should move to a new window? Thanks in advance.
You should use annotation right button to open a new window.
To catch the annotation right button click event you have to do this: