In the application I'm developing I can not open a second window with a map. There is some sort of limit on the number of maps displayed by application?
This show error when adding the map in the second window
That's correct, you can have only one instance of the map view. If you've closed the first window that contained the map view and it's not properly releasing it, there is an undocumented fix to allow you to release that (now unwanted) map view so that you can create another one in the new window. Call
onDestroy()on the map view. E.g. …
var mapview =Ti.Map.createView(...); // ... etc etc. // Now you want to destroy the map view // so you're able to create another one // (like in a different window) mapview.onDestroy();
I hope that helped.