Fixes after merge on geotrek rando

* Removed trailing white spaces
* Removed useless code
* Fixed canvas scope