geojs
geojs copied to clipboard
Screenshot widget
Add a general screenshot widget.
This could either work as a stand-alone html element or a widget in a UI layer of the map.
A basic option would be to do one or both of:
- showing the screenshot in a div (so that it can be clicked to view or download)
- automatically download the screenshot
An additional option is to set the download name.
Incidentally, there was a bug in Firefox versions 55, 56, and 57 that prevented the screenshot from working on HTML images: https://bugzilla.mozilla.org/show_bug.cgi?id=1409992. It was fixed in Firefox 58. It worked on all of those versions for canvases and svg images (just not html images).
@manthey I think we mostly have this feature now. Is that correct?
We have the feature in the example pages. I think the original desire was to have a UI control (one of part of a set of widgets -- we have several such issues) that would be composable into other applications. We haven't every had a need for such widgets and I don't think such UI components will increase library adoption. I'd close this and some of the other widget issues if you don't think they are desired.