Comments (15)
Not only that but popups for unspiderfied markers open in wrong places. Obviously something broke popups for markers in recent commits, it was working perfectly before.
from leaflet.markercluster.
Can confirm that the popups are broken, and seemingly in a random way. Using Leaflet v0.4.1, released today.
from leaflet.markercluster.
Yeah it was me.
Previously we were overwriting the latlng of each marker in the spiderfier and then restoring it when unspiderfying.
This could cause issues if you looked at the latlng of a marker while spiderfied, it would have its spiderfied latlng, not its actual latlng.
This change makes the popups appear in the wrong place as they are placed at the latlng of the point.
I'll take a look and see if there is a better solution, but I'll probably just revert this part back to the old latlng overwriting behaviour. (We back it up and restore the actual latlng when unspiderfying)
from leaflet.markercluster.
doing a bit more investigation here, looks like there is a few issues:
Marker popups appear in the wrong place - this is due to the latlng change, I think I'll change this back to before.
Popups stop working - Investigating why this happens now:
var m = markers._topClusterLevel.getAllChildMarkers(); var x = 0; for (var i =0 ;i < 388; i++) { if (m[i]._popup) x++; } console.log(x);
If you zoom down so markers appear standalone they lose their _popup, might be a leaflet bug from being added/removed from the map multiple times, investigating.
from leaflet.markercluster.
PR sent to fix the main issue of popups not working. :)
from leaflet.markercluster.
And 1be9202 should fix the popup positioning.
Thanks for the report :-)
from leaflet.markercluster.
Reopening as @blowsie says the fix doesn't work (https://github.com/CloudMade/Leaflet/pull/861)
I cannot reproduce this locally so far.
The example on http://danzel.github.com/Leaflet.markercluster/example/marker-clustering-realworld.10000.html works perfectly for me at the moment. (Safari on mac)
from leaflet.markercluster.
Can confirm the fix does not work either, and tested in Chrome / Firefox on Mac.
from leaflet.markercluster.
Broken for me on Chrome 21 stable unfortunately, both issues (incorrect popup positioning and non-working popups for individual markers)
from leaflet.markercluster.
You guys are kidding me right? :P
Try a force refresh. I'll go download chrome for mac!
from leaflet.markercluster.
Hmm, something weird happening for sure... It reproduced for me even after force refresh, but after several more refreshes it started working well again.
from leaflet.markercluster.
I did several force-refresh but the issue still remains and seems rather random. Initially popups will open fine, but when I start clicking/zooming around they stop working. Can confirm this issue on Safari,Chrome and FF on Mac.
On 1 Aug 2012, at 11:02, Vladimir Agafonkin wrote:
Hmm, something weird happening for sure... It reproduced for me even after force refresh, but after several more refreshes it started working well again.
Reply to this email directly or view it on GitHub:
https://github.com/danzel/Leaflet.markercluster/issues/24#issuecomment-7421961
from leaflet.markercluster.
Tried clicking/zooming around a lot but still couldn't reproduce.
Another unrelated thing that's driving me crazy for some reason is that in your examples, when clicking on the individual markers in Chrome, the drag cursor often appears even if you don't move the mouse, while on non-clustered Leaflet examples it doesn't work like that. Minor thing I know, but worth looking at too.
from leaflet.markercluster.
The issue previously occurred when a marker had been added to the map as an individual, either by zooming down until it unclustered or by clicking a cluster and having it spiderfy.
When it was removed from the map the popup would be removed too, so when it was readded the popup wouldn't be there.
Try clear your cache, my fresh install of chrome doesn't show the issue (that I can reproduce at least).
Will add an issue and investigate that one tomorrow mourner :)
from leaflet.markercluster.
If it still reproduces after a cache clear and a force refresh then post some direct instructions and i'll try reproduce it tomorrow, otherwise I'm pretty confident this is fixed. Thanks for the help guys :)
from leaflet.markercluster.
Related Issues (20)
- Provide function to generate icon HOT 2
- tooltipAnchor option on icons create by iconCreateFunction is ignored
- Prevent spiderfy from closing on position changes HOT 2
- Leverage WebWorker for clustering HOT 1
- Examples don't work leaflet.markercluster-src.js missing in dist folder HOT 1
- Marker disappears from parent layer after setting marker new coordinates
- Uncaught (in promise) TypeError: L.MarkerClusterGroup is not a constructor at L.markerClusterGroup (MarkerClusterGroup.js:1397:9) HOT 1
- Not able to see cluster circle in offline mode
- Why aren't there any new releases published or built since 2021?
- Popup don't open manually if 2 marks have the exact coordinates HOT 2
- setLatLng adds marker back to map when hidden using LayerControl
- New release/tag with dist JavaScript files? HOT 2
- Spiderfy the cluster only on max zoom
- First marker is duplicated HOT 2
- Marker Cluster is overlapping circleMarker() HOT 1
- Cancel cluster expansion event HOT 5
- Hey
- How to use the latest version as a node module? HOT 1
- disable grouping
- Accessibility Issue: Cluster Markers do not allow title / alt to be set
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from leaflet.markercluster.