Display a built-in google iframe map with marker at a specific latitude and longitude

Should it be possible?

I tried to find this, the docs show a similar example where you can insert a map with a marker in a specific "place", for example:

<iframe width="600" height="450" frameborder="0" style="border:0" src="https://www.google.com/maps/embed/v1/place?q=place_id:ChIJdd4hrwug2EcRmSrV3Vo6llI&key=..." allowfullscreen></iframe> 

Is there a way to show a marker, but using latitude and longitude instead of place without using js api?

+5
source share
2 answers

If you use the "place mode" of the built-in API , you can use the coordinates to place the marker:

 <!-- New York, NY, USA (40.7127837, -74.00594130000002) --> <iframe width="100%" height="450" frameborder="0" style="border:0" src="https://www.google.com/maps/embed/v1/place?q=40.7127837,-74.0059413&amp;key=YOUR_API_KEY"></iframe> 

working example

+16
source

No javascript code or google api key required:

 <iframe src="http://maps.google.com/maps?q=35.856737, 10.606619&z=15&output=embed" width="360" height="270" frameborder="0" style="border:0"></iframe> 

just replace the q variable values ​​with your coordinates.

Note: this does not allow more than one point.

+3
source

Source: https://habr.com/ru/post/1234962/


All Articles