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

Print module #381

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open

Print module #381

wants to merge 11 commits into from

Conversation

enricofer
Copy link
Contributor

Hi, I'm submitting a new PR regarding a new print feature that allows to export the current map to pdf.
The implementation is adapted from the following Openlayers example: https://openlayers.org/en/latest/examples/print-to-scale.html
I hope you find of some interest for the project. In this case please point me out how to develop and integrate continuous testing for this module.

All the best.

@chrismayer
Copy link
Collaborator

Thanks for your PR @enricofer!

Your branch has conflicts and it seems there are changes of your previous PRs in the change sets, which makes it hard to review. Could you please rebase your branch to the current master branch of Wegue? I guess your commit c7ce6d5 is the one of relevance. Thanks in advance. Afterwards I'll happily give it a review.

@enricofer
Copy link
Contributor Author

jspdf is throwing many exceptions in ci-tests but I can't figure how to fix them. sorry.

@sronveaux
Copy link
Collaborator

Hi @enricofer and thanks for creating this PR!

I just took half an hour to have a look at the errors you encounter during tests as I was quite surprised that the dev and prod builds were working but not the test one... I unfortunately have not enough time to delve deeper into this for now but what could be done is compare the webpack configurations that are resolved in dev and test mode using, for example, npx vue-cli-service inspect.

In a first time, if you want to go further with your PR, you can just replace the following in the vue.config.js file:

  transpileDependencies: [
    'jspdf'
  ]

With this you'll be able to go on further until the reason why jspdf is correctly transpiled in certain circumstances only is found.

By the way, I can't make your PR run smoothly for now as the wgu-print-win component is not registered properly. There is certainly something missing in the app-starter/WguAppTemplate.vue file...

Thanks again for your interest in this project,

All the best

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

Successfully merging this pull request may close these issues.

3 participants