opengrid icon indicating copy to clipboard operation
opengrid copied to clipboard

Printable Maps

Open PriyaDoIT opened this issue 9 years ago • 11 comments

As a user, I would like to be able to easily print my map results displayed in OG. Currently there is no other way to do so without taking screenshots.

PriyaDoIT avatar Aug 15 '16 15:08 PriyaDoIT

After checking the demo website of opengrid . I think .We need a method to render svg file generated by mapbox to canvas
And then we can get the jpeg or png ..

svg to jpg or png

ajphukan avatar Oct 16 '16 18:10 ajphukan

hi @ajphukan is this something you would be able to help us implement?

PriyaDoIT avatar Oct 17 '16 21:10 PriyaDoIT

@PriyaDoIT I am not sure . For print purposes, we need a separate button on the display screen of the map , and I only know little about the project , if a core member can point out the location for implementing the button .

ajphukan avatar Oct 23 '16 16:10 ajphukan

Suggestions for Print Button options to be reviewed and decided upon by team: image

Other considerations:

  • When Print is selected, the current map extent displayed on the UI is printed
  • Legend should be printed
  • if a popup is opened on the UI, we should not print it (this may be revisited in the future)
  • do not print the advanced search panel (in the future we may want to include query details in the print view)
  • crimearound.us print feature changes to a B&W base map with colored dots. Is this something we want to consider?

PriyaDoIT avatar Oct 25 '16 15:10 PriyaDoIT

There are too many things you want . Like the client only want some portion of the map to be print . Or the full view . And about the legends, i am not familiar with map library you are using . I just put up the solution because of the library that this website is using printing the map in canvas web element .

ajphukan avatar Oct 25 '16 16:10 ajphukan

Hi @ajphukan, we have a team here and we will decide on where to add this button and the requirements. What I listed in my most recent comment are simply options and suggestions for us to talk through. Will update this on what we decide. Thanks!

PriyaDoIT avatar Oct 25 '16 16:10 PriyaDoIT

The print location should be placed under the measurement and layers icon. If a print icon is placed on the grid it should be self-explanatory to an inexperienced user; that selecting the print icon will begin the process of printing the grid.

reve0716 avatar Oct 26 '16 16:10 reve0716

Per our 10/28 meeting the print icon will appear above the layers icon. Below is an example: image

Hi @rladines could you provide us with a print icon?

PriyaDoIT avatar Nov 01 '16 15:11 PriyaDoIT

Hi @ajphukan would you still be interested in helping us? We would like to add the print button as shown in the screenshot above. We would want the entire map extent of the query results (and right corner legend) to print neatly as a single page on various sizes of paper (in the US it is typically 8.5" x 11").

PriyaDoIT avatar Nov 03 '16 14:11 PriyaDoIT

sorry @PriyaDoIT i am facing problem while setting up the project locally in my system .I will not be able to do it

This some reference and possible problem you can face while implementing the print function

plugin required for printing process :leaflet-image

possible problem you will face it doesn't include the legend , for that you can try this .

drawing dom to draw the legend into the image

ajphukan avatar Nov 03 '16 18:11 ajphukan

@tomschenkjr @rladines could either of you chime in?

PriyaDoIT avatar Nov 09 '16 18:11 PriyaDoIT