google api 帮忙看看 谢谢诶

jiouweiyu 2009-05-20 12:06:19
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Google ditu</title>
<script src="http://ditu.google.com/maps?file=api&v=3&key=ABQIAAAA8QFSOtGMY_MLT27PVAQ5HxRi_j0U6kJrkFvY4-OX2XYmEAa76BSLsemvx1_i0iF-
ow0eoDWgLeE0jQ" type="text/javascript"></script>
<script type="text/javascript">
/*var polyline = new GPolyline([
new GLatLng(30.7958, 106.573),
new GLatLng(30.7958, 106.073)
], "#ff0000", 2);
map.addOverlay(polyline);
*/
function initialize()
{
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(30.7958, 106.073), 14);
map.enableGoogleBar();/*使用Google搜索工具*/
GMarker(new GLatLng(30.7958, 106.073),G_DEFAULT_ICON );
map.addControl(new GLargeMapControl());
map.openInfoWindow(map.getCenter(),document.createTextNode("欢迎您的查询"));
}
}
</script>
</head>
<body onload="initialize()">
<div align="center">
<div id="map_canvas" style="width: 800px; height: 900px"></div>
</div>
</body>
只有在charset=utf-8时才能正常显示 当改成gbk 时就不能显示
有没有解决办法 谢谢
...全文
52 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

6,720

社区成员

发帖
与我相关
我的任务
社区描述
专题开发/技术/项目 Google技术社区
社区管理员
  • Google技术社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧