Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to embed Google Maps in GitHub markdown files

Tags:

html

github

I am looking for a way to embed Google Maps in GitHub markdown files. I know that GitHub does not allow the user to use the <iframe> tag in .md files, and therefore embedding Google Maps in a .md file might be impossible.

I there any way to use Google Maps in GitHub markdown files?

like image 983
Akira Okumura Avatar asked Feb 01 '16 21:02

Akira Okumura


People also ask

How do I embed a file in markdown?

You can now attach files, including images, to markdown files while you're editing them in the web. This works just like file attachments in issues and pull requests and supports the same file types. Just drag and drag, click and select, or paste.

Can you embed free Google Maps?

Note: The Maps Embed API is available at no charge, and you can use the API without having a billing account.


1 Answers

Go to google maps, search your location, go to 'share' and copy the embed link; paste it into your markdown file and voila!

e.g. try this:

<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d306141.380212437!2d126.3453416664724!3d33.3711157139061!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x350ce3544cc84045%3A0x66bc36d2981ebf31!2sJeju-do%2C+South+Korea!5e0!3m2!1sen!2sus!4v1473136714592" width="600" height="450" frameborder="0" style="border:0" allowfullscreen></iframe>

Hope this helps

like image 63
user1487547 Avatar answered Oct 27 '22 14:10

user1487547