cordova-plugin-googlemaps icon indicating copy to clipboard operation
cordova-plugin-googlemaps copied to clipboard

Map doesn't receive gesture events when in Ionic modal view

Open JeffreyJamesAttenti opened this issue 9 years ago • 14 comments

I'm submitting a ... (check one with "x") [ ] question [X] any problem or bug report [ ] feature request

If you choose 'problem or bug report', please select OS: (check one with "x") [X] Android [ ] iOS

cordova information: (run $> cordova plugin list)

cordova-plugin-console 1.0.5 "Console"
cordova-plugin-device 1.1.4 "Device"
cordova-plugin-googlemaps 2.1.1 "cordova-plugin-googlemaps"
cordova-plugin-splashscreen 4.0.3 "Splashscreen"
cordova-plugin-statusbar 2.2.1 "StatusBar"
cordova-plugin-whitelist 1.3.1 "Whitelist"
ionic-plugin-keyboard 2.2.1 "Keyboard"

Current behavior:

Expected behavior:

Screen capture or video record:

screencast-genymotion-2017-11-08_13 21 12 223 2

Related code, data or error log (please format your code or data):

Repo with Issue Demo

JeffreyJamesAttenti avatar Nov 08 '17 18:11 JeffreyJamesAttenti

This plugin does not work on any dialog box. Because the map is placed under the browser.

wf9a5m75 avatar Nov 08 '17 18:11 wf9a5m75

wf9a5m75 avatar Nov 08 '17 18:11 wf9a5m75

Yes I understand but it was able to work before this version. I hide everything underneath the modal in order to make it work. It's hacky but works.

I added a branch to the demo repo where I'm using plugin v2.0.1 and it still works: Branch using v2.0.1. The latest plugin version, 2.1.1, does not work.

Here's an animated gif that illustrates it working:

screencast-genymotion-2017-11-08_13 49 30 388

JeffreyJamesAttenti avatar Nov 08 '17 18:11 JeffreyJamesAttenti

Ok, I will check it later.

wf9a5m75 avatar Nov 08 '17 18:11 wf9a5m75

I haven't tested your project, but try to set z-index: 9999 to the map div.

wf9a5m75 avatar Nov 08 '17 19:11 wf9a5m75

And also the multiple_maps branch.

wf9a5m75 avatar Nov 08 '17 19:11 wf9a5m75

Masashi, I set the z-index to 9999 and that allowed me to drag/scroll the map but pressing the marker would not open the html info window.

That's not trying the multiple_maps branch though, that's just with released v2.1.1.

JeffreyJamesAttenti avatar Nov 08 '17 19:11 JeffreyJamesAttenti

@JeffreyJamesAttenti Did you try the multiple_maps branch code?

I just installed the plugin from multiple_maps branch, and run your project on my Android. But no problem at all. 1869

wf9a5m75 avatar Nov 09 '17 03:11 wf9a5m75

It works with multiple_maps but that sounds like a developmental feature branch. Would this fix make it into the stable version for next release?

Also, the html info still does not work with the multiple_maps branch. Should I open a new issue for that or do you want to do that fix against this issue?

JeffreyJamesAttenti avatar Nov 09 '17 15:11 JeffreyJamesAttenti

Also, the html info still does not work with the multiple_maps branch.

As far as your project, it seems fine. And I haven't any problem with HtmlInfoWindow at all.

wf9a5m75 avatar Nov 09 '17 17:11 wf9a5m75

Sorry, I meant to include a gif with the behavior. FYI, the android OS version is 4.4.4. That might make a difference.

In the video, you can see that it centers on the marker after pressing but the html info window doesn't display.

screencast-genymotion-2017-11-09_10 11 12 442

JeffreyJamesAttenti avatar Nov 09 '17 18:11 JeffreyJamesAttenti

Thank you for letting me know. Fixed. Please reinstall the plugin from the multiple_maps branch.

(Screen recorded on Android 4.4.4) 1869

wf9a5m75 avatar Nov 09 '17 20:11 wf9a5m75

That fixed it! Thank you for all of your hard work, I appreciate it very much!

JeffreyJamesAttenti avatar Nov 09 '17 21:11 JeffreyJamesAttenti

You are welcome. The fixed code will be released in the next npm update.

By the way, I appreciate if you support for this project. This is not mandatory asking, but I appreciate if you donate some tip because I spend my private time.

This is $5 donation link at paypal

wf9a5m75 avatar Nov 09 '17 21:11 wf9a5m75