Skip to content

Commit 2549425

Browse files
AzgaarCopilot
andauthored
Elevation profile enhancement (#1394)
* feat: enhance elevation profile with download options for SVG and PNG formats Co-authored-by: Copilot <copilot@github.com> * refactor: improve elevation profile code readability and performance Co-authored-by: Copilot <copilot@github.com> * fix: swap default selection for elevation profile interpolation options Co-authored-by: Copilot <copilot@github.com> * Refactor elevation profile functionality into a dedicated controller - Migrate elevation profile logic from `elevation-profile.js` to `elevation-profile.ts`. - Update references in `rivers-editor.js` and `routes-editor.js` to use the new `ElevationProfile.open` method. - Remove the old elevation profile script from `index.html`. - Add necessary imports and type declarations in `global.ts` for new elevation profile functions. - Ensure proper handling of elevation profile data and rendering in the new controller. Co-authored-by: Copilot <copilot@github.com> * fix: remove redundant cell information from population string in elevation profile Co-authored-by: Copilot <copilot@github.com> * refactor: improve code formatting and readability in elevation profile controller * refactor: remove unnecessary blank line in index file * refactor: remove unused axis calls in elevation profile grid rendering --------- Co-authored-by: Copilot <copilot@github.com>
1 parent e8e1716 commit 2549425

7 files changed

Lines changed: 648 additions & 403 deletions

File tree

public/modules/ui/elevation-profile.js

Lines changed: 0 additions & 395 deletions
This file was deleted.

0 commit comments

Comments
 (0)