Skip to content

PB-360: Remove circular reference and unused properties from KML layer.#761

Merged
ismailsunni merged 6 commits intodevelopfrom
fix-PB-360-kml-not-printed
Apr 17, 2024
Merged

PB-360: Remove circular reference and unused properties from KML layer.#761
ismailsunni merged 6 commits intodevelopfrom
fix-PB-360-kml-not-printed

Conversation

@ismailsunni
Copy link
Contributor

@ismailsunni ismailsunni commented Apr 4, 2024

Test link

The geoblocks/mapfishprint is able to create the print specification with KML layer. Unfortunately, in mapviewer, there is a circular reference make it not possible to stringify the print specification object. The properties is removed as it's not used in the printing.

There is also another property (editableFeature) that make mapfishprint throws an error.

Sample print result:
image

Test link

@github-actions github-actions bot added the bug label Apr 4, 2024
@cypress
Copy link

cypress bot commented Apr 4, 2024

Passing run #1758 ↗︎

0 161 19 0 Flakiness 0

Details:

PB-360: Fix unit test after rebase and use PRINT_ABORTED from the develop branch...
Project: web-mapviewer Commit: 96e0161fae
Status: Passed Duration: 05:03 💡
Started: Apr 16, 2024 5:04 AM Ended: Apr 16, 2024 5:09 AM

Review all test suite changes for PR #761 ↗︎

@ismailsunni ismailsunni marked this pull request as ready for review April 4, 2024 06:12
@ismailsunni ismailsunni requested review from ltshb and pakb April 4, 2024 06:12
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.

I think it would be better to use the Customizer to remove those properties, see https://geoblocks.github.io/mapfishprint/docs/classes/BaseCustomizer.default.html#feature

@ismailsunni ismailsunni requested a review from ltshb April 4, 2024 07:54
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.

I've got failures in the console when printing a kml with a measure,
image
And also they was no error feedback, so without opening the console we could not see any error; You can use this shortlink to reproduce the issue

@ismailsunni ismailsunni force-pushed the fix-PB-360-kml-not-printed branch 4 times, most recently from f333f47 to 7e790f4 Compare April 7, 2024 17:28
@ltshb
Copy link
Contributor

ltshb commented Apr 9, 2024

@ismailsunni I allow myself to rebase and if it works I'll merge this, as I will work on an issue that might enter in conflict with this work.

@ltshb ltshb force-pushed the fix-PB-360-kml-not-printed branch 2 times, most recently from b0001f0 to 3a5fe1f Compare April 9, 2024 07:05
@ismailsunni ismailsunni force-pushed the fix-PB-360-kml-not-printed branch from 3a5fe1f to 43991cc Compare April 16, 2024 03:33
@ismailsunni ismailsunni force-pushed the fix-PB-360-kml-not-printed branch from c39b35b to 96e0161 Compare April 16, 2024 05:00
@ismailsunni ismailsunni requested a review from ltshb April 16, 2024 05:06
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.

Code looks good, however I found another issue (that could be fixed in a separate PR). For the KML measure, the total distance is not printed, like on the old viewer:

  • old viewer
    image

  • new viewer
    image

@ltshb
Copy link
Contributor

ltshb commented Apr 17, 2024

Also on the old viewer the drawing looks better (smaller lines) as on the new one that have thicker lines bolder text

@ismailsunni ismailsunni merged commit 85260e9 into develop Apr 17, 2024
@ismailsunni ismailsunni deleted the fix-PB-360-kml-not-printed branch April 17, 2024 07:03
@cypress cypress bot mentioned this pull request Apr 17, 2024
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.

2 participants