Google Maps API V3 Infobox.js已删除 [英] Google Maps API V3 Infobox.js removed

查看:118
本文介绍了Google Maps API V3 Infobox.js已删除的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的一个制作页面停止正常工作。
追踪到其中一个依赖不再存在的事实:

http://google-maps-utility-library-v3.googlecode.com/svn/trunk/infobox/src/infobox.js



此网址用于大部分作为网页基础的示例代码。

这可能很容易解决,但一个快速的谷歌显示没有人注意到这一点,我认为它发生在最后一个小时,只是想把信息放在那里大家都在恐慌。

解决方案

似乎库正在被移动到 Github (似乎infobox.js还没有移动),请参阅主页上的公告: https://code.google.com/p/google-maps-utility-library-v3/
但是,您的代码的问题仍然是,从code.google.com svn存储库中引用代码不是一个好习惯。这就像引用Github中的代码一样,它可以随时更改/移动/删除。您应该下载代码并将其作为.js文件包含在您的项目中,或者将它自己托管在某个CDN服务器上。


$ b

更新



Google实用程序库(包括信息框)托管于现在在github上。如前所述,从项目中引用它并不意味着。


One of our production pages stopped working properly. Tracked it down to the fact that one of the dependencies does not exist anymore:

http://google-maps-utility-library-v3.googlecode.com/svn/trunk/infobox/src/infobox.js

This URL is used in most of the example codes that were the basis of the webpage.

This is probably easily solved but a quick google showed no one has noticed this, I think it has happened in the last hour and just wanted to put the information out there in case people are panicking.

解决方案

It seems that the library is being moved to Github (it seems the infobox.js wasn't moved yet), see the announcement on main page: https://code.google.com/p/google-maps-utility-library-v3/ But still, the problem with your code is that it's not a good practise to reference code from code.google.com svn repository. It's like referencing a code from Github, it can be changed/moved/removed any time. You should either download the code and include it in your project as .js file or host it yourself on some CDN server.

UPDATE

The google utility library (including infobox) is hosted here on github now. As said before, it's not mean to be referenced from there in projects.

这篇关于Google Maps API V3 Infobox.js已删除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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