Skip to content

Attribution for multiple WMSTile layers not showing correctly on first load #568

Open
@grgurev

Description

@grgurev

Description

When drawing map with multiple WMSTile layers on initial load all three attributions (for each separate WMS layer) are printed as attribution. After first change everything is as should be and attributions are correctly displayed.

Live Demo

https://codesandbox.io/s/eager-feather-vf691

Steps to Reproduce

Create two or more separate WMS layers with different attribution and on initial load all three attributions will be showed.

Expected Results

On initial load only attribution of selected WMS base layer should be displayed as attribution.

Actual Results

On initial load all three attributions are showed and only after first change the attribution is correctly displayed.

Browsers Affected

  • Chrome
  • Firefox
  • Edge
  • Safari 9
  • Safari 8
  • IE 11

Versions

  • Leaflet: v1.6.0
  • Vue: v2.6.10
  • Vue2Leaflet: v2.5.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugconfirmedIssue is accepted as either a bug or a valid enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions