更改传单地图语言? [英] Changing the leaflet map language?

查看:63
本文介绍了更改传单地图语言?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请问是否可以在特定区域中**更改传单地图**图块的语言?就像将其更改为阿拉伯语

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

推荐答案

如果使用此 Leaflet的插件,给出Google地图图块,则将根据 Google的API概念页面.

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.

您可以通过在平铺服务器链接中添加语言标识符来获得各种语言的开放街道地图"标签.像这样: http://{s} .www.toolserver.org/tiles/osm-labels-ar/{z}/{x}/{y} .png 您仍然需要背景瓷砖.

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.

这是一个有效的 jsFiddle阿拉伯语版.

可以在 toolserver.org 中找到语言列表.

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.

这篇关于更改传单地图语言?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆