digidem / leaflet-bing-layer

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

Culture option not working #49

Open Joker-jar opened 5 years ago

Joker-jar commented 5 years ago

I tried to use map with russian labels:

L.tileLayer.bing({bingMapsKey: '*****', id: 'bing', imagerySet: 'AerialWithLabelsOnDemand', culture: 'ru', attribution: '.....'}),

But labels still in en_US. So i added this line before line 163 "return url" in getTileUrl method:

url = url.replace(/en\-US/, this.options.culture)

And now all works.

grumpypixel commented 3 years ago

And I was wondering why my desperate attempts to set the culture option don't work. Thanks for the quick-fix, Joker-Jar!