forsaken1 / activeadmin-latlng

Active Admin plugin for setting up latitude and longitude
https://rubygems.org/gems/activeadmin_latlng
MIT License
37 stars 19 forks source link

Google maps not working #12

Closed letiesperon closed 6 years ago

letiesperon commented 6 years ago

Hi! Cool gem. I'm having some issues though.

If I add

f.latlng lang: :en, map: :google, id_lat: :user_latitude, id_lng: :user_longitude

It does not work :( Do you know what's going on?

forsaken1 commented 6 years ago

@letiesperon Hello! Thanks! Try f.latlng, I think id_lat and id_lng inputs not found on your admin page

letiesperon commented 6 years ago

What do you mean by tray f.latlng ?

forsaken1 commented 6 years ago

@letiesperon I mean try without params id_lat, id_lng Also, you can update gem to last version 1.2.2

letiesperon commented 6 years ago

I updated and it works. I wasn't including the google api key and I didn't have my key allowed for the needed services: Google maps js API, and places autocomplete right?

I'm closing this since it was my fault.