Skip to content
This repository has been archived by the owner on Dec 9, 2021. It is now read-only.

Pinch zoom not working on mobile #75

Closed
jhappone opened this issue Dec 8, 2020 · 4 comments
Closed

Pinch zoom not working on mobile #75

jhappone opened this issue Dec 8, 2020 · 4 comments
Assignees

Comments

@jhappone
Copy link

jhappone commented Dec 8, 2020

Hi!

I'm having a problem with pinch-zooming on mobile browsers. In the mobile, if you pinch zoom by not touching the cluster-icons, it works, but if you pinch zoom over marker icon, depending on the meta viewport settings, it either zooms the whole viewport or does not zoom at all.

I tried @alexmccabe version (https://gist.github.com/alexmccabe/510dc73e27c7c04be669dff96f0acbd9) where pinch zooming works. But I have some code which hides/shows markers inside the cluster and that only works with the latest release.

I'm kinda stuck now between these two versions. I need to either try to get "old" version working with my marker hiding/showing code, or hopefully get the latest version working with pinch zoom.

I'm happy to help if needed.

Br,
Jukka

@thexs-dev
Copy link

I managed to reproduce this issue in mobile phones, both Android and iPhone, using @googlemaps/markerclustererplus version 1.0.3

  • I had to carefully put two fingers at the same time within the 101-cluster (image 1)
  • then zoom, to actually zoom the cluster image instead of the map (image 2)

Screenshots below

Image 1
image

Image 2
image

@jpoehnelt
Copy link
Contributor

It might be worth considering the recently refactored version of this library now found at https://github.com/googlemaps/js-markerclusterer.

@alexmccabe
Copy link

It's cool that there is a completely refactored version now. I'm loooong out of the codebase where I had to do the original changes, but hopefully this new version resolves many of the issues that people are having.

@jpoehnelt
Copy link
Contributor

See #300.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants