-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Map download #5
Comments
A full solution for this will remain out of reach for the foreseeable future, I'm afraid. It would require a bigger investment. Both in terms of development time, as well as with regard to maintaining it as a production setup (see below). A smaller, limited solution, however, is possible: I managed to get halfway decent results with the html2canvas JavaScript library. With some limitations, ...and the programmatic rendering, a PNG file generated with I think this is a reasonable workaround for now. But keep in mind that Notes on a server-side solution: a full solution for producing a print-quality image, with user-configurable size/aspect ratio would likely involve a server-based solution. The server would have to run something like headless Chrome, which could then generate large raster images, based on a set of input parameters (map base-layer, map bounds, GeoJSON data overlay, etc.) After rendering the high-res raster image, exporting it to different formats (JPG, PDF, etc.) would be the easy part. Overall, development effort for such a solution would be much more significant, and deployment & maintenance of the combined system would become more complex. |
P.S.: the PNG screenshot feature is now available on the test instance. |
Update: However, with this setting enabled, map tiles are only displayed if, in turn, the tile server explicitly allows cross-domain requests (by setting the appropriate HTTP header in their responses: The CAWM tile server, however, does not have this setting enabled. This means their map tiles now show blank in the Recogito user interface. I have therefore removed CAWM from the list of pre-set basemap choices. @eltonteb: do you have any active contacts at the CAWM? If so, we could ask them if they can enable the |
Facility to be able to get a PDF of a map of the annotations in a document
The text was updated successfully, but these errors were encountered: