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

Marker clusterer bug while dragging the map #10

Closed
sanford-opspl opened this issue Feb 13, 2020 · 5 comments
Closed

Marker clusterer bug while dragging the map #10

sanford-opspl opened this issue Feb 13, 2020 · 5 comments
Assignees

Comments

@sanford-opspl
Copy link

Okay, I'm developing an Ionic 3 app and implemented the Google Maps along with Marker Clustering too. I noticed that when I drag the map, there is an issue. If I start dragging the map while my finger is on one of the marker clusters, the map cannot be dragged. But if I do the same outside the area, it works fine.

Am I missing something or this bug actually exists? Kindly help.

@sanford-opspl sanford-opspl changed the title Marker clusterer bug when dragging the map Marker clusterer bug while dragging the map Feb 13, 2020
@jpoehnelt
Copy link
Contributor

might be duplicate of googlemaps/v3-utility-library#506

@dcts
Copy link

dcts commented Apr 1, 2020

yes i noiced the same thing. It happens only on mobile, desktop works fine. I tried to fix it but the only option I could find is to bypass the pointer events on the cluster by adding some css:

.cluster {
  pointer-events: none !important;
}

This is not ideal at all, since then of course you also disable the click events on the cluster, hence loosing a great functionality. Or is there a way to prevent all pointerevents but allow only the click event?

@jpoehnelt jpoehnelt transferred this issue from googlemaps/v3-utility-library Sep 17, 2020
@TarasZakus
Copy link

A little dirty hack, that works for me:

// TODO: remove, once this [this](https://github.com/googlemaps/js-markerclustererplus/issues/10) is resolved
google.maps.version = '3.31.9';

const markerCluster = new MarkerClusterer(map, markers);

@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.

@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