Sha256: 296f2f9612b8c11106415b11a94d849bf2420dbe10370168d0b32816a1230168
Contents?: true
Size: 543 Bytes
Versions: 2
Compression:
Stored size: 543 Bytes
Contents
module ActiveAdmin module Views class YandexMapProxy < LatlngProxy def key @api_key ? "&apikey=#{@api_key}" : "" end def loading_map_code @loading_map ? "<script src=\"https://api-maps.yandex.ru/2.1/?lang=#{@lang}#{key}&load=Map,Placemark\" type=\"text/javascript\"></script>" : '' end def to_s File.open(File.expand_path('../templates/yandex.html', __FILE__)).read % [loading_map_code, @height, @id_lat, @id_lng, @default_lat, @default_lng, @map_zoom] end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
activeadmin_latlng-1.2.0 | lib/activeadmin/views/yandex_map_proxy.rb |
activeadmin_latlng-1.1.0 | lib/activeadmin/views/yandex_map_proxy.rb |