How to centre google maps embeded api in Iframe
hi, i am trying to centre google maps using the following code. what am i doing wrong please?
<iframe width="100%" height="100%" src="https://www.google.com/maps/embed/v1/place?q=The+Loft+Bar+and+Restaurant+Falcarragh&key=AIzaSyCYsX1FHpL2MqRyUN7W79oEp7P*********¢ er=-55.1364,8.1049&zoom=10"></iframe>
I'm not sure that you have followed the Google maps instructions. You should select a map size to embed. When you have done that, make a note of the dimensions of the size you have chosen. Set the IFrame to the same size (instead of 100%). Then position the IFrame where you want the map to be. Voila!
The Google Maps Embed API uses a simple HTTP request to return a dynamic, interactive map. The map can be easily embedded in your web page by setting the Embed API URL as the src attribute of an iframe:
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread