Sha256: 39e5a7bee38c2a4c75789f859388a8daedda1a952c99e42a847f45d271d08818
Contents?: true
Size: 567 Bytes
Versions: 1
Compression:
Stored size: 567 Bytes
Contents
module ActiveAdmin module Views class GoogleMapProxy < LatlngProxy def key @api_key ? "&key=#{@api_key}" : "" end def loading_map_code @loading_map ? "<script src=\"https://maps.googleapis.com/maps/api/js?language=#{@lang}#{key}&libraries=places&callback=googleMapObject.init\" async defer></script>" : '' end def to_s File.open(File.expand_path('../templates/google.html', __FILE__)).read % [loading_map_code, @height, @id_lat, @id_lng, @map_zoom, @default_lat, @default_lng] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activeadmin_latlng-1.2.0 | lib/activeadmin/views/google_map_proxy.rb |