Active Admin latitude and longitude plugin
gem 'activeadmin_latlng'
form do |f|
f.inputs do
f.input :lat
f.input :lng
f.latlng # add this
end
f.actions
end
-
lang
- language,en
by default. -
map
- map provider,google
by default. Available:google
,yandex
. -
id_lat
andid_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 tofalse
, if map loaded in other place.
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
Alexey Krylov
MIT License. Copyright 2016 Alexey Krylov