收到错误Gmap2是未定义的 [英] getting error Gmap2 is undefined

查看:79
本文介绍了收到错误Gmap2是未定义的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在使用Google Map api,它在firefox中工作正常,但在IE中产生错误.它在GMAp2()中给出了undefined的错误.我已经搜索了它,但是将为api键版本提供的解决方案,我也更改了版本但是仍然遇到错误.现在我不知道解决方案是什么,所以请zzzzzz帮助我.

Hi,

I am using Google map api,it works fine in firefox but creates error in IE .It gives error in GMAp2() as undefined .I heve searched for it but solution which will provided is for api key version ,i have change the version also but still the error is encountered.Now i dont know what the solution is so plzzzz help me for this.

推荐答案

============ =
在html元素之间使用此脚本.
============
Use this script between element of html.


< pre lang ="C ++">& quot; Gmap2 is undefined&;并且没有通过Subgurim控件的asp.net应用程序的Google Maps或警报
(但这将适用于您正在使用的任何一种技术)

几天前介入此事.起初以为是代码问题,
但是Web应用程序在不同的机器上运行良好(域中的Windows 7工作站,
Windows 7工作站不在域中,Windows Server 2003 sp2在域中).
事实证明,这是Windows Server 2003 R2 sp1上增强的安全性的问题.
解决方案是:

在Windows服务器上启动Internet Explorer.
在工具"菜单上,单击"Internet选项".
单击安全性"选项卡,然后单击受信任的站点".
单击站点.

在将该网站添加到区域中"中,键入以下每个网站地址,然后单击添加":
http://maps.gstatic.com
http://maps.google.com
单击关闭",然后单击确定".

Cimperiali</pre>
<pre lang="C++">&quot;Gmap2 is undefined&quot; and no google maps or alerts via Subgurim control for an asp.net application
(but it will apply to any kind of technology you&#39;re using)

Stepped into this matter a few days ago. At first thought it was a matter of code,
but web app worked fine on trhee different machines (a windows 7 workstation in domain,
a windows 7 workstation out of domain, a windows server 2003 sp2 in domain).
It turned out to be a matter of enanched security ona windows server 2003 R2 sp1.
Solution was:

Start Internet Explorer on windows server.
On the Tools menu, click Internet Options.
Click the Security tab, and then click Trusted Sites.
Click Sites.

In Add this Web site to the zone, type each of the following Web site addresses, and then click Add:
http://maps.gstatic.com
http://maps.google.com
Click Close, and then click OK.

Cimperiali</pre>


这篇关于收到错误Gmap2是未定义的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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