Skip to content
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

Infinite loop at add #4

Open
vutle opened this issue Jun 26, 2021 · 2 comments
Open

Infinite loop at add #4

vutle opened this issue Jun 26, 2021 · 2 comments
Assignees
Labels

Comments

@vutle
Copy link

vutle commented Jun 26, 2021

I tried to add 100k markers and it seems the library is running in an infinite loop, it adds items forever.
More than 8 million objects... and still going before I stop the browser as it hang. I have to kill it.

I'm using the latest leaflet.

for(var i = 0; i < latlngs.length; ++i)
{

  var circle = L.circle(latlngs[i], radius, cStyle2);
  circle.addTo(map);
   quadtree.add(circle);

}

@ibesora ibesora self-assigned this Jun 27, 2021
@ibesora ibesora added the bug label Jun 27, 2021
@ibesora
Copy link
Owner

ibesora commented Jun 27, 2021

I've created a demo adding 1 million circles here (the tab might report as not responding, just need to wait for it to finish) but I can't reproduce what you are seeing.
Can you provide the whole code to reproduce it?

@vutle
Copy link
Author

vutle commented Jun 28, 2021 via email

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

No branches or pull requests

2 participants