Web Design Tutorial – Removing the Speech Bubble from Google Maps

Posted on Friday 11th Feb 2011 by James Bavington 17 Comments



In this week’s web design video blog, we take a look at how you can remove the ‘speech bubble’ from your Google Maps listing. In the video, we demonstrate that when you use Google Map’s free iframe method, the Speech Bubble appears by default. If, like on our contact page, you’re embedding the map quite small, then the map may look better having the bubble removed by default.

We should stress that Google are constantly evolving and changing the code that they give to webmasters for embedding Google Maps onto their web pages. This is our second update of this code, so it is important to bear in mind that it may stop working in the future.

The Default Code From Google

The first thing to do, if you haven’t done so already, is to embed your map using the default code supplied by Google. Here’s our example code that is copied straight from Google, without any editing:

<iframe width="578" height="300" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.co.uk/maps?hl=en&amp;q=creare+group+lutterworth&amp;ie=UTF8&amp;hq=creare+group&amp;hnear=Lutterworth,+Leicestershire,+United+Kingdom&amp;ll=52.454897,-1.200747&amp;spn=0.008068,0.022149&amp;iwloc=A&amp;output=embed"></iframe>

And here’s how it looks embedded:

As you can see, the Bubble is added by default, but is cut off, because the iframe dimensions are not big enough. What we’re looking to achieve; is to remove the Bubble, but keep the push-pin in place as normal.

How to remove the Bubble

At present, when you download you’re iframe code from Google, you need to identify whether or not it includes the ‘iwloc’ code, which will look something like this, sandwiched between two ampersand codes:

&amp;iwloc=A&amp;

If you’re code does include this, ALL you have to do, is simply remove the uppercase A like so:

&amp;iwloc=&amp;

If the above code is missing from iframe code that Google has given you, then you will need to add it in, exactly how it displays above. Here’s the code for our edited Google Map iframe:

<iframe width="578" height="300" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.co.uk/maps?hl=en&amp;q=creare+group+lutterworth&amp;ie=UTF8&amp;hq=creare+group&amp;hnear=Lutterworth,+Leicestershire,+United+Kingdom&amp;ll=52.454897,-1.200747&amp;spn=0.008068,0.022149&amp;iwloc=&amp;output=embed"></iframe>

And here’s how it looks actually embedded:

Hopefully, in the example above, you shouldn’t see the Speech Bubble. If you can, then Google has changed the embed code again, and this blog post will soon be updated!

Again, thanks to Zeth, who pasted this solution onto our previous blog post.

About James Bavington

Away from computers, James enjoys mountains, military history and has an insatiable appetite for film - particularly 90's classics.

See all of posts.

Add on James Bavington Google+

James Bavington's Tweet's

This entry was posted in Web Design Videos and tagged , . Bookmark the permalink.

17 Responses to Web Design Tutorial – Removing the Speech Bubble from Google Maps

  1. MItchell Teixeira says:
    November 5, 2010 at 2:35 am

    Thanks, but the tip about suppressing speech balloons on embedded Google Maps doesn’t seem to work any more. Also, would be great to get a transcript of the video instead of having to watch it.

  2. Zeth says:
    December 13, 2010 at 7:40 am

    Hey there.

    Nice blog, but Google has seemed to take out the ‘iwloc=A&’ from the embed code. I saw that someone commented on the Youtube-video that you just had to add iwloc=& to the code – but where? I tried to add it different places (of course not at the same time) but it didn’t seem to work. How do you make the speech-bubble disappear now?

    Thank you

  3. James Bavington says:
    December 13, 2010 at 10:37 am

    Hi Zeth, indeed this coding adjustment no longer works with the new Google Maps embedding code that Google provide. Once we’ve identified how to do it, we will update this video blog, overwriting the old video. James.

  4. Zeth says:
    February 4, 2011 at 4:17 am

    Hi James.

    Thanks for your reply. I figured out how to do it, so I figured I would give a contribution to your blog. You have to put the following code into the embedded Google Maps code: “iwloc=&” (without the quotes). I don’t know if it matters where you put it in (I haven’t experimented with this) but I figure that it does. In the embedded code, just after the ‘maps.google.com.au/maps’ there are a series of “&” (without the quotes). I put it in just before it says ‘geocode’, which is fairly close to the beginning of the src (compare to the length of it, hehe). So it should look like this (find where it says ‘geocode) and notice that I’ve put the above written statement in:

    http://maps.google.com.au/maps?f=q&source=s_q&hl=en&iwloc=&geocode=&q=1%2F73+Lawrence+Drive&aq=&sll=-27.457711,153.026505&sspn=0.578829,0.648193&ie=UTF8&hq=&hnear=1%2F73+Lawrence+Dr,+Nerang+Queensland+4211&ll=-27.998139,153.347345&spn=0.071994,0.081024&z=14&output=embed

    I hope this comment helps someone… Even if it’s a galaxy far, far away.

  5. James Bavington says:
    February 4, 2011 at 8:28 am

    Nice one Zeth, if we get the video blog re-shot with the evolved method, i’ll be sure to give you the credit!

  6. Jack says:
    February 9, 2011 at 11:33 am

    Works like a dream Zeth, cheers!

  7. Anne says:
    February 9, 2011 at 11:35 pm

    Thanks, Zeth! It’s magic :) from a galaxy far, far away…

  8. James Bavington says:
    February 11, 2011 at 11:20 am

    Just to clarify that comments above this one, are based on our older blog post and video. The code displayed above, is ready to roll, using the fix that Zeth mentioned.

  9. Per says:
    February 13, 2011 at 6:55 pm

    Hi. Wow, this looks cool. I like your blogs, they are the best blogs I’ve found online. I’ve looked through a lot of them, and one of the blogs you mention a site where you can put in your URL and then it checks how SEO-optimized it is in percentage, but it’s a blog about something else – and I just can’t seem to find it. Can you help me out? Thank you.

  10. James Bavington says:
    February 17, 2011 at 9:01 pm

    Hey Per, check out Website Grader at http://www.websitegrader.com

  11. Per says:
    February 18, 2011 at 10:59 pm

    Yehaa!! That’s the one! Thank you.

  12. mark says:
    August 18, 2011 at 9:32 am

    This driving me mad that bit of code is not in my iframe code

  13. James Bavington says:
    August 18, 2011 at 9:37 am

    Hi Mark, please can you paste your code in here wrapping with with [ html ] [/ html ] tags.

  14. Todd says:
    August 21, 2011 at 11:11 pm

    Hi, thanks for the info – it works sweetly. So how do I remove the red placeholder?

  15. jan says:
    September 16, 2011 at 4:45 am

    that didn’t work for me, but adding

    &amp;iwloc=near"&gt;

    at the end works.

  16. flypark says:
    December 13, 2011 at 1:59 pm

    My code doesn’t work

    Speech bubble is still showing this is the page http://www.flypark.co.uk/edinburgh-airport-parking-airparks.html

  17. flypark says:
    December 20, 2011 at 11:19 am

    I just checked back to see if I had a reply and when I checked my page it seems to be working now, very strange, but thanks for the code

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>