beyondthestory / rails_admin_map_field

A plugin for RailsAdmin to provide a Google Maps input for lat/long fields
40 stars 73 forks source link

the js not load when i click edit again #6

Open dangluan opened 11 years ago

dangluan commented 11 years ago

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

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

AlexEscalante commented 8 years ago

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)

tinbka commented 8 years ago

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