Skip to content

PB-111: Send print request #658

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

Merged
merged 35 commits into from
Mar 18, 2024
Merged

Conversation

ismailsunni
Copy link
Contributor

@ismailsunni ismailsunni commented Feb 26, 2024

Test link

  • Create print spec with geoblocks/mapfishprint
    • handling grid
    • handling legend
    • handling qrcode url
    • handling copyright with attributions
    • handling WMTS with different projection (2056, 3857)
  • Send the spec with pooling (already in https://github.com/geoblocks/mapfishprint)
  • Cancel the printing
  • Still using a specific commit of geoblocks/mapfishprint, I will update it once the new version of the node package is released

Test link

Copy link

cypress bot commented Feb 26, 2024

Passing run #1142 ↗︎

0 172 22 0 Flakiness 0

Details:

PB-111: Upgrade to the latest geoblocks/mapfishprint to fix compatibility issue ...
Project: web-mapviewer Commit: d02e2d5b2d
Status: Passed Duration: 04:34 💡
Started: Mar 18, 2024 6:42 AM Ended: Mar 18, 2024 6:47 AM

Review all test suite changes for PR #658 ↗︎

@ismailsunni ismailsunni force-pushed the feat-PB-111-send-print-request branch from b919113 to f6fff86 Compare February 26, 2024 08:03
@ismailsunni
Copy link
Contributor Author

ismailsunni commented Feb 26, 2024

ouch, wrong rebase.

@ismailsunni ismailsunni force-pushed the feat-PB-111-send-print-request branch from f6fff86 to f30e78e Compare February 26, 2024 09:55
@ismailsunni ismailsunni requested review from pakb and ltshb February 27, 2024 05:06
@ismailsunni ismailsunni marked this pull request as ready for review February 27, 2024 07:31
@ltshb
Copy link
Contributor

ltshb commented Feb 27, 2024

@ismailsunni I did a rework about the dispatcher see #659, please rebase your work and make sure that you follow the same syntax as in #659 about dispatching events.

@ismailsunni ismailsunni force-pushed the feat-PB-111-send-print-request branch 2 times, most recently from 91797ff to 2508d79 Compare February 28, 2024 08:44
@ltshb
Copy link
Contributor

ltshb commented Feb 28, 2024

@ismailsunni the coordinates system printed on the map seems to be web mercator ? But the map is printed in LV95 am I right ?

@ltshb
Copy link
Contributor

ltshb commented Feb 28, 2024

The legends with Journey through time - Maps is wrong on the print, this layer don't have a legend and no legend should be printed, now it print a grey square.

Copy link
Contributor

@ltshb ltshb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pakb I let you review the OpenLayersWMTSLayer.vue

extent: extent,
})

const wmtsSource = new WMTSSource({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would make sense to try to mimic what was done on the old viewer here, regarding params and values

see https://github.com/geoadmin/mf-geoadmin3/blob/6a7b99a2cc9980eec27b394ee709305a239549f1/src/components/map/LayersService.js#L521-L538

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to mimic all the params and values, beside the tileLoadFunction. I guess we can do it in other step/PR since it's not related to print directly. Is that ok @pakb ? It needs this kind of function https://github.com/geoadmin/mf-geoadmin3/blob/6a7b99a2cc9980eec27b394ee709305a239549f1/src/components/map/LayersService.js#L143, and it needs storage service (https://github.com/geoadmin/mf-geoadmin3/blob/develop/src/components/StorageService.js#L120) that I can't find it yet in the current mapviewer.

@ismailsunni ismailsunni requested review from ltshb and pakb March 7, 2024 10:56
@ismailsunni ismailsunni force-pushed the feat-PB-111-send-print-request branch from 1673184 to 15535db Compare March 7, 2024 14:02
@ismailsunni ismailsunni force-pushed the feat-PB-111-send-print-request branch 3 times, most recently from b9fd9b7 to 8bafcf4 Compare March 18, 2024 05:36
@ismailsunni ismailsunni force-pushed the feat-PB-111-send-print-request branch from 8bafcf4 to d02e2d5 Compare March 18, 2024 06:39
@ismailsunni ismailsunni merged commit dd4d3e5 into develop Mar 18, 2024
6 checks passed
@ismailsunni ismailsunni deleted the feat-PB-111-send-print-request branch March 18, 2024 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants