Detect events on map annotation bubbles

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

Hi all,

I need to detect events, specifically a click event on the annotation bubble. I can detect clicks on the annotation pins but can't work out how to do it for the bubbles.

Any suggestions?

Thx, Ken

— asked 8 months ago by Ken Liu
0 Comments

2 Answers

Accepted Answer

check the clickSource property of the event

— answered 8 months ago by Aaron Saunders
answer permalink
2 Comments
  • mapview.addEventListener('click', function(e) {
         Ti.API.debug(e);
         if (e.clicksource == 'rightButton') {
            // do something magical here
        }
    });
    Discussion on the clickcource property

    — commented 8 months ago by Aaron Saunders

  • Thanks, works a dream

    Is there a way to disable to annotation bubble? I'm writing my own for it and don't want the original to pop up

    Cheers

    — commented 8 months ago by Ken Liu

Thanks, works a dream

Is there a way to disable to annotation bubble? I'm writing my own for it and don't want the original to pop up

Cheers

Your Answer

Think you can help? Login to answer this question!