How to create an href link to a google map

6,100 views
Skip to first unread message

really

unread,
Aug 31, 2009, 3:25:21 PM8/31/09
to Google Maps JavaScript API v3
How can I create an href link (http://) to a google map instead of
initializing the map with onload?

pamela (Google Employee)

unread,
Sep 6, 2009, 3:22:22 AM9/6/09
to google-map...@googlegroups.com
Hi really -

The official way to get the link for a Google map is to go to that map
in maps.google.com and click "Link to this page". You'll get a URL
that you can use elsewhere.

The Google Maps help forum is here:
http://www.google.com/support/forum/p/maps?hl=en

- pamela

Ton Luong

unread,
Sep 6, 2009, 4:19:23 AM9/6/09
to google-map...@googlegroups.com
Side notes, perhaps bit.ly and URL shortener are the current fads; a
short URL for those google maps make them more accessable and usable.

Best,
Ton

On Sep 6, 2009, at 12:22 AM, "pamela (Google Employee)" <pame...@gmail.com

Toni

unread,
Sep 24, 2009, 11:32:22 PM9/24/09
to Google Maps JavaScript API v3
The URL Google gives here doesn't validate. I got all sorts of errors
when trying to validate with XHTML 1.0 Transitional. I like this one
better...
http://maps.google.com/maps?daddr={ADDRESS, ZIP}

The only problem is that it asks you for a starting address.

Anyways...any ideas why the link doesn't validate?

On Sep 6, 3:22 am, "pamela (Google Employee)" <pamela...@gmail.com>
wrote:
> Hi really -
>
> The official way to get the link for a Google map is to go to that map
> in maps.google.com and click "Link to this page". You'll get a URL
> that you can use elsewhere.
>
> The Google Maps help forum is here:http://www.google.com/support/forum/p/maps?hl=en
>
> - pamela
>

Toni

unread,
Sep 24, 2009, 11:36:41 PM9/24/09
to Google Maps JavaScript API v3
Just found the google maps parameters wiki...http://mapki.com/wiki/
Google_Map_Parameters

http://maps.google.com/maps?q={ADDRESS, ZIP} *works great*

Barry Hunter

unread,
Sep 25, 2009, 7:36:11 AM9/25/09
to google-map...@googlegroups.com
On 25/09/2009, Toni <toni.gr...@gmail.com> wrote:
>
> The URL Google gives here doesn't validate. I got all sorts of errors
> when trying to validate with XHTML 1.0 Transitional. I like this one
> better...
> http://maps.google.com/maps?daddr={ADDRESS, ZIP}
>
> The only problem is that it asks you for a starting address.
>
> Anyways...any ideas why the link doesn't validate?

The link itself is fine - it can't not validate, its just a link

I suspect you are not entity escaping the &'s, in your document - its
the document that doesnt validate.

you should probably use &amp; instead if &




>
> On Sep 6, 3:22 am, "pamela (Google Employee)" <pamela...@gmail.com>
> wrote:
>
> > Hi really -
> >
> > The official way to get the link for a Google map is to go to that map
> > in maps.google.com and click "Link to this page". You'll get a URL
> > that you can use elsewhere.
> >
> > The Google Maps help forum is here:http://www.google.com/support/forum/p/maps?hl=en
> >
> > - pamela
> >
>
> > On Tue, Sep 1, 2009 at 5:25 AM, really<davek1...@gmail.com> wrote:
> >
> > > How can I create an href link (http://) to a google map instead of
> > > initializing the map with onload?
> >
>


--
Barry

- www.nearby.org.uk - www.geograph.org.uk -
Reply all
Reply to author
Forward
0 new messages