digidem / leaflet-bing-layer

Bing Maps Layer for Leaflet v1.0.0
http://digidem.github.io/leaflet-bing-layer/
87 stars 53 forks source link

Fixed imageryProviders and imageUrlSubdomains #25

Closed aparajita closed 6 years ago

aparajita commented 6 years ago

It turns out only 'Aerial', 'AerialWithLabels' and 'Road' imagery sets return metadata with resource.imageryProviders defined. Thus later uses of this._imageryProviders was failing. This fix ensures that there is at least an empty array.