Current window closes if i add event listener to MapView

You must Login before you can answer or comment on any questions.

I updated to titanium sdk 1.5.0 today. After the installation adding an event listener (even if it does nothing, see below) to a MapView doesn't work anymore.

The current window containing the map view closes if I click on an annotation for example. If no event listener is added, a click on any annotation works fine.

Is this a bug or am I missing something:

mapView.addEventListener('click', function(e)
{
    // nothing
});

— asked 2 years ago by Christopher Fox
3 Comments
  • Update: if I add the event regionChanged the map crashes immediately after it was opened. Could it be a problem that the window I added the MapView to doesn't belong to a tab (sounds weird but who knows)?

    — commented 2 years ago by Christopher Fox

  • Here's what I tried so far without any success: Adding the mapview to a window inside a tab, adding the event listeners after adding the mapview to the window, not making any dynamic changes of the map.

    — commented 2 years ago by Christopher Fox

  • The problem isn't solved but it doesn't occur in SDK version 1.5.1

    — commented 2 years ago by Christopher Fox

Your Answer

Think you can help? Login to answer this question!