mapbox / mapbox.js

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

fix bug where logo did not appear if layer added after map init #1324

Closed riastrad closed 4 years ago

riastrad commented 4 years ago

Fixes https://github.com/mapbox/mapbox.js/issues/1314, where the mapbox logo would not be added to maps when they added the mapbox tilelayer's after initialization of L.mapbox.map.

However, note that it does not correct the behavior noted in https://github.com/mapbox/mapbox.js/issues/1227, as there are still problems with the logo appearing when a styleLayer is added to the map after the map object's initialization.

cc/ @mapbox/static-apis