mardi 17 novembre 2015

How to send an action from google maps click event listener?

I have multiple pins rendering in google maps. When user clicks in any of the pins I want to be able to trigger the _activeRoute action. For some reason when I do the below nothing happens.

action:{
   _activeRoute:fuction(){
   console.log('hello world');
},

   google.maps.event.addListener(marker, 'click', function(mapService) {
    this.sendAction('_activeRoute');
  });
}

Aucun commentaire:

Enregistrer un commentaire