-
Notifications
You must be signed in to change notification settings - Fork 989
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cluster stays if tapped at map borders (Android/iOS) #529
Comments
https://github.com/Leaflet/Leaflet.markercluster/blob/master/src/MarkerClusterGroup.js#L892-L893 |
The changes work like you expected it to happen: With With |
Hi @ThomasRiedl, I am facing the same issue for one of my app. Can you tell me how you fixed this issue? Thanks. |
Hi @ftechiesnitin, I replaced with
in file MarkerClusterGroup.js I have to change this everytime I update Leaflet.markercluster. |
Thanks @TomRiedl that did the trick. |
Hi, It seems sad to have to cancel the effect of mobile detection in It is reproducible with Leaflet 1.0.0 and MCG master: http://jsfiddle.net/3v7hd2vx/18/ It is the same issue as #344, which was solved by commit 254198a. Doing the same in current master branch seems to solve the issue: http://jsfiddle.net/3v7hd2vx/19/ Will do a PR shortly. |
Same as Leaflet#344, which was corrected by commit 254198a in leaflet-0.7 branch only. Do the same in master branch (for Leaflet 1.0.0) as well. Also added a dedicated test spec in zoomAnimationSpec test suite. Took the opportunity to refactor the test suite to avoid PhantomJS memory leak.
Corrected #529 in master (Leaflet 1.0.0)
This works with the latest code: |
Ah, I see ghybs fixed it in #644 but it wasn't closed then. Thanks :) |
The correct behavior:
![working1](https://cloud.githubusercontent.com/assets/8522918/8878857/dbf9f3cc-322d-11e5-87c9-d56d3c3b1efa.png)
![working2](https://cloud.githubusercontent.com/assets/8522918/8878860/dfbe65e2-322d-11e5-8a0f-0f3051f9bcc6.png)
This works fine if the cluster is near the center of the map.
But if I move the map to a position where the cluster is near the border of the map, this happens:
![notworking1](https://cloud.githubusercontent.com/assets/8522918/8878891/06bb685c-322e-11e5-8f04-fd8c355aee91.png)
![notworking2](https://cloud.githubusercontent.com/assets/8522918/8878893/087a6968-322e-11e5-98d1-cb8aa6a6d9fe.png)
This is reproducible every time on different mobile devices (tested on two Android and three iOS devices).
This is not reproducible in Firefox and Chrome.
The app is build through PhoneGap.
The code the clusters are created:
The text was updated successfully, but these errors were encountered: