@AdamGelineau wrote:
Hey guys,
I’m trying to open a Popover page, but it’s always showing at the middle of the screen. I think it’s because the button I click isn’t an ion component in the html file, but a Google maps marker in my ts file.
google.maps.event.addListener(friendMarker, 'click', (event) => { that.presentPopover(event, friendMarker, oneFriend) });
So, I listen to the click event on my Maps marker, and when I click on it, I open my Popover page, just like this:
presentPopover(ev, friendMarker, oneFriend) { this.map.panTo(friendMarker.position); let popover = this.popoverCtrl.create(ContactPopoverPage, {friend: oneFriend}); popover.present({ ev: ev }); }
Unfortunately, I think my event isn’t the one the Popover page is waiting for… Because the popover just pop without the arrow and is always right in the middle of the screen.
So the question is : Do you guys know how to pass the right event to my Popover page from my ts file ?
Thanks mates !
Posts: 1
Participants: 1