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

Uncaught ReferenceError: module is not defined && MarkerWithLabel is not defined #515

Closed lucasgerard closed 8 years ago

lucasgerard commented 8 years ago

Hi,

I've suddenly have dependencies issues with the following config, and the map is broken on the following URL: https://jemengage.paris.fr/

    <script src="//maps.google.com/maps/api/js?sensor=false&libraries=geometry,places&key=<%= ENV['GOOGLE_MAPS_API_KEY'] %>" type="text/javascript"></script>
  <script src="//cdn.rawgit.com/mahnunchik/markerclustererplus/master/dist/markerclusterer.min.js"></script>
    <script src="https://cdn.rawgit.com/jesstelford/node-MarkerWithLabel/master/index.js"></script>

Any idea where does it come from??

AndresAbed commented 8 years ago

Move those scripts into the head tag and try.