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

recalculate time to closing/opening #38

Open
matkoniecz opened this issue Oct 9, 2015 · 3 comments
Open

recalculate time to closing/opening #38

matkoniecz opened this issue Oct 9, 2015 · 3 comments

Comments

@matkoniecz
Copy link
Contributor

Currently once popup is created time to closing/opening stays the same. To recalculate it user must reload page and click again selected place.

It would be preferable to recalculate time till state change every 60 seconds.

@ypid
Copy link
Member

ypid commented Oct 9, 2015

The map is already kind of slow. This would even make it slower for low zoom levels. Maybe it makes sense for now to just reevaluate when an POI is clicked?

@matkoniecz
Copy link
Contributor Author

Yes, I though about doing it only for POIs in the currently open popup.

For green/red/yellow rings on the map - probably overcomplicated but faster would be to keep sorted list of future state changes what would allow to avoid recalculating everything every 60 seconds.

Also I made correction to report - it is necessary to reload entire page to recalculate times.

The map is already kind of slow.

I never noticed this problem, but in my area amount of tagged opening hours is low.

@ypid
Copy link
Member

ypid commented Oct 9, 2015

sorted list of future state changes

Sounds like the solution for this 👍

I never noticed this problem, but in my area amount of tagged opening hours is low.

I am usually testing with major cities in Germany so it can get slow 😉

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