How to embed a Google Map iFrame with custom name
I am currently using the following iFrame
<iframe src="https://www.google.com/maps/embed/v1/place?key=APIKEYHERE&q=-34.753608,149.720462" frameborder="0" style="border:0"></iframe>
Although when rendered, the location name is longitude and latitude, the image is below.
Is it possible to add a name as a parameter to display in the upper left corner of the iFrame instead of longitude and latitude? There you can use the name of the locations as q
, although some addresses cannot be found, and the longitude and latitude are more accurate.
+3
source to share
1 answer
This appears to be the current limitation of the API. However, this is easy enough with the JavaScript API . It works more, but is much more flexible and powerful.
+2
source to share