Google Mapsをhamlに埋め込む方法
GoogleMapを表示されたい!って思って色々調べているとgmaps4rails
っていうgemがあるらしいんだけど、うまくいかなかった
https://github.com/apneadiving/Google-Maps-for-Rails
なので最低限のやり方として埋め込む方法をメモ。
コードはこちら。
そのままコピペすると、htmlの形式なので%
付けて()
で囲めばOK!
%div
%iframe(src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3280.5500946428474!2d133.7318036152679!3d34.691302780436835!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x355154eaafef50f3%3A0x1eef346c53839b77!2z44CSNzE5LTExNTQg5bKh5bGx55yM57eP56S-5biC5LqV5bC76YeO77yR77yZ77yW77yY!5e0!3m2!1sja!2sjp!4v1494925004096" width="600" height="450" frameborder="0" style="border:0" allowfullscreen)
Author And Source
この問題について(Google Mapsをhamlに埋め込む方法), 我々は、より多くの情報をここで見つけました https://qiita.com/opiyo_taku/items/11fb28c6f6a11b2d5330著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .