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

Excluding certain layers from the legend in print tool #10812

Closed
2 tasks
MV88 opened this issue Feb 14, 2025 · 0 comments · Fixed by #10815
Closed
2 tasks

Excluding certain layers from the legend in print tool #10812

MV88 opened this issue Feb 14, 2025 · 0 comments · Fixed by #10815
Assignees
Labels
New Feature used for new functionalities

Comments

@MV88
Copy link
Contributor

MV88 commented Feb 14, 2025

Description

The request is to hide a list of prefixed layers from a configuration property so that these layers will never be included in legends list that is sent to mapfishprint

Acceptance criteria

  • allow list of fixed layers to be specified in print plugin
  • make sure these layers are excluded from legends

Other useful information

Suggestion for implementation

  • a new string[] cfg option called excludeLayersFromLegend:[] for Print plugin will be created, be default empty array list, it will contain a list or strings with :
  • this option will be passed to the printcreators here
    this.props.printingService.print({
  • then here
    export const getMapfishLayersSpecification = (layers, spec, state, purpose) => {
    there will be the filtering
@MV88 MV88 added the New Feature used for new functionalities label Feb 14, 2025
@MV88 MV88 self-assigned this Feb 14, 2025
MV88 added a commit to MV88/MapStore2 that referenced this issue Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New Feature used for new functionalities
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant