After realizing that my GMaps for Rails setup needs amendment, I've decided to insert javascript files directly into my app. Rails 4 - Gmaps4Rails - map won't render
I've downloaded the infobox and markerclusterer repositories and now find myself struggling to reference these necessary files in my application.
The folders containing the required files are located within my vendor directory.
The javascript files I need to use are: infobox.js and markerclusterer.js
You can locate them here:
vendor/js-marker-clusterer/src/makerclusterer.js
vendor/v3-utility-library/src/infobox.js
My goal is to replace the code in this view with these files:
<script src="//maps.google.com/maps/api/js?v=3.18&sensor=false&client=&key=&libraries=geometry&language=&hl=®ion="></script>
<script src="//google-maps-utility-library-v3.googlecode.com/svn/tags/markerclustererplus/2.0.14/src/markerclusterer_packed.js"></script>
<script src='//google-maps-utility-library-v3.googlecode.com/svn/tags/infobox/1.1.9/src/infobox_packed.js' type='text/javascript'></script> <!-- only if you need custom infoboxes -->
Should I reference these javascript files in app/application.js? If so, where should I start in the path since these files are not within the vendor/assets/javascripts folder?
Furthermore, I understand that I also need to incorporate the markerclusterer images. These images have been included in the cloned repository and are stored in the vendor/js-markerclusterer/images folder. How can I properly reference these images in the view for them to function correctly?