1
votes

Please is it possible to ** change the language of leaflet map ** tiles in a specific area? like changing it to Arabic language

1
Leaflet by itself has no map data. The tiles you're using are from which source?psousa

1 Answers

3
votes

If you use this plugin for Leaflet which gives Google Map tiles, then that will be based on your Browser settings according to Google's API Concepts page.

You can get Open Street Map labels in various languages by adding the language identifer to the tile server link. Like this: http://{s}.www.toolserver.org/tiles/osm-labels-ar/{z}/{x}/{y}.png You still need the background tiles as well.

Here's a working jsFiddle for Arabic.

The list of languages can be found at toolserver.org.

For other tile servers, I don't imagine there is much in other languages, but that would specific to each company that generates them.