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

Use Heightgraph in lieu of Elevation to show the elevation profile #345

Merged
merged 21 commits into from
Dec 23, 2020
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -743,3 +743,15 @@ table.dataTable.display tbody tr:hover.selected {
so we ignore pointer events in this situation to avoid that*/
pointer-events: none;
}

/*
* Heightgraph customizations;
* since the legend and the gradient types are in the way, hide them;
* since there's only the gradient layer, hide the layer selector.
*/
.legend-hover {
display: none;
}
#selectionText {
display: none;
}
9 changes: 2 additions & 7 deletions js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@
} else {
stats = new BR.TrackStats();
}
elevation = new BR.Elevation();

elevation = new BR.Heightgraph();

profile = new BR.Profile();
profile.on('update', function(evt) {
Expand Down Expand Up @@ -419,12 +420,6 @@
},
urlHash
);

// listener and initCollapse here and not in onAdd, as addBelow calls addTo (-> onAdd) on resize
$(window).resize(function() {
elevation.addBelow(map);
});
elevation.initCollapse(map);
}

i18next.on('languageChanged', function(detectedLanguage) {
Expand Down
116 changes: 0 additions & 116 deletions js/plugin/Elevation.js

This file was deleted.

Loading