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

Add hideInactive option #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

fnogatz
Copy link

@fnogatz fnogatz commented Jun 13, 2015

I have added an option hideInactive to hide markers if the current time is before their first time property or after their very last one. I didn't know of a best practice to simply hide an existing marker in Leaflet. Instead of setOpacity(0) I removed the marker from the map and added it on reactivation.

Split the functionality to an isActive() property might also be a good idea to later update only positions of tracks whose time range is currently hit.

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

Successfully merging this pull request may close these issues.

1 participant