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

Culture option not working #49

Open Joker-jar opened 4 years ago

Joker-jar commented 4 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!