Tell me more ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

I'm looking to create a link to a specific location using latitude and longitude for positioning, however I would also like to be able to add a marker onto the map as well, at the same location.

This is not using the Java or Static maps API, just want a link pointing at maps.google.com

share|improve this question

3 Answers

up vote 4 down vote accepted

It's very straightforward. Just use the following link, obviously changing the latitude and longitude for yours. The z is the zoom index, you can play with it to get where you want.

http://maps.google.com/?ie=UTF8&hq=&ll=35.028028,-106.536655&z=13

I got this information by clicking on the "Link" button in the right hand corner above a map. This will also allow you to get the latitue and longitude for a location.

I don't know of a good way to make a marker on Google Maps, through the UI anyway. If you right click on a point and select "What's Here?" It will create a marker, but it will be to the closest thing (business, intersection, address, etc). This essentially performs a search with the latitude and longitude and returns whatever is closest to your search. A URL to do that would be:

http://maps.google.com/maps?q=35.128061,-106.535561&ll=35.126517,-106.535131&z=17

With the q (for query I believe) being the coordinates where you want your marker.

A more effective method, if you are trying to send a link to a specific address would be to search for the address in Google Maps, which will give you a marker on the exact address and then use the "Link" button to get the URL for sharing.

share|improve this answer
1  
Cool, is there any way to add a marker as well? – Sean Taylor Jul 21 '10 at 20:11
The search method works perfectly for me, cheers! – Sean Taylor Jul 21 '10 at 20:39
@sgriffinusa To get the long/lat quickly, enalbe "LatLng Marker" in your Google Maps Lab setting – Nam G. VU Feb 17 '12 at 3:46

To add a marker to a map, you can use the My Maps feature of Google Maps.

Follow the instructions in the link above to use My Maps. Add a marker for the location that you're interested in sharing, then click the Link button in the upper-right corner; that link can be used to bring someone directly to that location and will include the marker you placed there.

share|improve this answer

Here's how I do it.

I don't see why it would be so difficult for the Google Maps Team add a Get Link button, hopefully it will be implemented in the future.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.