Google Maps API,我可以更改国家/地区名称吗? [英] Google Maps API, can I change country names?

查看:141
本文介绍了Google Maps API,我可以更改国家/地区名称吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的网站上使用Google Maps API v3制作地图,并将延迟语言设置为法语。

<脚本type =text / javascriptsrc =http://maps.google.com/maps/api/js?sensor=false&language=fr>



问题在于谷歌在法国翻译国名方面做得不好。为了弥补这一点,我想知道如果我可以重写所有的国家名称。我已经搜索和搜索,但唉,似乎只是基于样式的修改。这可以做到吗?如果是这样,怎么样?



谢谢,

解决方案

是隐藏地图上的所有标签并添加自己的标签。一旦您隐藏现有标签(使用风格地图),您可以添加标签您喜欢使用信息框。如果你有很多标签,这将不起作用,但如果只是国家名称,它应该是确定的。


I am using the Google Maps API v3 for a map on my Website, and am setting the laguage to French.

<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false&language=fr">

The problem is that Google has done a poor job for the French translation of country names. To remedy this, I'm wondering if I can rewrite all country names. I have searched and searched, but alas, nothing but style-based modifications it seems. Can this be done? If so, how?

Thanks,

解决方案

One option would be to hide all the labels on the map and add your own. Once you hide the existing labels (using a styled map), you can add labels you like to the map using infobox. This won't work if you have lots of labels, but if it is just the country names it should be OK.

这篇关于Google Maps API,我可以更改国家/地区名称吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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