Skip to content

Update leaflet.heightgraph 0.2.0 -> 1.4.0 - #2257

Merged
easbar merged 1 commit into
masterfrom
update_heightgraph
Mar 17, 2021
Merged

easbar merged 1 commit into
masterfrom
update_heightgraph

Conversation

@easbar

@easbar easbar commented Mar 17, 2021 •

Copy link
Copy Markdown
Member

I updated the heightgraph version. One thing I noticed is that in master the 'elevation highlighting' is not updated while moving the slider (on the right y-axis of the diagram) and after moving it it annoyingly jumps back to zero when I try to move it again. But this seems fixed with the new version. (Update: Yes this was: GIScience/Leaflet.Heightgraph#42). Also with 1.4.0 it is possible to use a continuous color scale for numeric path details like average_speed or time. Will do this in a follow-up PR.

@boldtrn Thanks for developing the elevation diagram. Do you think there is an issue with this update? I already adjusted the x-ticks (they were too frequent, probably since 0.4.1) and checked the css file (its the same except a folder name img/images).

@easbar easbar added the web label Mar 17, 2021
@easbar easbar added this to the 3.0 milestone Mar 17, 2021
@easbar
easbar requested a review from boldtrn March 17, 2021 13:22
@easbar

easbar commented Mar 17, 2021

Copy link
Copy Markdown
Member Author

And by the way is there a reason we have to hover the 'Legend' label to see the legend? I never even noticed this, but the legend is actually quite useful, so maybe we should just always show it automatically?

@boldtrn

boldtrn commented Mar 17, 2021

Copy link
Copy Markdown
Member

Thanks for the update. I think we don't need the d3 dependency anymore? IIRC this was changed with 1.0. Or do we use d3 for something else as well?

And by the way is there a reason we have to hover the 'Legend' label to see the legend? I never even noticed this, but the legend is actually quite useful, so maybe we should just always show it automatically?

At least by default I don't think that there is an option for this. Adding an option for this in the HeightGraph library should be possible and probably not too complicated.

@easbar

easbar commented Mar 17, 2021

Copy link
Copy Markdown
Member Author

Thanks for the quick reply! I will try to remove the explicit d3 dependency then.

At least by default I don't think that there is an option for this. Adding an option for this in the HeightGraph library should be possible and probably not too complicated.

Ok, also it might be worse showing the legend in all cases because sometimes there are too many values...

@easbar

easbar commented Mar 17, 2021

Copy link
Copy Markdown
Member Author

Hm so far I still need d3 for the color palette (a very minor thing), see #2259. Anyway will merge here for now.

@easbar
easbar merged commit 0800be8 into master Mar 17, 2021
@easbar
easbar deleted the update_heightgraph branch March 17, 2021 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants