I easily managed to embed a google map in an html brick using the age old copy&paste in an iframe approach.
Unfortunately Google seems to have changed their policy recently and for a commercial website I am now obliged to use an API key to embed Google Maps in a website.
For my purposes a Google Static Map API (embed a map image without JavaScript or dynamic page loading) will do for now, I guess.
In the long run I would like to use customized maps with my content and imagery, but that means using Google Maps JavaScript API.
Has anybody done that with blocs already?
Where to put what?
If somebody in the know found the time to explain it in detail or may be even prepare a quick tutorial, it would be mighty helpful for such newbies as me.
But as soon as you want anything outside this standard, e.g. remove the (ugly) address box and only show the map with a marker, you have to get an API key.
"(…) Google Maps APIs Standard Plan updates implemented on June 22, 2016, are as follows:
We no longer support keyless access (any request that doesn’t include an API key). Future product updates are only available for requests made with an API key. (…)"
“(…) There are no usage limits for the Google Maps Embed API. You can embed maps or Street View panoramas on your high-traffic websites without fear of hitting a usage cap or query-per-second throttling. (…) The Google Maps Embed API may include on-map advertising. The ad format and the set of ads shown in any given map may change without notice.(…)” See: https://developers.google.com/maps/documentation/embed/guide
That is when I decided to go another way to embed a Google map.
You’re right that API now is required if you want to embed the map into your website’s code. Also, Google has started a new policy since July 16, 2018 - if you want to create a google maps API account now you need to give your credit card details and if you reach the limit of views you will be charged for your map, for more information you can check the article about it on [How To Fix] Action needed: YourDomain.com Requires a Google Maps Platform Account • NearPlace.com.