Closed Foetus6907 closed 2 years ago
Hi moamhed,
it looks like a typo in the code, have you tried replacing controlElevation
with this
?
if so can you make a fix pull request?
Raruto
It should be fixed in version 1.7.4
https://github.com/Raruto/leaflet-elevation/commit/5b86a80ae7ee94c4988f601b0cca93588f470a9b
Subject of the issue
Hi,
I have an existing elevation graph and i want to clear it all, so i call the function .clear() but i got in browers console this error message, and the graph is not clear.
control.js:73 Uncaught ReferenceError: controlElevation is not defined at control.js:73
Your environment
Steps to reproduce
Tell us how to reproduce this issue. Please provide a working demo, you can use this template as a base, otherwise, you can edit the following in order to show us some of your code snippets:
Expected behaviour
Chart should be clear in order to redraw a new one
Actual behaviour
Nothing happen
I got this error since i update to version 1.7.3, if i down grade to version 1.7.0 i don't have the error.