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

TypeError: a is null #506

Closed krnaidas closed 8 years ago

krnaidas commented 8 years ago

The map is not showing when i load the site. When inspected, i get this error.

Tried using the example

Head: <%= render 'layouts/gmaps' %> <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> <%= yield :javascripts %> <%= csrf_meta_tags %> <%= render 'layouts/shim' %>

JS:

handler = Gmaps.build('Google'); handler.buildMap({ internal: {id: 'one_marker'}}, function(){ markers = handler.addMarkers([ { lat: 0, lng: 0, picture: { url: "https://addons.cdn.mozilla.net/img/uploads/addon_icons/13/13028-64.png", width: 36, height: 36 }, infowindow: "hello!" } ]); });

view:

apneadiving commented 8 years ago

Sorry I cant help with so little information. All examples work fine on the live version here: http://apneadiving.github.io/

So I bet there is a rails config you missed but its not really part of the gem so I have to close the issue