-
Notifications
You must be signed in to change notification settings - Fork 4
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
Chronological ordering problem #6
Comments
Hi, I still had a problem with the chronological order: Therefore I had to change the code: if(options.orderMarkers){
Now: 2020-12-16 2020-12-25 2021-01-08 2021-01-10 Comment: patch compare(a,b) didn't work |
Thanks, but that didn't work. I had to add ".getTime()"
…On 25 January 2021 at 16:10:37 +01:00, Brian Geyer ***@***.***> wrote:
@vdewit <https://github.com/vdewit> You might consider trying the fork I created, which has my fix implemented (the fix for this repo is still waiting to be considered/merged <#7>).
My fork is <https://github.com/geyerbri/LeafletSlider>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#6 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AECIDGW432PJ2QVEYVVMWRLS3WCW3ANCNFSM4R2XBLBQ>.
|
My apologies @vdewit. I didn't follow your comment closely enough before I responded, and realized I was definitely wrong to point you to my repo (which is why I deleted my previous comment). Yours is a separate issue that definitely needs addressing. You might consider opening it as an issue on its own. |
Hello (again!)
I'm having an issue with getting markers to order chronologically, when there is a mix between times set by geoJSON feature and time set by marker options. You once helped me before with getting the ordering to work on markers loaded via geoJSON, with the time attribute set via features/properties:
dwilhelm89/issues/63
You can see in my example code here (see live version at link below), some markers are added via geoJSON, and then an additional marker is added to the geoJSON set, on its own:
The geoJSON markers have their time set via the features list, but the individually-added marker has it set as an option. The page loads all four markers , but it puts that final individually-added marker at the end, no matter what its time attribute is.
(live at https://geyerbri.github.io/LeafletSlider/examples/popup.html. Note the date of the final marker, with a popup that only says "Hello World")
Is there any way to get markers from these mixed methods of being combined, to order themselves chronologically?
EDIT: this may be some other kind of issue, as I have tried removing the individual marker and changed the geoJSON data to not be in chronological order, but the slider isn't reordering them chronologically.
The text was updated successfully, but these errors were encountered: