Skip to content

Excluding certain layers from the legend in print tool #10812

@MV88

Description

@MV88

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

Metadata

Metadata

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions