'Layer-Provider is not updated after change

following problem: When i change my base layer, everything works fine, but the Provider display changes only to "Leaflet" After the first interaction with the map (zoom,move,...) the correct provider will be shown. I already use map.invalidateSize();... Other info: The map is shown in an foundation reveal



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source