apneadiving / Google-Maps-for-Rails

Enables easy Google map + overlays creation in Ruby apps
https://apneadiving.github.io/
MIT License
2.27k stars 382 forks source link

Rawgit repo not loading #551

Closed Felipedelima123 closed 6 years ago

Felipedelima123 commented 6 years ago

Hello, I'm using this gem over 5 months, but about 8 minutes ago, my application can't load the JS on both cdn.rawgit. This is a big problem, I tried to use a different link that I find it on the Web, but still not working. The 2 links from the docs of the gem is not loading:

cdn.rawgit.com/mahnunchik/markerclustererplus/master/dist/markerclusterer.min.js cdn.rawgit.com/printercu/google-maps-utility-library-v3-read-only/master/infobox/src/infobox_packed.js

I try to load on the browser, but also didn't work.

I appreciate help.

Felipedelima123 commented 6 years ago

Hi guys, I was managed to solve the problem. I just find the MarkerClusterer on the Google Repository and create a JS file and put in the folder: assets/javascript.

Link of the JS file: https://raw.githubusercontent.com/googlemaps/js-marker-clusterer/gh-pages/src/markerclusterer.js

I also have to add the file as a precompile asset on config/initializers/assets.rb, with this:

Rails.application.config.assets.precompile += %w( markerclusterer.js )

Thanks.