简体   繁体   English

Google的OpenLayers Google图层

[英]OpenLayers Google layer in japanese

OpenLayers Google http://desmond.imageshack.us/Himg31/scaled.php?server=31&filename=screenshot20120814at916.png&res=landing OpenLayers Google http://desmond.imageshack.us/Himg31/scaled.php?server=31&filename=screenshot20120814at916.png&res=landing

I am working on an OpenLayers Map, with one OSM layer and one Google Hybrid. 我正在使用一个OSM层和一个Google Hybrid制作一个OpenLayers地图。 The problem is that all the towns are in Chinese/Japanese? 问题是所有城镇都是中文/日语? Obviously I would like to have them in Dutch/English. 显然,我希望将它们用荷兰语/英语提供。 Does anybody know what I did wrong? 有人知道我做错了吗? Here is where I load my map: 这是我加载地图的位置:

// add google aerial layer
var googleLayer     = new OpenLayers.Layer.Google(
     "satellite",
     {type: google.maps.MapTypeId.HYBRID, numZoomLevels: 19}
);
window.map[page_id].addLayer(googleLayer);
googleLayer.mapObject.setTilt(0);

The markers also tend to move around when pannning the map. 平移地图时,标记也会趋于四处移动。 Is that fixable? 那可以解决吗?

According to Google Maps documentation you can enforce certain language by specifying language parameter when importing google maps script: 根据Google Maps 文档,您可以在导入google maps脚本时通过指定language参数来强制使用某些语言:

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

Try language=en to enforce english labels 尝试使用language=en强制使用英文标签

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM