使用ajax动态加载谷歌地图v3 [英] Load google maps v3 dynamically with ajax

查看:33
本文介绍了使用ajax动态加载谷歌地图v3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试使用 ajax 加载谷歌地图 v3 时,结果是:

When i try to load google maps v3 with ajax the result is:

<script src="http://maps.gstatic.com/intl/en_us/mapfiles/api-3/2/8a/main.js" type="text/javascript"></script>

在源代码中,我想用javascript document.write();

in the source code, i suppose that writes with javascript document.write();

没有 iframe 我怎么能做到这一点?

how i can do this without iframe?

谢谢.

推荐答案

这不受支持.请使用支持的方法加载 API:

This is not supported. Please load the API using supported methods:

http://code.google.com/apis/maps/documentation/javascript/tutorial.html#Loading_the_Maps_API

这篇关于使用ajax动态加载谷歌地图v3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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