vue-leaflet / Vue2Leaflet

Vue 2 components for Leaflet maps
https://vue2-leaflet.netlify.app
MIT License
1.95k stars 380 forks source link

Change of attribution text may fail in some situation #695

Closed tailriver closed 2 years ago

tailriver commented 2 years ago

Description

Sometimes old attribution text remains after the layer is hidden. I think the setAttribution may fail if { attributionControl: false } is specified in LMap.

Live Demo

https://vue2-leaflet.netlify.app/examples/feature-showcase.html

Steps to Reproduce

  1. Change "Attribution position" to "topleft" (other than "bottomright").
  2. Change tile layer to OpenTopoMap.

Expected Results

Vue2Leaflet | Map data: © OpenStreetMap, SRTM | Map style: © OpenTopoMap (CC-BY-SA)

(skip step 1 to get this)

Actual Results

Vue2Leaflet | © OpenStreetMap contributors, Map data: © OpenStreetMap, SRTM | Map style: © OpenTopoMap (CC-BY-SA)

Browsers Affected

Versions

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.