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

Fix print layer order #4699

Merged
merged 1 commit into from Feb 28, 2019
Merged

Conversation

adube
Copy link
Contributor

@adube adube commented Feb 27, 2019

The ngeo print service is responsible of creating the specs for the print request, which includes the layers to print in a specific order: by zIndex. The issue was that the layers were not ordered properly.

After investigating, it turns out that the method responsible for ordering by zIndex was not working properly due to undefined values returned some of the layers z indexes. Marking those as 0 made the method worked properly and the order correctly set from there on.

@adube adube requested review from fredj and sbrunner February 27, 2019 16:14
Copy link
Member

@fredj fredj left a comment

Choose a reason for hiding this comment

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

looks good, thanks

Copy link
Member

@sbrunner sbrunner left a comment

Choose a reason for hiding this comment

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

Thanks :-)

@adube adube merged commit a5f196f into camptocamp:master Feb 28, 2019
@adube adube deleted the 787-fix-print-layer-order branch February 28, 2019 13:13
@sbrunner sbrunner added this to the 2.4 milestone Feb 28, 2019
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.

None yet

3 participants