Skip to content
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

feature request: Support map attribution printing #3077

Open
sanak opened this issue Oct 12, 2023 · 2 comments
Open

feature request: Support map attribution printing #3077

sanak opened this issue Oct 12, 2023 · 2 comments

Comments

@sanak
Copy link

sanak commented Oct 12, 2023

Currently, there seems to be no map attribution printing functionality as configuration, but it would be nice to support it from a point of view of license.

The following is OpenStreetMap attribution guidelines for printed maps.
https://osmfoundation.org/wiki/Licence/Attribution_Guidelines#Books,_magazines,_and_printed_maps

Books, magazines, and printed maps

For a printed map and similar media (that is ebooks, PDFs and so on), the credit must appear beside the map if that is where other such credits appear, or in a footnote/endnote if that is where other credits appear, or in the “acknowledgements” section of the publication (often at the start of a book or magazine) if that is where other credits appear. The URL to openstreetmap.org/copyright must be printed out.

@sbrunner
Copy link
Member

You can put an attribution text in the JasperReport template, do you need something other?
What do you imagine?
Having an attribution sting on the layers, and the print will create a string array with all the attributions, and put it in the context?

@sanak
Copy link
Author

sanak commented Oct 13, 2023

@sbrunner Thanks for your reply!

You can put an attribution text in the JasperReport template, do you need something other?

Yes, it's possible to add attribution text directly (or via parameter) in the JasperReport template, but I thought this is a common use case, so supporting it in this library side is nice.

What do you imagine?
Having an attribution sting on the layers, and the print will create a string array with all the attributions, and put it in the context?

Yes, my image is similar with other frontend map libraries (OpenLayers, Leaflet, etc.),

but more simple map level configuration (like attributes/map/attributions as text string) may be enough.

And control configuration image is similar with current scalebar and northArrow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants