我使用以下iframe代码将Google嵌入到我的页面中:
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d2969.0008243929688!2d12.508442200000003!3d41.914341!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x132f6172a14507ef%3A0xc7f898288c2080d1!2sCorso+Trieste%2C+1%2C+00198+Roma!5e0!3m2!1sit!2sit!4v1430587054219" width="600" height="450" frameborder="0" style="border:0"></iframe>
它运行良好,但地图指示是以浏览器设置的语言显示的(例如,如果语言浏览器设置为意大利语,则地图指示以意大利语显示)。
我怎么能强迫任意映射语言(例如德语)?
我试图添加&language=de参数,但它不起作用
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d2969.0008243929688!2d12.508442200000003!3d41.914341!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x132f6172a14507ef%3A0xc7f898288c2080d1!2sCorso+Trieste%2C+1%2C+00198+Roma!5e0!3m2!1sit!2sit!4v1430587054219&language=de" width="600" height="450" frameborder="0" style="border:0"></iframe>
发布于 2015-05-02 17:45:34
玩得很开心,但我也没能让它起作用。在谷歌看来,这是个bug。
我所看到的另一种可行的方法是使用Google ,这是更多的工作,但language参数似乎有效。
这里有一个例子:https://developers.google.com/maps/documentation/javascript/examples/map-language
https://stackoverflow.com/questions/30005358
复制相似问题