What happens is since map.getBounds() can return an out of range longitude value from leaflet behavior as noted in https://github.com/Leaflet/Leaflet/issues/1885, the attribution value will be set as empty on these occasions.
Check the method definision _update_attribution and how getBounds( ) is used.
I was expecting to use wrap( ) method inside _updateMapAttribution so that the bound ranges will be in a valid range.
PS: Take a look at how eaflet-bing-layer do this.
L.version
):0.7.2
Steps to reproduce the error:
What happens is since
map.getBounds()
can return an out of range longitude value from leaflet behavior as noted in https://github.com/Leaflet/Leaflet/issues/1885, the attribution value will be set as empty on these occasions.Check the method definision
_update_attribution
and howgetBounds( )
is used.I was expecting to use
wrap( )
method inside_updateMapAttribution
so that the bound ranges will be in a valid range.PS: Take a look at how eaflet-bing-layer do this.