Push a view from google map infoWindow marker ( Runtime error, undefined is not an object )


#1

Hello !

I am trying from the infoWindow of a google map marker to push a new view :

// create new marker
 let markerOptions: MarkerOptions = {
   position: ionic,
   title: 'More details  >',
   infoClick: function() {
     this.navCtrl.push(Info)
   }

I am getting " Runtime error, undefined is not an object (evaluating ‘this.navCtrl.push’) ".

Anyone knows what I’ve done wrong ? Or if there is a more elegant way to do ?

Thank you !


#2

anyone could help me ? :slight_smile:


#3

i am having the same problem anyone could help us