I can share a location with google maps providing the lat and lon parameters. For example;
http://maps.google.com/maps?ll=40.01696,32.33076&z=17
With the "ll" parameter i can center the map there. Is there a way to put the marker to the position specified?
getId() function to retrieve marker id.
Embed a map or directionsClick Share or embed map. Click Embed map. Copy the text in the box. Paste it into the HTML of your website or blog.
If you use 'q' on its own as in:
http://maps.google.com/maps?q=40.01696,32.33076&z=17
then you will get a green pointer at the point of the coordinates provided but you'll also get an unwanted additional red marker for a nearby point of interest, which doesn't look good and can be confusing for the viewer.
Best option is to use 'q=loc:' as in:
http://maps.google.com/maps?q=loc:40.01696,32.33076&z=17
This will only display a single red marker for the coordinates provided and centres the map on that point.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With