Coder Social home page Coder Social logo

Comments (15)

mourner avatar mourner commented on September 13, 2024

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.

pvhee avatar pvhee commented on September 13, 2024

Can confirm that the popups are broken, and seemingly in a random way. Using Leaflet v0.4.1, released today.

from leaflet.markercluster.

danzel avatar danzel commented on September 13, 2024

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.

danzel avatar danzel commented on September 13, 2024

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.

danzel avatar danzel commented on September 13, 2024

PR sent to fix the main issue of popups not working. :)

from leaflet.markercluster.

danzel avatar danzel commented on September 13, 2024

And 1be9202 should fix the popup positioning.
Thanks for the report :-)

from leaflet.markercluster.

danzel avatar danzel commented on September 13, 2024

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.

pvhee avatar pvhee commented on September 13, 2024

Can confirm the fix does not work either, and tested in Chrome / Firefox on Mac.

from leaflet.markercluster.

mourner avatar mourner commented on September 13, 2024

Broken for me on Chrome 21 stable unfortunately, both issues (incorrect popup positioning and non-working popups for individual markers)

from leaflet.markercluster.

danzel avatar danzel commented on September 13, 2024

You guys are kidding me right? :P
Try a force refresh. I'll go download chrome for mac!

from leaflet.markercluster.

mourner avatar mourner commented on September 13, 2024

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.

pvhee avatar pvhee commented on September 13, 2024

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.

mourner avatar mourner commented on September 13, 2024

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.

danzel avatar danzel commented on September 13, 2024

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.

danzel avatar danzel commented on September 13, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.