You are here:  » Integrating Google Map


Integrating Google Map

Submitted by ssgupta on Wed, 2016-10-19 05:29 in

Post in PriceTapestry.com: http://www.pricetapestry.com/node/4887

How can I add a marker to this code:

https://maps.google.com/?ie=UTF8&ll=%DB_lat%,%DB_lon%&spn=0.045174,0.110378&t=m&z=13&source=embed

Thank you.

Submitted by support on Wed, 2016-10-19 09:54

Hi,

The new version of the Google Maps embed API should automatically include a marker at the centre point - the new version is documented at

https://developers.google.com/maps/documentation/embed/guide

The equivalent embed URL (used as the src attribute of the iframe) to the original version documented at http://www.pricetapestry.com/node/4887 would be;

https://www.google.com/maps/embed/v1/place?key=YOUR_API_KEY&q=%DB_lat%,%DB_lon%

Rather than using spn, if you want to change the default zoom level you can include a zoom parameter in the URL, value range 0 to 21 (I think 18 is the default).

Cheers,
David.
--
PriceTapestry.com