0af11b064e
Symptom: Switching between layers with different attributions does not remove the attribution from the previously selected layer. Control.Attribution keeps track of its attributions with a counter for each text. The problem described in #4285 is that each time the layer is added to the map, the counter is increased by two. It's because Layer calls Control.Attribution.addAttribution() twice, once from addLayer() and the second time via the whenReady() callback _layerAdd(). This was not caught by the tests since the callback was never fired (missing map.setView() call). Fixes #4285 |
||
---|---|---|
.. | ||
Control.AttributionSpec.js | ||
Control.LayersSpec.js | ||
Control.ScaleSpec.js | ||
ControlSpec.js |