Repository navigation
Keep elevation diagram selection between requests - #2258
Conversation
|
@karussell WDYT is |
|
Sounds useful, yes.
And what if we "store" this info in the order of details parameter and pick the first? |
Yes this would be nice, but not really sure if this is easy to do. In principle you are right and the But maybe first things first. I just noticed something really strange: Before this commit: 6514fb7 which only added a console.log the feature did not work (I probably removed a similar console.log just before I pushed this PR). What I did was:
With the console log the diagram keeps showing time, but without the console.log it shows road_class? Can you confirm this? I got the same behavior in chrome and firefox. |
|
I could not find out what the problem is with this console.log and @karussell could not reproduce the issue, so I leave it as it is now. Keeping the |
I added a new
selected_detailurl parameter to the maps UI. It stores the selected detail in the elevation diagram so we can keep the selection in between requests (e.g. when we shift the markers or update the custom model).This PR depends on #2257