How to remove the whole container (see picture below) of leaflet-routing that includes distance and travel time via a button in my index.html?
If i remove line 3508 of leaflet-routing-machine.js: return this._container;
the container is not visible. But this way is not an option.
Best Answer
Adding
show: false
andcollapsible: false
to the control didn't seem to do the trick. But you can manipulate the container's CSS with Javascript this way:To show it again later you can reverse this by doing: