Giter VIP home page Giter VIP logo

activeadmin-latlng's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

activeadmin-latlng's Issues

Allow pin disable

It would be great to have a further option:

disabled (default false)

to prevent the interactions with map (point location changes).

Google maps not working

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?

Project status & Feature suggestion/request

Hi, is this project/gem still being actively maintained? If not are you aware of an active fork?

Our internal team would like the feature where if they enter an address and chose a result it would also copy the address details into a form. I'm happy to contribute this for google maps, but if its not going to get merged/released then I'll fork for our own use.

Thanks!

Active Record Associations - has_many locations

Hey,

I've noticed the gem doesn't work with has_many relations. I was wondering if there's a way to bypass this or has that not been implemented at all?

e.g.

f.inputs do
   f.has_many :locations do |g|
       g.input :lan
       g.input :lng
       g.lanlng ...
   end
end 

I've tried adding the map directly into the FormBuilder < ::Formtastic::FormBuilder the same way you've added it to the form but I couldn't really get it to work. I tried playing around with the has_many fields a bit but with no success.

Cheers

Inaccurate location identification with yandex

I tried adding the coordinates for Delhi, India but the maps shows it somewhere in Saudi Arabia.
Screenshot 2020-02-23 at 3 40 12 PM

Here is the code,

 f.latlng lang: :en, id_lat: f.object.latitude,
                     id_lng: f.object.longitude,
                     default_lat: f.object.latitude,
                     default_long: f.object.longitude,
                     map: :yandex,
                     api_key_env: Rails.application.secrets[:geocode][:api_key]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.