rand
rand

Reputation: 515

Changing the leaflet map language?

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

Upvotes: 1

Views: 7419

Answers (1)

Josh
Josh

Reputation: 3442

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.

Upvotes: 3

Related Questions