geojs icon indicating copy to clipboard operation
geojs copied to clipboard

Screenshot widget

Open manthey opened this issue 7 years ago • 3 comments

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.

manthey avatar Mar 01 '17 13:03 manthey

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 avatar Jan 29 '18 17:01 manthey

@manthey I think we mostly have this feature now. Is that correct?

aashish24 avatar Jul 01 '22 19:07 aashish24

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.

manthey avatar Jul 05 '22 12:07 manthey