我使用谷歌地圖工具中的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 map kml implementation
- 2. Google Fusion Tables API v1和GeoJSON到Google Maps Utility
- 3. google opensearch插件ajax drop down
- 4. Google Glass和Google Map
- 5. Google Map referer-not-allowed-map-error
- 6. android google map onTap
- 7. Google Map Marker Arrow
- 8. Google Map MarkerClusterer
- 9. Google map infowindow position
- 10. google map directons
- 11. Google Map v2 android
- 12. Google Map Api iPhone
- 13. google map gpx loading,如何?
- 14. Tableview not down down
- 15. Div Floating left down down
- 16. Google app engine down:服務器錯誤
- 17. Google Map LatLngBounds for polygon.setPaths
- 18. Google Map infowindow問題
- 19. android google map marker marker
- 20. Google Map api 3 zoom
- 21. Google map with multiple annotations
- 22. Google Map API v3 MySQL?
- 23. google map in codename one
- 24. Google Map javascript api key
- 25. Google Map with Custom Makers
- 26. Google Map API v2 java.lang.ClassNotFoundException:com.google.android.gms.maps.MapFragment
- 27. Android Google Map V2 InfoWindow
- 28. google map javascript api transit
- 29. Google map api - autocomplete(japanese)
- 30. Google Map Infowindow關閉?
好的解決方案!感謝幫助! – zxue