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

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

问题描述

我们的一个生产页面停止正常工作.将其追踪到其中一个依赖项不再存在的事实:

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

此 URL 用于作为网页基础的大多数示例代码.

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.

推荐答案

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

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.

更新

Google 实用程序库(包括信息框)现在托管在此处在 github 上.如前所述,在项目中并不意味着要从那里引用.

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天全站免登陆