我使用谷歌地图工具中的key draggable zoom
和markers cluster
库。从今天下午我无法加载这两个库的源脚本。它似乎所有谷歌地图实用程序svn引用已关闭。有任何想法吗?google map utility svn down?
0
A
回答
1
在你的情况下,下面的脚本的URL覆盖keydragzoom库(标准和包装版本):
https://cdn.rawgit.com/googlemaps/v3-utility-library/master/keydragzoom/src/keydragzoom.js
https://cdn.rawgit.com/googlemaps/v3-utility-library/master/keydragzoom/src/keydragzoom_packed.js
和下面覆盖markerclusterer(标准和编译):
https://cdn.rawgit.com/googlemaps/js-marker-clusterer/gh-pages/src/markerclusterer.js
https://cdn.rawgit.com/googlemaps/js-marker-clusterer/gh-pages/src/markerclusterer_compiled.js
你”在实例化MarkerClusterer以访问来自GitHub的图像时,还需要指定imagePath选项:
var mc = new MarkerClusterer(map, markers, {
imagePath: 'https://cdn.rawgit.com/googlemaps/js-marker-clusterer/gh-pages/images/m'
});
上述方法,特异性设定的ImagePath位置,是必需的,因为MarkerClusterer库目前仍然含有(在2016五月13日)在下述的硬编码参照退役位置:
MarkerClusterer.prototype.MARKER_CLUSTER_IMAGE_PATH_ =
'https://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/' +
'images/m';
在生产中,应该使用上面的url(带有cdn前缀),因为它们有no traffic limits or throttling and the files are served via a super fast global CDN。但请记住,作为免费服务,它提供no uptime or support guarantees。
从Git的托管访问文件进行了更详细的在下面的SO回答:
2
相关问题
- 1. Google Fusion Tables API v1和GeoJSON到Google Maps Utility
- 2. google opensearch插件ajax drop down
- 3. Google Map referer-not-allowed-map-error
- 4. android google map onTap
- 5. Google map infowindow position
- 6. Google Map v2 android
- 7. Google Map Marker Arrow
- 8. Google Map MarkerClusterer
- 9. Tableview not down down
- 10. google map gpx loading,如何?
- 11. Div Floating left down down
- 12. Google Map API v2 java.lang.ClassNotFoundException:com.google.android.gms.maps.MapFragment
- 13. Google map with multiple annotations
- 14. Google map api - autocomplete(japanese)
- 15. Google Map Infowindow关闭?
- 16. Google Map infowindow问题
- 17. android google map marker marker
- 18. google map javascript api transit
- 19. Google Map javascript api key
- 20. Bootstrap Responsive Utility Class
- 21. diff-utility和ftp
- 22. python freeze utility
- 23. Google Code svn migration
- 24. Google map api Android崩溃
- 25. Google Map Directions.load失败,返回SERVER_ERROR
- 26. Google Map javascript MarkerManager标记不显示
- 27. Google Map API - 删除标记
- 28. Google Map V2 Android,“error import com.google.android.gms.maps.model.LatLng”
- 29. Google Map Api v2错误
- 30. google map api json pass array
好的解决方案!感谢帮助! – zxue