动态加载谷歌地图v3进行了阿贾克斯 [英] Load google maps v3 dynamically with ajax

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

问题描述

当我尝试加载谷歌地图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>

在源$ C ​​$ C,我想这与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:

<一个href="http://$c$c.google.com/apis/maps/documentation/javascript/tutorial.html#Loading_the_Maps_API">http://$c$c.google.com/apis/maps/documentation/javascript/tutorial.html#Loading_the_Maps_API

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

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