module Opal::GoogleMaps

Constants

VERSION

Public Instance Methods

google_maps(key, libraries: [], async: false) click to toggle source
# File lib/opal/google_maps.rb, line 6
def google_maps key, libraries: [], async: false
  %{<script src="https://maps.googleapis.com/maps/api/js?key=#{key}&libraries=#{libraries.join(',')}"#{' async defer' if async}></script>}
end