<script id="google-maps-api-js" src="//maps.google.com/maps/api/js?Map&#038;key=AIzaSyAJU9QM02wj3r1w3cdW9fqgCJ0HeDgvG6E&#038;ver=7.0.4"></script>
{"id":3624,"date":"2017-01-08T16:39:10","date_gmt":"2017-01-09T00:39:10","guid":{"rendered":"https:\/\/demo.bnecreative.com\/story\/?page_id=3624"},"modified":"2017-01-08T16:43:46","modified_gmt":"2017-01-09T00:43:46","slug":"google-maps","status":"publish","type":"page","link":"https:\/\/demo.bnecreative.com\/story\/google-maps\/","title":{"rendered":"Google Maps"},"content":{"rendered":"<p>There are many ways to display a Google Map. Traditionally you would use an iframe, which is still an option; however, we decided to go ahead and build in the Google Maps API to easily embed an interactive Google map using the [map] shortcode.<\/p>\n\t\t\t<div id=\"bne_map_6aa205d805574\" class=\"bne-map\" style=\"height: 350px; width: 100%\"><\/div>\n\t\t\t\t\t\t\n<div class=\"divider  divider-solid divider-center\" style=\"border-color:#ccc; width:100%;\"><\/div><div class=\"clear\"><\/div>\n<h2>API Requirements<\/h2>\n<figure id=\"attachment_360\" aria-describedby=\"caption-attachment-360\" style=\"width: 364px\" class=\"wp-caption alignright\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-360\" src=\"http:\/\/docs.bnecreative.com\/wp-content\/uploads\/2016\/11\/google-maps-api-1024x554.jpg\" alt=\"Appearance &gt; Theme Options &gt; General\" width=\"364\" height=\"197\" \/><figcaption id=\"caption-attachment-360\" class=\"wp-caption-text\">Appearance &gt; Theme Options &gt; General<\/figcaption><\/figure>\n<p>When using the built in Google Maps shortcode, you must first define an API key within Theme Options. This is because starting from June 2016, Google requires an API key to embed their maps on a site using their API scripts. If your site was already using the Google API prior then you should be fine.<\/p>\n<p>The API key is free up to a certain amount of request per month. In most cases, you should not hit this limit.<\/p>\n<div class=\"clear\"><\/div>\n<div class=\"divider  divider-solid divider-center\" style=\"border-color:#ccc; width:100%;\"><\/div><div class=\"clear\"><\/div>\n<h2>Displaying<\/h2>\n<p>The map itself can be displayed as an image or interactive map and with the interactive map, you can disable the controls, zoom and scroll features.<\/p>\n<div class=\"column grid_6 \">\n<h3>Interactive Version<\/h3>\n\t\t\t<div id=\"bne_map_6aa205d80574b\" class=\"bne-map\" style=\"height: 250px; width: 100%\"><\/div>\n\t\t\t\t\t\t\n<\/div><!-- .column (end) -->\n<div class=\"column grid_6 last \">\n<h3>Static Version (image)<\/h3>\n<img loading=\"lazy\" decoding=\"async\" class=\"bne-static-map\" width=\"600\" height=\"250\" alt=\"Map\" src=\"https:\/\/maps.googleapis.com\/maps\/api\/staticmap?zoom=12&size=600x250&scale=2&center=Tampa%2C+FL&format=jpg&markers=Tampa%2C+FL&maptype=roadmap&key=AIzaSyAJU9QM02wj3r1w3cdW9fqgCJ0HeDgvG6E\">\n<\/div><!-- .column (end) -->\n<div class=\"clear\"><\/div>\n<h3>Map Styles<\/h3>\n<div class=\"column grid_6 \">\n<p><strong>Roadmap<\/strong><\/p>\n\t\t\t<div id=\"bne_map_6aa205d8059c1\" class=\"bne-map\" style=\"height: 250px; width: 100%\"><\/div>\n\t\t\t\t\t\t\n<\/div><!-- .column (end) -->\n<div class=\"column grid_6 last \">\n<p><strong>Satellite<\/strong><\/p>\n\t\t\t<div id=\"bne_map_6aa205d805a85\" class=\"bne-map\" style=\"height: 250px; width: 100%\"><\/div>\n\t\t\t\t\t\t\n<\/div><!-- .column (end) -->\n<div class=\"clear\"><\/div>\n<div class=\"column grid_6 \">\n<p><strong>Hybrid<\/strong><\/p>\n\t\t\t<div id=\"bne_map_6aa205d805b13\" class=\"bne-map\" style=\"height: 250px; width: 100%\"><\/div>\n\t\t\t\t\t\t\n<\/div><!-- .column (end) -->\n<div class=\"column grid_6 last \">\n<p><strong>Terrain<\/strong><\/p>\n\t\t\t<div id=\"bne_map_6aa205d805b99\" class=\"bne-map\" style=\"height: 250px; width: 100%\"><\/div>\n\t\t\t\t\t\t\n<\/div><!-- .column (end) -->\n<div class=\"clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>There are many ways to display a Google Map. Traditionally you would use an iframe, which is still an option; however, we decided to go [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-3624","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/demo.bnecreative.com\/story\/wp-json\/wp\/v2\/pages\/3624","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/demo.bnecreative.com\/story\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/demo.bnecreative.com\/story\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/demo.bnecreative.com\/story\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/demo.bnecreative.com\/story\/wp-json\/wp\/v2\/comments?post=3624"}],"version-history":[{"count":4,"href":"https:\/\/demo.bnecreative.com\/story\/wp-json\/wp\/v2\/pages\/3624\/revisions"}],"predecessor-version":[{"id":3632,"href":"https:\/\/demo.bnecreative.com\/story\/wp-json\/wp\/v2\/pages\/3624\/revisions\/3632"}],"wp:attachment":[{"href":"https:\/\/demo.bnecreative.com\/story\/wp-json\/wp\/v2\/media?parent=3624"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}