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

Changing LWMSTileLayer layers prop has no effect #567

Open
2 of 6 tasks
guygriffiths opened this issue Apr 15, 2020 · 4 comments
Open
2 of 6 tasks

Changing LWMSTileLayer layers prop has no effect #567

guygriffiths opened this issue Apr 15, 2020 · 4 comments
Labels
bug confirmed Issue is accepted as either a bug or a valid enhancement

Comments

@guygriffiths
Copy link

Description

Changing the LWMSTileLayer layers prop does not trigger redraw.

Live Demo

http://jsfiddle.net/q1gfj9n7/4/

Steps to Reproduce

As per fiddle, any LWMSTileLayer which has a layers property which changes will not redraw the layer.

Expected Results

Changing the value of layers should cause the layer to be redrawn using the new layer name.

Actual Results

Nothing visible changes.

Browsers Affected

  • Chrome
  • Firefox

Unable to check:

  • Edge
  • Safari 9
  • Safari 8
  • IE 11

Versions

  • Leaflet: v1.6.0
  • Vue: v2.6.10
  • Vue2Leaflet: v2.5.2
@DonNicoJs DonNicoJs added bug confirmed Issue is accepted as either a bug or a valid enhancement labels Apr 26, 2020
@DonNicoJs
Copy link
Member

@guygriffiths Thank you for the issue! Confirmed the bug, will investigate

@evaseemefly
Copy link

the same question,when I update a new attribute value it can't send a new request

@dirk-ecker
Copy link

Same problem, does anybody know a solution?

@dirk-ecker
Copy link

A workaround: Put a ref to your layer and update the layers parameter.

this.$refs.wmsTileLayer.mapObject.wmsParams.layers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug confirmed Issue is accepted as either a bug or a valid enhancement
Projects
None yet
Development

No branches or pull requests

4 participants