  {"id":785,"date":"2018-10-23T15:55:53","date_gmt":"2018-10-23T19:55:53","guid":{"rendered":"https:\/\/new.umaine.edu\/userguide\/?p=785"},"modified":"2019-09-26T10:26:30","modified_gmt":"2019-09-26T14:26:30","slug":"embedding-a-google-map","status":"publish","type":"post","link":"https:\/\/umaine.edu\/userguide\/2018\/10\/23\/embedding-a-google-map\/","title":{"rendered":"Embedding a Google map"},"content":{"rendered":"<p>Embedding a Google map into a web page that uses 91¸£Àû\u2019s new web theme is easy, but it requires a small adjustment to the embed code.<\/p>\n<h3>Get the embed code:<\/h3>\n<p>1. <strong>Go to <a href=\"https:\/\/www.google.com\/maps\/\" target=\"_blank\" rel=\"noopener noreferrer\">Google maps<\/a><\/strong>. In the Search Google Maps text box, <strong>type in the address<\/strong> of the location you want to display on your web page.<\/p>\n<p>2. When the map appears, click on the <strong>Share<\/strong> icon.<\/p>\n<p>3. Select the <strong>Embed<\/strong> tab on the Share window.<\/p>\n<p>4. Click on <strong>Copy HTML<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-763 size-large\" src=\"https:\/\/umaine.edu\/userguide\/wp-content\/uploads\/sites\/33\/2018\/10\/embed-map-1024x686.jpg\" alt=\"Map Embed\" width=\"1024\" height=\"686\" srcset=\"https:\/\/umaine.edu\/userguide\/wp-content\/uploads\/sites\/33\/2018\/10\/embed-map-1024x686.jpg 1024w, https:\/\/umaine.edu\/userguide\/wp-content\/uploads\/sites\/33\/2018\/10\/embed-map-300x201.jpg 300w, https:\/\/umaine.edu\/userguide\/wp-content\/uploads\/sites\/33\/2018\/10\/embed-map-768x515.jpg 768w, https:\/\/umaine.edu\/userguide\/wp-content\/uploads\/sites\/33\/2018\/10\/embed-map-105x70.jpg 105w, https:\/\/umaine.edu\/userguide\/wp-content\/uploads\/sites\/33\/2018\/10\/embed-map-317x212.jpg 317w, https:\/\/umaine.edu\/userguide\/wp-content\/uploads\/sites\/33\/2018\/10\/embed-map-423x283.jpg 423w, https:\/\/umaine.edu\/userguide\/wp-content\/uploads\/sites\/33\/2018\/10\/embed-map-634x425.jpg 634w, https:\/\/umaine.edu\/userguide\/wp-content\/uploads\/sites\/33\/2018\/10\/embed-map-846x567.jpg 846w, https:\/\/umaine.edu\/userguide\/wp-content\/uploads\/sites\/33\/2018\/10\/embed-map-951x637.jpg 951w, https:\/\/umaine.edu\/userguide\/wp-content\/uploads\/sites\/33\/2018\/10\/embed-map.jpg 1194w\" sizes=\"auto, (max-width: 320px) 85vw, (max-width: 768px) 67vw, (max-width: 1024px) 62vw,1024px\" \/><\/p>\n<h3>Embed the code in your web page:<\/h3>\n<p><strong>1. Open the web page<\/strong> (in WordPress) where you want to embed the map. <strong>Place your cursor<\/strong> in the editing window where you want the map to display.<\/p>\n<p><b>2. Paste in the code<\/b> from Google:<\/p>\n<p style=\"padding-left: 30px;\"><strong><span style=\"color: #ff0000;\">&lt;iframe<\/span><\/strong> src=&#8221;https:\/\/www.google.com\/maps\/embed?pb=!&#8230;&#8221; width=&#8221;600&#8243; height=&#8221;450&#8243; frameborder=&#8221;0&#8243; style=&#8221;border:0&#8243; allowfullscreen<strong><span style=\"color: #ff0000;\">&gt;&lt;\/iframe&gt;<\/span><\/strong><\/p>\n<p><b>3. Change the code<\/b> as follows (compare the <strong><span style=\"color: #ff0000;\">red<\/span><\/strong> text above and below):<\/p>\n<p style=\"padding-left: 30px;\"><strong><span style=\"color: #ff0000;\">[um-iframe<\/span><\/strong> src=&#8221;https:\/\/www.google.com\/maps\/embed?pb=!&#8230;&#8221; width=&#8221;600&#8243; height=&#8221;450&#8243; frameborder=&#8221;0&#8243; style=&#8221;border:0&#8243; allowfullscreen<strong><span style=\"color: #ff0000;\">]<\/span><\/strong><\/p>\n<p><strong>4. Your map will not display in the editing window<\/strong>; you\u2019ll see only the code. <b>To view the map<\/b>, save your changes and preview the page in your browser.<\/p>\n<p><strong>NOTE:<\/strong> Similar code changes need to be made when embedding a <strong>Google Calendar<\/strong> into your web page.<\/p>\n<p>Adapted from \u201cHow To\u201d Tips for 91¸£Àû Extension Web Managers, University of Maine Cooperative Extension.<br \/>\n<a href=\"https:\/\/extension.umaine.edu\/plugged-in\/\">Link to Plugged In website<\/a><\/p>\n<h3>Map Icons<\/h3>\n\n\t<div class=\"resource-embed post-template-resource default\" data-embedded-id=\"780\">\n\n\t\t<div class=\"resource-icon default\"><span class=\"resource-type\">default<\/span><\/div>\n\n\t\t<div class=\"content-wrapper resource-wrapper\">\n\t\t\t<h1 class=\"post-title resource-title\"><a href=\"https:\/\/umaine.edu\/userguide\/wp-content\/uploads\/sites\/33\/2018\/10\/Map-Icons2.zip\" target=\"_blank\">Map Icon Set 1<\/a><\/h1>\n\n\t\t\t\t\t\t\t<div class=\"post-content\"><p>Set of map icons from the 91¸£Àû campus map<\/p>\n<\/div>\n\t\t\t\t\t<\/div>\n\n\t\t<div class=\"modified-time resource-updated\">Updated<br><span>10.24.18<\/span><\/div>\n\n\t\t\t\t\t<div class=\"resource-button resource-download\"><a class=\"umaine-button\" href=\"https:\/\/umaine.edu\/userguide\/wp-content\/uploads\/sites\/33\/2018\/10\/Map-Icons2.zip\" target=\"_blank\">View<span class=\"screen-reader-text\">Map Icon Set 1<\/span><\/a><\/div>\n\t\t\t<\/div>\n\t\n","protected":false},"excerpt":{"rendered":"<p>Embedding a Google map into a web page that uses 91¸£Àû\u2019s new web theme is easy, but it requires a small adjustment to the embed code. Get the embed code: 1. Go to Google maps. In the Search Google Maps text box, type in the address of the location you want to display on your [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"6","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":"","spc_primary_category":0},"categories":[6],"tags":[],"class_list":["post-785","post","type-post","status-publish","format-standard","hentry","category-advice"],"taxonomy_info":{"category":[{"value":6,"label":"Advice"}]},"featured_image_src_large":false,"author_info":{"display_name":"bmccann","author_link":"https:\/\/umaine.edu\/userguide\/author\/bmccann\/"},"comment_info":"","category_info":[{"term_id":6,"name":"Advice","slug":"advice","term_group":0,"term_taxonomy_id":6,"taxonomy":"category","description":"","parent":0,"count":69,"filter":"raw","cat_ID":6,"category_count":69,"category_description":"","cat_name":"Advice","category_nicename":"advice","category_parent":0}],"tag_info":false,"_links":{"self":[{"href":"https:\/\/umaine.edu\/userguide\/wp-json\/wp\/v2\/posts\/785","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/umaine.edu\/userguide\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/umaine.edu\/userguide\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/umaine.edu\/userguide\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/umaine.edu\/userguide\/wp-json\/wp\/v2\/comments?post=785"}],"version-history":[{"count":2,"href":"https:\/\/umaine.edu\/userguide\/wp-json\/wp\/v2\/posts\/785\/revisions"}],"predecessor-version":[{"id":1543,"href":"https:\/\/umaine.edu\/userguide\/wp-json\/wp\/v2\/posts\/785\/revisions\/1543"}],"wp:attachment":[{"href":"https:\/\/umaine.edu\/userguide\/wp-json\/wp\/v2\/media?parent=785"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/umaine.edu\/userguide\/wp-json\/wp\/v2\/categories?post=785"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/umaine.edu\/userguide\/wp-json\/wp\/v2\/tags?post=785"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}