Quantcast
Channel: User JohnP - Stack Overflow
Viewing all articles
Browse latest Browse all 37

Setting map language to English in Openstreetmap with LeafletJS

$
0
0

I'm using LeafletJS to add a map component to my app. Everything is fine and dandy except for the localization of the map. Some country names are shown in the local language (I'm assuming).

Is there a way to show the country names in English?

enter image description here

This is the current code that I use

L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {                attribution : '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors',                noWrap      : true }).addTo(map);

Viewing all articles
Browse latest Browse all 37

Latest Images

Trending Articles





Latest Images