beyondthestory/rails_admin_map_field

the js not load when i click edit again

Opened this issue · 2 comments

ReferenceError: google is not defined
[Break On This Error]

var latlng = new google.maps.LatLng(-34.0, 151.0);

Happened to me also. I saw the map once, but that's all. I get this message:

Uncaught InvalidValueError: init_map_field is not a function

Using rails_admin (0.7.0)

For someone else who encounters this,

  1. copy /app/views/rails_admin/main/_place_select.html.haml to /app/views/rails_admin/main/_place_select.html.haml
  2. move swap javascript_include_tag line under javascript_tag