0

我有一个项目女巫正在使用 googleMap,当我使用 localhost googleMap 正常工作并且一切正常,但是当我将它部署到另一台计算机上时,该站点无法工作(不显示 google map !!!)。我有一个有效的密钥,但仍然存在这个问题!请帮我!

4

3 回答 3

1

Do you manage correctly the errors from Google Map API in your code, in order to see if there is a given error returned by one of the google map function you use

Also, did you inspect the page when deployed on the other computer, with a tool like firebug/web inspector, to see if there are some errors linked to the problem

于 2009-07-29T11:38:30.570 回答
1

可能是跨站点脚本问题?GoogleMaps 首选项中有一个选项可让您关闭安全性。作为一项实验,请尝试将其关闭以查看是否有任何不同。(完成后不要忘记重新打开它!)

于 2009-07-29T11:24:43.397 回答
0

这听起来确实像一个 API 密钥问题。确保您使用正确的域来获取您的密钥。

如果您使用“example.com”获取密钥,example.com 上的所有子目录都将有效。

如果不是这样,您肯定需要使用 Firebug 来找出错误所在。

于 2009-07-29T14:47:38.980 回答