Sha256: 65e13993c193ab72563e8e5fd4cd24ed0ed94ba3c6d5ccad491e35c3b3ec6af4
Contents?: true
Size: 1.62 KB
Versions: 1
Compression:
Stored size: 1.62 KB
Contents
# ActiveadminLatlng [](https://travis-ci.org/forsaken1/activeadmin-latlng) [](https://codeclimate.com/github/forsaken1/activeadmin-latlng) [](https://codecov.io/gh/forsaken1/activeadmin-latlng) Active Admin latitude and longitude plugin  ## Getting started ```ruby gem 'activeadmin_latlng' ``` ```ruby form do |f| f.inputs do f.input :lat f.input :lng f.latlng # add this end f.actions end ``` ## Settings * `lang` - language, `en` by default. * `map` - map provider, `google` by default. Available: `google`, `yandex`. * `id_lat` and `id_lng` - identificator of latitude and longitude inputs. `<model_name>_lat` and `<model_name>_lng` by default. * `height` - map height in pixels, `400` by default. * `loading_map` - loading map library. `true` by default. Set to `false`, if map loaded in other place. * `api_key` - you can send api key to map. WARNING! This is unsafe method, better use ENV-variable. * `api_key_env` - you can send name of ENV-variable where storing API key for map. ### Example ```ruby form do |f| f.inputs do f.input :lat f.input :lng f.latlng lang: :ru, map: :yandex, height: 500, loading_map: false end f.actions end ``` ## Contributors Alexey Krylov ## License MIT License. Copyright 2017 Alexey Krylov
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activeadmin_latlng-0.3.0 | README.md |