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

Popup Takes More than 5 Seconds to Appear on Map #2

Open
FunkMonkey33 opened this issue Jan 30, 2014 · 1 comment
Open

Popup Takes More than 5 Seconds to Appear on Map #2

FunkMonkey33 opened this issue Jan 30, 2014 · 1 comment

Comments

@FunkMonkey33
Copy link

The popup intermittently takes 5 seconds or more to appear on the map, even simple popups with minimal content. It is inconsistent. Sometimes it loads in 0.5 seconds, sometimes 5-7 seconds. It seems to be partially related to where the feature is in relation to the map boundaries.

Our map lives in a web application that is fairly complex, with multiple grids, tables, charts etc. That may be part of the problem, but the Leaflet popup always loads very quickly.

Thanks!

@erictheise
Copy link
Owner

@FunkMonkey33, the initial version of Rrose, now called v0.0.1, made an extra calculation for points in corners. This was to determine which direction predominated when both were too close to the edge. The calculation was never used, although I thought I might use it in a future version, and making it didn't seem to impact performance for the size of the datasets I was working with.

I've removed that calculation, and simplified the css accordingly. If you're still interested in this issue and can test the performance of the version that's presently in the repo, I'd appreciate your feedback. Alternatively, if there's somewhere I can see the behavior, either live or in a JSFiddle, do point me to it.

I am going through the other issues and hope to do a v0.2.0 release for Leaflet 0.7.2 and higher in the near future.

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

No branches or pull requests

2 participants