Is it possible to add a download button to a html view? We want to add a download widget to a folium map which is represented as a HTML view.
The following code does create a download button on the map.
However, when clicking, the script creates a acces denied error. Is there an other way to do this?
We don’t use the mapview or geojsonview here since we want to add special icons to the map, which is not possible in those views.
Thanks for your response.
However, we would like to not add an downloadbutton to the parametrization.
Instead we would like to add the download option to png in the view just like the build-in option in plotly and the mapview to export the view directly to png.
Alternatively, if we add an downloadbutton to download the png using selenium we get the error message that we need to install a chromedriver. Do you know how we can work around that error message?
I’ve been trying to solve this, by using html2canvas to download the folium as an image. However, since the folium iframe is being loaded from a different domain, we can’t access its content directly due to browser security policies. Therefore, I don’t think there is an easy way of doing this in html.
Regarding the selenium issue, I was indeed too soon with responding here; seems like there is indeed a chrome driver issue. Installing that into the viktor app might prove difficult indeed.