treee111 / wahooMapsCreator

Create maps for Wahoo device based on latest OSM maps
247 stars 25 forks source link

[FIX] include elevation data only if requested by the user, i.e. if `-con` is given #223

Closed treee111 closed 10 months ago

treee111 commented 10 months ago

This PR…

Considerations and implementations

If elevation data was present per tile (from a run earlier), they are included into the generated maps even if not requested - i.e. -conis not given. It came up when noticing that unittests fail. Because that makes the generated files from unittests differ from the static files in the repo because they are not generated with elevation data.

How to test

  1. have a VTM-theme which displays contour lines
  2. run with -con and check for contour lines with cruiser - should be present
  3. run without -con and check for contour lines with cruiser - should not be present

Pull Request Checklist