Ionic Native Map with alert dialog does not accept click


#1

I have a ionic native Google map upon which I have to open some alerts. But when I click on alert dialog box the map accepts the click instead of alert dialog box. I can not find any clues in the documentation or the forum. Any help is greatly appreciated.

Thanks in advance for your help.


#2

What kind of alerts?


#3


Alert Dialog Controller with check boxes.


#4

I have the same problem. I want to show an alert “No search results”. The alert shows, however, I cannot click on “OK”. The click is instead executed as if I had clicked on the map behind the alert.
Anybody any idea how to solve this?


#5

Set this.map.setClickable(false) when the alert function is entered, and then add this.map.setClickable(true) inside the handler.


#6

Thanks. That solved my problem.