How to embed a Google Business view in a website?

How do I include a link to driving directions in an embedded Google Map?

designbot at Ask.Metafilter.Com Visit the source

Was this solution helpful to you?

Other answers

You could hard code it http://www.frontlineyouth.com/map.html [somewhat self link]. Not the prettiest method, but oh-so-simple.

niles

...which is actually kinda what you link to, so may not work for you.

niles

I recommend http://www.communitywalk.com/ Create the map just the way you like it.. then click on the "Share/Export" tab and copy the code to your own website. Pretty dead simple.

jmnugent

Um, so I'm confused. I guess I have one of two answers: 1) If all you want is a map on your own site showing "here's where we are!" then why not just do a print-screen of that map, slap it into mspaint and save it as a .jpg and host that? It does not need to be an embeddable interactive map, does it? 2) If you want interactivity- showing a mapping app on your site that can provide directions to your store from wherever the customer says they're starting from- then why assume that Google is your only option? I'm horribly biased, but I've always felt that MSN's virtualearth is a vastly better mapping program than Google's- it's slicker, was way ahead of google on some nice interactivity and usability features (bird's eye view, scroll wheel support, permalinks which included the ability to permalink pushpins and notes- great for making walking tours, etc, etc), and has a great http://dev.live.com/virtualearth/sdk/- which, oh by the way, supports driving directions and customizable layout thereof.

hincandenza

Google Maps API is for developers. For your extremely modest needs, it's overkill. Not to mention painful. Just use Google My Maps. It takes longer to http://maps.google.com/support/bin/answer.py?answer=68480 than it does to actually create the map, make it public, and paste the link into your webpage. Dead simple.

nakedcodemonkey

Thanks for the answers so far. I'm still not really seeing anything as straightforward as I had hoped for. null terminated: That option will require more code tweaking than I was hoping for, and doesn't give you any decent printing options. niles: That's functional, but I can't bring myself to have the full Google toolbar across the top of an embedded frame. jmnugent: That might work. I'll have to look at it further. I don't like the embedded ads or the Community Walk banner. hicandenza: I want a map that includes a link for driving directions. Interactivity would be a bonus. I might just have to fake this myself. Your MSN SDK link comes up as an almost-blank page in Safari, so I don't think that's going to work for me. nakedcodemonkey: I don't see a way to do this with My Maps. I don't even see an embedding option.

designbot

For future reference, I discovered by accident that Google Maps has a brand-new feature that does exactly this, without going through the API at all. Now, when you click on "Link to this page" from a Google map, it gives you a customizable snippet of HTML to paste into your own webpage. It works great!

designbot

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.