Google 未找到 Maps MarkerManager V3 (404)

Google Maps MarkerManager V3 (404) not found

我们从这个位置使用 Markermanager https://google-maps-utility-library-v3.googlecode.com/svn/tags/markermanager/1.0/src/markermanager.js. Today it vanished silently and we found here 年,它被移动到 github。

您将在这里找到一个新的打包版本:https://raw.githubusercontent.com/googlemaps/v3-utility-library/master/markermanager/src/markermanager_packed.js。我希望这个帖子能帮助其他人比我更快地找到它。

另请参阅 Chris Cook 的回答,他提供了 CDN url...

As Google moved the source over to GitHub a while back, the new GitHub version can be accessed from RawGit 通过使用以下脚本 url(标准和打包版本):

https://cdn.rawgit.com/googlemaps/v3-utility-library/master/markermanager/src/markermanager.js
https://cdn.rawgit.com/googlemaps/v3-utility-library/master/markermanager/src/markermanager_packed.js

虽然上述网址(带有 cdn 前缀)具有 no traffic limits or throttling and the files are served via a super fast global CDN, please bear in mind that RawGit is a free hosting service and offers no uptime or support guarantees.

访问通过 GitHub 维护的文件在以下 SO 回答中有更详细的介绍:

Link and execute external JavaScript file hosted on GitHub

此 post 还涵盖了这一点,如果您要链接到 GitHub 上的文件,在生产环境中您应该考虑针对特定的发布标签以确保您获得脚本的特定发行版本。

例如,您可以使用以下脚本 url(标准和打包版本)定位 markermanager 库的 1.2 版本:

https://cdn.rawgit.com/googlemaps/v3-utility-library/markermanager/1.2/markermanager.js
https://cdn.rawgit.com/googlemaps/v3-utility-library/markermanager/1.2/markermanager_packed.js

或者,您可以下载该库并将其直接包含在您的项目中以用于生产目的。

GitHub 上 v3-utility-library 的完整列表:

v3-utility-library

Tnx link 至 markermanager.js

我在我的项目中也使用了markerwithlabel.js,得到错误404。

新 link 到 markerwithlabel.js

https://cdn.rawgit.com/googlemaps/v3-utility-library/master/markerwithlabel/src/markerwithlabel.js