mapbox / mapbox.js

Mapbox JavaScript API, a Leaflet Plugin
mapbox.com/mapbox.js/
Other
1.92k stars 386 forks source link

Attribution controls are showing twice #1289

Closed ghost closed 4 years ago

ghost commented 5 years ago

When creating a map and adding a simple style layer, the attribution control shows the same content twice.

To reproduce:

L.mapbox.map('dynamicMapBox', 'mapbox.streets').addLayer(L.mapbox.styleLayer('mapbox://styles/mapbox/streets-v11'));

Screen Shot 2019-04-02 at 11 27 14

Look at the bottom right.

This is a known issue already published in 2015. Is this going to be solved?

riastrad commented 4 years ago

Thanks for reporting the issue, @ArneMisbaer. I'm going to go ahead and use https://github.com/mapbox/mapbox.js/issues/1271 to track this bug. In the meantime, you can work around the double attribution issue with the recommendation made in https://github.com/mapbox/mapbox.js/issues/1271#issuecomment-576884708