New Google Maps query string syntax for a marker

1.2k Views Asked by At

In my web page code, I used to have a link to open a new window with Google Maps initialized like this:

http://maps.google.com/maps?q=loc:{{lat}},{{long}}&z=14

and it was showing a marker.

With the new google maps, this syntax does not work completely, as the zoom level is not taken into account. So I found out that this was working:

http://maps.google.com/maps/@{{lat}},{{long}},14z

But in this case I don't have a marker anymore.

Question: With the new syntax, how to get a marker at the specified position? Also, I could not find a Google web page documenting the syntax. Is there one?

Thank you

1

There are 1 best solutions below

2
On BEST ANSWER

Try this is in the format you need. The first with marker the second without

https://www.google.com/maps/place//@46.090271,6.657248,16z

https://www.google.com/maps/@46.090271,6.657248,16z

you must add the place/ between maps/ and /@