Vue2leaflet: Changing LWMSTileLayer `layers` prop has no effect

Created on 15 Apr 2020  路  2Comments  路  Source: vue-leaflet/Vue2Leaflet

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

  • [X] Chrome
  • [X] Firefox

Unable to check:

  • [ ] Edge
  • [ ] Safari 9
  • [ ] Safari 8
  • [ ] IE 11

Versions

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

Most helpful comment

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

All 2 comments

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

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tiltec picture tiltec  路  4Comments

shtw picture shtw  路  5Comments

lusman20 picture lusman20  路  4Comments

digEmAll picture digEmAll  路  4Comments

CharlesOkwuagwu picture CharlesOkwuagwu  路  5Comments